Home
last modified time | relevance | path

Searched refs:ucred (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/freebsd-13.1/sys/security/mac/
H A Dmac_framework.h87 struct ucred;
126 int mac_cred_check_visible(struct ucred *cr1, struct ucred *cr2);
127 void mac_cred_copy(struct ucred *cr1, struct ucred *cr2);
130 void mac_cred_destroy(struct ucred *);
131 void mac_cred_init(struct ucred *);
208 int mac_kenv_check_dump(struct ucred *cred);
214 int mac_kld_check_stat(struct ucred *cred);
563 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_poll()
618 mac_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_stat()
637 mac_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_read()
[all …]
H A Dmac_policy.h99 struct ucred;
157 struct ucred *cr2);
328 struct ucred *file_cred, struct ksem *ks,
333 struct ucred *file_cred, struct ksem *ks,
342 struct ucred *file_cred, struct ksem *ks,
347 struct ucred *file_cred, struct ksem *ks,
598 struct ucred *file_cred, struct vnode *vp,
601 struct ucred *file_cred, struct vnode *vp,
637 struct ucred *file_cred, struct vnode *vp,
644 struct ucred *file_cred, struct vnode *vp,
[all …]
H A Dmac_cred.c89 mac_cred_init(struct ucred *cred) in mac_cred_init()
107 mac_cred_destroy(struct ucred *cred) in mac_cred_destroy()
126 mac_cred_associate_nfsd(struct ucred *cred) in mac_cred_associate_nfsd()
137 mac_cred_create_swapper(struct ucred *cred) in mac_cred_create_swapper()
148 mac_cred_create_init(struct ucred *cred) in mac_cred_create_init()
181 mac_cred_copy(struct ucred *src, struct ucred *dest) in mac_cred_copy()
217 mac_cred_check_setuid(struct ucred *cred, uid_t uid) in mac_cred_check_setuid()
230 mac_cred_check_seteuid(struct ucred *cred, uid_t euid) in mac_cred_check_seteuid()
243 mac_cred_check_setgid(struct ucred *cred, gid_t gid) in mac_cred_check_setgid()
256 mac_cred_check_setegid(struct ucred *cred, gid_t egid) in mac_cred_check_setegid()
[all …]
H A Dmac_vfs.c85 static int mac_vnode_setlabel_extattr(struct ucred *cred,
345 mac_vnode_execve_transition(struct ucred *old, struct ucred *new, in mac_vnode_execve_transition()
391 mac_vnode_check_chdir(struct ucred *cred, struct vnode *dvp) in mac_vnode_check_chdir()
477 mac_vnode_check_exec(struct ucred *cred, struct vnode *vp, in mac_vnode_check_exec()
530 mac_vnode_check_link(struct ucred *cred, struct vnode *dvp, in mac_vnode_check_link()
650 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_poll()
669 mac_vnode_check_read_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_read_impl()
894 mac_vnode_check_stat_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_stat_impl()
932 mac_vnode_check_write_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_write_impl()
948 mac_vnode_relabel(struct ucred *cred, struct vnode *vp, in mac_vnode_relabel()
[all …]
H A Dmac_posix_shm.c96 mac_posixshm_create(struct ucred *cred, struct shmfd *shmfd) in mac_posixshm_create()
107 mac_posixshm_check_create(struct ucred *cred, const char *path) in mac_posixshm_check_create()
121 mac_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd, int prot, in mac_posixshm_check_mmap()
138 mac_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd, in mac_posixshm_check_open()
154 mac_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_stat()
171 mac_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_truncate()
188 mac_posixshm_check_unlink(struct ucred *cred, struct shmfd *shmfd) in mac_posixshm_check_unlink()
203 mac_posixshm_check_setmode(struct ucred *cred, struct shmfd *shmfd, mode_t mode) in mac_posixshm_check_setmode()
218 mac_posixshm_check_setowner(struct ucred *cred, struct shmfd *shmfd, uid_t uid, in mac_posixshm_check_setowner()
235 mac_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_read()
[all …]
H A Dmac_posix_sem.c97 mac_posixsem_create(struct ucred *cred, struct ksem *ks) in mac_posixsem_create()
107 mac_posixsem_check_open(struct ucred *cred, struct ksem *ks) in mac_posixsem_check_open()
122 mac_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_getvalue()
139 mac_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_post()
156 mac_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_stat()
173 mac_posixsem_check_unlink(struct ucred *cred, struct ksem *ks) in mac_posixsem_check_unlink()
188 mac_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_wait()
205 mac_posixsem_check_setmode(struct ucred *cred, struct ksem *ks, mode_t mode) in mac_posixsem_check_setmode()
220 mac_posixsem_check_setowner(struct ucred *cred, struct ksem *ks, uid_t uid, in mac_posixsem_check_setowner()
H A Dmac_system.c76 mac_kenv_check_dump(struct ucred *cred) in mac_kenv_check_dump()
89 mac_kenv_check_get(struct ucred *cred, char *name) in mac_kenv_check_get()
103 mac_kenv_check_set(struct ucred *cred, char *name, char *value) in mac_kenv_check_set()
116 mac_kenv_check_unset(struct ucred *cred, char *name) in mac_kenv_check_unset()
129 mac_kld_check_load(struct ucred *cred, struct vnode *vp) in mac_kld_check_load()
144 mac_kld_check_stat(struct ucred *cred) in mac_kld_check_stat()
158 mac_system_check_acct(struct ucred *cred, struct vnode *vp) in mac_system_check_acct()
176 mac_system_check_reboot(struct ucred *cred, int howto) in mac_system_check_reboot()
190 mac_system_check_swapon(struct ucred *cred, struct vnode *vp) in mac_system_check_swapon()
206 mac_system_check_swapoff(struct ucred *cred, struct vnode *vp) in mac_system_check_swapoff()
[all …]
/freebsd-13.1/sys/security/mac_stub/
H A Dmac_stub.c293 stub_cred_check_visible(struct ucred *cr1, struct ucred *cr2) in stub_cred_check_visible()
676 stub_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_post()
700 stub_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_stat()
716 stub_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_wait()
754 stub_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_read()
778 stub_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_stat()
1470 stub_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_poll()
1478 stub_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_read()
1584 stub_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_stat()
1601 stub_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_write()
[all …]
/freebsd-13.1/sys/sys/
H A Ducred.h62 struct ucred { struct
118 struct ucred *cred;
146 void crcopy(struct ucred *dest, struct ucred *src);
147 struct ucred *crcopysafe(struct proc *p, struct ucred *cr);
148 struct ucred *crdup(struct ucred *cr);
149 void crextend(struct ucred *cr, int n);
153 void crfree(struct ucred *cr);
154 struct ucred *crcowsync(void);
155 struct ucred *crget(void);
156 struct ucred *crhold(struct ucred *cr);
[all …]
H A Djail.h397 struct ucred;
408 int jailed_without_vnet(struct ucred *);
409 void getcredhostname(struct ucred *, char *, size_t);
411 void getcredhostuuid(struct ucred *, char *, size_t);
412 void getcredhostid(struct ucred *, unsigned long *);
415 int prison_allow(struct ucred *, unsigned);
416 int prison_check(struct ucred *cred1, struct ucred *cred2);
417 int prison_owns_vnet(struct ucred *);
424 int prison_flag(struct ucred *, unsigned);
455 int prison_check_af(struct ucred *cred, int af);
[all …]
/freebsd-13.1/sys/security/mac_bsdextended/
H A Dugidfw_internal.h45 int ugidfw_system_check_acct(struct ucred *cred, struct vnode *vp,
49 int ugidfw_system_check_swapon(struct ucred *cred, struct vnode *vp,
55 int ugidfw_vnode_check_access(struct ucred *cred, struct vnode *vp,
57 int ugidfw_vnode_check_chdir(struct ucred *cred, struct vnode *dvp,
59 int ugidfw_vnode_check_chroot(struct ucred *cred, struct vnode *dvp,
66 int ugidfw_vnode_check_deleteextattr(struct ucred *cred,
69 int ugidfw_vnode_check_exec(struct ucred *cred, struct vnode *vp,
72 int ugidfw_vnode_check_getacl(struct ucred *cred, struct vnode *vp,
76 int ugidfw_vnode_check_link(struct ucred *cred, struct vnode *dvp,
83 int ugidfw_vnode_check_open(struct ucred *cred, struct vnode *vp,
[all …]
H A Dugidfw_vnode.c64 ugidfw_vnode_check_access(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_access()
72 ugidfw_vnode_check_chdir(struct ucred *cred, struct vnode *dvp, in ugidfw_vnode_check_chdir()
80 ugidfw_vnode_check_chroot(struct ucred *cred, struct vnode *dvp, in ugidfw_vnode_check_chroot()
88 ugidfw_check_create_vnode(struct ucred *cred, struct vnode *dvp, in ugidfw_check_create_vnode()
112 ugidfw_vnode_check_exec(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_exec()
121 ugidfw_vnode_check_getacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_getacl()
137 ugidfw_vnode_check_link(struct ucred *cred, struct vnode *dvp, in ugidfw_vnode_check_link()
169 ugidfw_vnode_check_open(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_open()
221 ugidfw_vnode_check_revoke(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_revoke()
229 ugidfw_check_setacl_vnode(struct ucred *cred, struct vnode *vp, in ugidfw_check_setacl_vnode()
[all …]
/freebsd-13.1/sys/fs/nfs/
H A Dnfs_var.h42 struct ucred;
158 struct ucred *, NFSPROC_T *);
362 struct ucred *nfsrv_getgrpscred(struct ucred *);
451 struct ucred *, NFSPROC_T *);
456 struct ucred *, NFSPROC_T *);
533 struct ucred *, NFSPROC_T *);
535 struct ucred *, NFSPROC_T *);
547 struct ucred *, NFSPROC_T *);
565 struct ucred *, NFSPROC_T *);
657 struct ucred *, NFSPROC_T *);
[all …]
/freebsd-13.1/sys/security/mac_test/
H A Dmac_test.c366 test_cred_check_visible(struct ucred *u1, struct ucred *u2) in test_cred_check_visible()
388 test_cred_create_init(struct ucred *cred) in test_cred_create_init()
873 test_kenv_check_dump(struct ucred *cred) in test_kenv_check_dump()
930 test_kld_check_stat(struct ucred *cred) in test_kld_check_stat()
1252 test_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_getvalue()
1279 test_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_post()
1343 test_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_wait()
2635 test_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in test_vnode_check_poll()
2650 test_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in test_vnode_check_read()
2826 test_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in test_vnode_check_stat()
[all …]
/freebsd-13.1/sys/fs/nfsclient/
H A Dnfs.h96 int ncl_bioread(struct vnode *, struct uio *, int, struct ucred *);
97 int ncl_biowrite(struct vnode *, struct uio *, int, struct ucred *);
99 int ncl_asyncio(struct nfsmount *, struct buf *, struct ucred *,
101 int ncl_doio(struct vnode *, struct buf *, struct ucred *, struct thread *,
108 int ncl_readrpc(struct vnode *, struct uio *, struct ucred *);
109 int ncl_writerpc(struct vnode *, struct uio *, struct ucred *, int *, int *,
111 int ncl_readlinkrpc(struct vnode *, struct uio *, struct ucred *);
112 int ncl_readdirrpc(struct vnode *, struct uio *, struct ucred *,
114 int ncl_readdirplusrpc(struct vnode *, struct uio *, struct ucred *,
117 int ncl_commit(struct vnode *, u_quad_t, int, struct ucred *, struct thread *);
[all …]
/freebsd-13.1/sys/nfsclient/
H A Dnfs.h161 struct ucred *cred);
163 struct ucred *cred, int *iomode, int *must_commit);
166 struct ucred *cred);
169 struct ucred *cred, struct thread *td);
248 int nfs_readrpc(struct vnode *, struct uio *, struct ucred *);
252 struct ucred *cred, struct thread *td);
253 int nfs_readdirrpc(struct vnode *, struct uio *, struct ucred *);
259 int nfs_readlinkrpc(struct vnode *, struct uio *, struct ucred *);
263 struct ucred *, struct mbuf **, struct mbuf **, caddr_t *);
282 int nfs_fsinfo(struct nfsmount *, struct vnode *, struct ucred *,
[all …]
/freebsd-13.1/sys/security/mac_seeotheruids/
H A Dmac_seeotheruids.c106 seeotheruids_check(struct ucred *cr1, struct ucred *cr2) in seeotheruids_check()
135 seeotheruids_proc_check_debug(struct ucred *cred, struct proc *p) in seeotheruids_proc_check_debug()
142 seeotheruids_proc_check_sched(struct ucred *cred, struct proc *p) in seeotheruids_proc_check_sched()
149 seeotheruids_proc_check_signal(struct ucred *cred, struct proc *p, in seeotheruids_proc_check_signal()
157 seeotheruids_cred_check_visible(struct ucred *cr1, struct ucred *cr2) in seeotheruids_cred_check_visible()
164 seeotheruids_inpcb_check_visible(struct ucred *cred, struct inpcb *inp, in seeotheruids_inpcb_check_visible()
172 seeotheruids_socket_check_visible(struct ucred *cred, struct socket *so, in seeotheruids_socket_check_visible()
/freebsd-13.1/sys/security/mac_biba/
H A Dmac_biba.c816 biba_cred_associate_nfsd(struct ucred *cred) in biba_cred_associate_nfsd()
888 biba_cred_check_visible(struct ucred *u1, struct ucred *u2) in biba_cred_check_visible()
906 biba_cred_create_init(struct ucred *cred) in biba_cred_create_init()
1649 biba_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_write()
1667 biba_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_rdonly()
1745 biba_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_read()
1799 biba_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_stat()
1853 biba_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_write()
3147 biba_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in biba_vnode_check_poll()
3165 biba_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in biba_vnode_check_read()
[all …]
/freebsd-13.1/sys/security/mac_partition/
H A Dmac_partition.c112 partition_cred_check_relabel(struct ucred *cred, struct label *newlabel) in partition_cred_check_relabel()
139 partition_cred_check_visible(struct ucred *cr1, struct ucred *cr2) in partition_cred_check_visible()
159 partition_cred_create_init(struct ucred *cred) in partition_cred_create_init()
166 partition_cred_create_swapper(struct ucred *cred) in partition_cred_create_swapper()
220 partition_cred_relabel(struct ucred *cred, struct label *newlabel) in partition_cred_relabel()
228 partition_inpcb_check_visible(struct ucred *cred, struct inpcb *inp, in partition_inpcb_check_visible()
239 partition_proc_check_debug(struct ucred *cred, struct proc *p) in partition_proc_check_debug()
249 partition_proc_check_sched(struct ucred *cred, struct proc *p) in partition_proc_check_sched()
259 partition_proc_check_signal(struct ucred *cred, struct proc *p, in partition_proc_check_signal()
270 partition_socket_check_visible(struct ucred *cred, struct socket *so, in partition_socket_check_visible()
[all …]
/freebsd-13.1/sys/security/mac_mls/
H A Dmac_mls.c852 mls_cred_check_visible(struct ucred *cr1, struct ucred *cr2) in mls_cred_check_visible()
870 mls_cred_create_init(struct ucred *cred) in mls_cred_create_init()
1509 mls_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_rdonly()
1563 mls_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_write()
1641 mls_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_read()
1695 mls_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_stat()
1749 mls_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_write()
2778 mls_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_poll()
2796 mls_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_read()
3079 mls_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_stat()
[all …]
/freebsd-13.1/crypto/openssh/openbsd-compat/
H A Dbsd-getpeereid.c30 struct ucred cred; in getpeereid()
49 ucred_t *ucred = NULL; in getpeereid() local
51 if (getpeerucred(s, &ucred) == -1) in getpeereid()
53 if ((*euid = ucred_geteuid(ucred)) == -1) in getpeereid()
55 if ((*gid = ucred_getrgid(ucred)) == -1) in getpeereid()
58 ucred_free(ucred); in getpeereid()
/freebsd-13.1/sys/fs/fuse/
H A Dfuse_file.h201 struct ucred *cred, pid_t pid);
203 struct fuse_filehandle **fufhp, struct ucred *cred,
206 struct fuse_filehandle **fufhp, struct ucred *cred,
209 struct fuse_filehandle **fufhp, struct ucred *cred,
214 const struct ucred *cred,
218 struct ucred *cred);
220 struct thread *td, struct ucred *cred);
/freebsd-13.1/sys/ufs/ffs/
H A Dffs_extern.h52 struct ucred;
59 struct ucred *, ufs2_daddr_t *);
61 struct ucred *a_cred, int a_flags, struct buf **a_bpp);
63 struct ucred *a_cred, int a_flags, struct buf **a_bpp);
91 ufs2_daddr_t, int, int, int, struct ucred *, struct buf **);
109 int ffs_truncate(struct vnode *, off_t, int, struct ucred *);
113 int ffs_valloc(struct vnode *, int, struct ucred *, struct vnode **);
121 daddr_t *, int *, int, struct ucred *, int, void (*)(struct buf *),
171 struct ucred *);
181 struct ucred *, int);
[all …]
/freebsd-13.1/sys/kern/
H A Dkern_prot.c1348 cr_canseeotheruids(struct ucred *u1, struct ucred *u2) in cr_canseeotheruids()
1378 cr_canseeothergids(struct ucred *u1, struct ucred *u2) in cr_canseeothergids()
1420 cr_canseejailproc(struct ucred *u1, struct ucred *u2) in cr_canseejailproc()
1435 cr_cansee(struct ucred *u1, struct ucred *u2) in cr_cansee()
1853 struct ucred *
1927 struct ucred *
1990 struct ucred *
2013 struct ucred *
2100 crcopy(struct ucred *dest, struct ucred *src) in crcopy()
2123 struct ucred *
[all …]
H A Dkern_priv.c63 suser_enabled(struct ucred *cred) in suser_enabled()
72 struct ucred *cred; in sysctl_kern_suser_enabled()
102 priv_check_cred_pre(struct ucred *cred, int priv) in priv_check_cred_pre()
115 priv_check_cred_post(struct ucred *cred, int priv, int error, bool handled) in priv_check_cred_post()
151 priv_check_cred(struct ucred *cred, int priv) in priv_check_cred()
280 priv_check_cred_vfs_lookup_slow(struct ucred *cred) in priv_check_cred_vfs_lookup_slow()
300 priv_check_cred_vfs_lookup(struct ucred *cred) in priv_check_cred_vfs_lookup()
315 priv_check_cred_vfs_lookup_nomac(struct ucred *cred) in priv_check_cred_vfs_lookup_nomac()
330 priv_check_cred_vfs_generation_slow(struct ucred *cred) in priv_check_cred_vfs_generation_slow()
355 priv_check_cred_vfs_generation(struct ucred *cred) in priv_check_cred_vfs_generation()

12345678910>>...13