/freebsd/sys/security/mac/ |
H A D | mac_framework.h | 86 struct ucred; 130 int mac_cred_check_visible(struct ucred *cr1, struct ucred *cr2); 131 void mac_cred_copy(struct ucred *cr1, struct ucred *cr2); 134 void mac_cred_destroy(struct ucred *); 135 void mac_cred_init(struct ucred *); 226 int mac_kenv_check_dump(struct ucred *cred); 232 int mac_kld_check_stat(struct ucred *cred); 596 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_poll() 651 mac_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_stat() 670 mac_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_read() [all …]
|
H A D | mac_policy.h | 101 struct ucred; 162 struct ucred *cr2); 347 struct ucred *file_cred, struct ksem *ks, 352 struct ucred *file_cred, struct ksem *ks, 361 struct ucred *file_cred, struct ksem *ks, 366 struct ucred *file_cred, struct ksem *ks, 617 struct ucred *file_cred, struct vnode *vp, 620 struct ucred *file_cred, struct vnode *vp, 656 struct ucred *file_cred, struct vnode *vp, 663 struct ucred *file_cred, struct vnode *vp, [all …]
|
H A D | mac_cred.c | 87 mac_cred_init(struct ucred *cred) in mac_cred_init() 105 mac_cred_destroy(struct ucred *cred) in mac_cred_destroy() 124 mac_cred_associate_nfsd(struct ucred *cred) in mac_cred_associate_nfsd() 135 mac_cred_create_swapper(struct ucred *cred) in mac_cred_create_swapper() 146 mac_cred_create_init(struct ucred *cred) in mac_cred_create_init() 179 mac_cred_copy(struct ucred *src, struct ucred *dest) in mac_cred_copy() 215 mac_cred_check_setuid(struct ucred *cred, uid_t uid) in mac_cred_check_setuid() 228 mac_cred_check_seteuid(struct ucred *cred, uid_t euid) in mac_cred_check_seteuid() 241 mac_cred_check_setgid(struct ucred *cred, gid_t gid) in mac_cred_check_setgid() 254 mac_cred_check_setegid(struct ucred *cred, gid_t egid) in mac_cred_check_setegid() [all …]
|
H A D | mac_vfs.c | 83 static int mac_vnode_setlabel_extattr(struct ucred *cred, 343 mac_vnode_execve_transition(struct ucred *old, struct ucred *new, in mac_vnode_execve_transition() 389 mac_vnode_check_chdir(struct ucred *cred, struct vnode *dvp) in mac_vnode_check_chdir() 475 mac_vnode_check_exec(struct ucred *cred, struct vnode *vp, in mac_vnode_check_exec() 528 mac_vnode_check_link(struct ucred *cred, struct vnode *dvp, in mac_vnode_check_link() 648 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_poll() 667 mac_vnode_check_read_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_read_impl() 892 mac_vnode_check_stat_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_stat_impl() 930 mac_vnode_check_write_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_write_impl() 946 mac_vnode_relabel(struct ucred *cred, struct vnode *vp, in mac_vnode_relabel() [all …]
|
H A D | mac_posix_shm.c | 94 mac_posixshm_create(struct ucred *cred, struct shmfd *shmfd) in mac_posixshm_create() 105 mac_posixshm_check_create(struct ucred *cred, const char *path) in mac_posixshm_check_create() 119 mac_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd, int prot, in mac_posixshm_check_mmap() 136 mac_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd, in mac_posixshm_check_open() 152 mac_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_stat() 169 mac_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_truncate() 186 mac_posixshm_check_unlink(struct ucred *cred, struct shmfd *shmfd) in mac_posixshm_check_unlink() 201 mac_posixshm_check_setmode(struct ucred *cred, struct shmfd *shmfd, mode_t mode) in mac_posixshm_check_setmode() 216 mac_posixshm_check_setowner(struct ucred *cred, struct shmfd *shmfd, uid_t uid, in mac_posixshm_check_setowner() 233 mac_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_read() [all …]
|
H A D | mac_posix_sem.c | 95 mac_posixsem_create(struct ucred *cred, struct ksem *ks) in mac_posixsem_create() 105 mac_posixsem_check_open(struct ucred *cred, struct ksem *ks) in mac_posixsem_check_open() 120 mac_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_getvalue() 137 mac_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_post() 154 mac_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_stat() 171 mac_posixsem_check_unlink(struct ucred *cred, struct ksem *ks) in mac_posixsem_check_unlink() 186 mac_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_wait() 203 mac_posixsem_check_setmode(struct ucred *cred, struct ksem *ks, mode_t mode) in mac_posixsem_check_setmode() 218 mac_posixsem_check_setowner(struct ucred *cred, struct ksem *ks, uid_t uid, in mac_posixsem_check_setowner()
|
H A D | mac_system.c | 74 mac_kenv_check_dump(struct ucred *cred) in mac_kenv_check_dump() 87 mac_kenv_check_get(struct ucred *cred, char *name) in mac_kenv_check_get() 101 mac_kenv_check_set(struct ucred *cred, char *name, char *value) in mac_kenv_check_set() 114 mac_kenv_check_unset(struct ucred *cred, char *name) in mac_kenv_check_unset() 127 mac_kld_check_load(struct ucred *cred, struct vnode *vp) in mac_kld_check_load() 142 mac_kld_check_stat(struct ucred *cred) in mac_kld_check_stat() 156 mac_system_check_acct(struct ucred *cred, struct vnode *vp) in mac_system_check_acct() 174 mac_system_check_reboot(struct ucred *cred, int howto) in mac_system_check_reboot() 188 mac_system_check_swapon(struct ucred *cred, struct vnode *vp) in mac_system_check_swapon() 204 mac_system_check_swapoff(struct ucred *cred, struct vnode *vp) in mac_system_check_swapoff() [all …]
|
/freebsd/sys/security/mac_stub/ |
H A D | mac_stub.c | 294 stub_cred_check_visible(struct ucred *cr1, struct ucred *cr2) in stub_cred_check_visible() 700 stub_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_post() 724 stub_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_stat() 740 stub_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_wait() 778 stub_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_read() 802 stub_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_stat() 1494 stub_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_poll() 1502 stub_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_read() 1608 stub_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_stat() 1625 stub_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_write() [all …]
|
/freebsd/sys/sys/ |
H A D | ucred.h | 59 struct ucred { struct 115 struct ucred *cred; 143 void crcopy(struct ucred *dest, struct ucred *src); 144 struct ucred *crcopysafe(struct proc *p, struct ucred *cr); 145 struct ucred *crdup(struct ucred *cr); 146 void crextend(struct ucred *cr, int n); 149 void crfree(struct ucred *cr); 150 struct ucred *crcowsync(void); 151 struct ucred *crget(void); 152 struct ucred *crhold(struct ucred *cr); [all …]
|
H A D | jail.h | 404 struct ucred; 415 bool jailed_without_vnet(struct ucred *); 416 void getcredhostname(struct ucred *, char *, size_t); 419 void getcredhostid(struct ucred *, unsigned long *); 422 bool prison_allow(struct ucred *, unsigned); 423 int prison_check(struct ucred *cred1, struct ucred *cred2); 424 bool prison_check_nfsd(struct ucred *cred); 425 bool prison_owns_vnet(struct ucred *); 432 bool prison_flag(struct ucred *, unsigned); 473 int prison_check_af(struct ucred *cred, int af); [all …]
|
/freebsd/sys/security/mac_bsdextended/ |
H A D | ugidfw_internal.h | 43 int ugidfw_system_check_acct(struct ucred *cred, struct vnode *vp, 47 int ugidfw_system_check_swapon(struct ucred *cred, struct vnode *vp, 53 int ugidfw_vnode_check_access(struct ucred *cred, struct vnode *vp, 55 int ugidfw_vnode_check_chdir(struct ucred *cred, struct vnode *dvp, 57 int ugidfw_vnode_check_chroot(struct ucred *cred, struct vnode *dvp, 64 int ugidfw_vnode_check_deleteextattr(struct ucred *cred, 67 int ugidfw_vnode_check_exec(struct ucred *cred, struct vnode *vp, 70 int ugidfw_vnode_check_getacl(struct ucred *cred, struct vnode *vp, 74 int ugidfw_vnode_check_link(struct ucred *cred, struct vnode *dvp, 81 int ugidfw_vnode_check_open(struct ucred *cred, struct vnode *vp, [all …]
|
H A D | ugidfw_vnode.c | 62 ugidfw_vnode_check_access(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_access() 70 ugidfw_vnode_check_chdir(struct ucred *cred, struct vnode *dvp, in ugidfw_vnode_check_chdir() 78 ugidfw_vnode_check_chroot(struct ucred *cred, struct vnode *dvp, in ugidfw_vnode_check_chroot() 86 ugidfw_check_create_vnode(struct ucred *cred, struct vnode *dvp, in ugidfw_check_create_vnode() 110 ugidfw_vnode_check_exec(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_exec() 119 ugidfw_vnode_check_getacl(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_getacl() 135 ugidfw_vnode_check_link(struct ucred *cred, struct vnode *dvp, in ugidfw_vnode_check_link() 167 ugidfw_vnode_check_open(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_open() 219 ugidfw_vnode_check_revoke(struct ucred *cred, struct vnode *vp, in ugidfw_vnode_check_revoke() 227 ugidfw_check_setacl_vnode(struct ucred *cred, struct vnode *vp, in ugidfw_check_setacl_vnode() [all …]
|
/freebsd/sys/fs/nfs/ |
H A D | nfs_var.h | 40 struct ucred; 156 struct ucred *, NFSPROC_T *); 319 struct ucred *); 365 struct ucred *nfsrv_getgrpscred(struct ucred *); 370 struct ucred *, NFSPROC_T *); 456 struct ucred *, NFSPROC_T *); 461 struct ucred *, NFSPROC_T *); 537 struct ucred *, NFSPROC_T *); 549 struct ucred *, NFSPROC_T *); 554 struct ucred *, NFSPROC_T *); [all …]
|
/freebsd/sys/security/mac_test/ |
H A D | mac_test.c | 366 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() 905 test_kenv_check_dump(struct ucred *cred) in test_kenv_check_dump() 962 test_kld_check_stat(struct ucred *cred) in test_kld_check_stat() 1284 test_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_getvalue() 1311 test_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_post() 1375 test_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_wait() 2667 test_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in test_vnode_check_poll() 2682 test_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in test_vnode_check_read() 2858 test_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in test_vnode_check_stat() [all …]
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs.h | 93 int ncl_bioread(struct vnode *, struct uio *, int, struct ucred *); 94 int ncl_biowrite(struct vnode *, struct uio *, int, struct ucred *); 96 int ncl_asyncio(struct nfsmount *, struct buf *, struct ucred *, 98 int ncl_doio(struct vnode *, struct buf *, struct ucred *, struct thread *, 105 int ncl_readrpc(struct vnode *, struct uio *, struct ucred *); 106 int ncl_writerpc(struct vnode *, struct uio *, struct ucred *, int *, int *, 108 int ncl_readlinkrpc(struct vnode *, struct uio *, struct ucred *); 109 int ncl_readdirrpc(struct vnode *, struct uio *, struct ucred *, 111 int ncl_readdirplusrpc(struct vnode *, struct uio *, struct ucred *, 113 int ncl_commit(struct vnode *, u_quad_t, int, struct ucred *, struct thread *); [all …]
|
/freebsd/sys/nfsclient/ |
H A D | nfs.h | 158 struct ucred *cred); 160 struct ucred *cred, int *iomode, int *must_commit); 163 struct ucred *cred); 166 struct ucred *cred, struct thread *td); 245 int nfs_readrpc(struct vnode *, struct uio *, struct ucred *); 249 struct ucred *cred, struct thread *td); 250 int nfs_readdirrpc(struct vnode *, struct uio *, struct ucred *); 256 int nfs_readlinkrpc(struct vnode *, struct uio *, struct ucred *); 260 struct ucred *, struct mbuf **, struct mbuf **, caddr_t *); 279 int nfs_fsinfo(struct nfsmount *, struct vnode *, struct ucred *, [all …]
|
/freebsd/sys/security/mac_seeotheruids/ |
H A D | mac_seeotheruids.c | 104 seeotheruids_check(struct ucred *cr1, struct ucred *cr2) in seeotheruids_check() 133 seeotheruids_proc_check_debug(struct ucred *cred, struct proc *p) in seeotheruids_proc_check_debug() 140 seeotheruids_proc_check_sched(struct ucred *cred, struct proc *p) in seeotheruids_proc_check_sched() 147 seeotheruids_proc_check_signal(struct ucred *cred, struct proc *p, in seeotheruids_proc_check_signal() 155 seeotheruids_cred_check_visible(struct ucred *cr1, struct ucred *cr2) in seeotheruids_cred_check_visible() 162 seeotheruids_inpcb_check_visible(struct ucred *cred, struct inpcb *inp, in seeotheruids_inpcb_check_visible() 170 seeotheruids_socket_check_visible(struct ucred *cred, struct socket *so, in seeotheruids_socket_check_visible()
|
/freebsd/sys/security/mac_partition/ |
H A D | mac_partition.c | 110 partition_cred_check_relabel(struct ucred *cred, struct label *newlabel) in partition_cred_check_relabel() 137 partition_cred_check_visible(struct ucred *cr1, struct ucred *cr2) in partition_cred_check_visible() 157 partition_cred_create_init(struct ucred *cred) in partition_cred_create_init() 164 partition_cred_create_swapper(struct ucred *cred) in partition_cred_create_swapper() 218 partition_cred_relabel(struct ucred *cred, struct label *newlabel) in partition_cred_relabel() 226 partition_inpcb_check_visible(struct ucred *cred, struct inpcb *inp, in partition_inpcb_check_visible() 237 partition_proc_check_debug(struct ucred *cred, struct proc *p) in partition_proc_check_debug() 247 partition_proc_check_sched(struct ucred *cred, struct proc *p) in partition_proc_check_sched() 257 partition_proc_check_signal(struct ucred *cred, struct proc *p, in partition_proc_check_signal() 268 partition_socket_check_visible(struct ucred *cred, struct socket *so, in partition_socket_check_visible() [all …]
|
/freebsd/sys/security/mac_biba/ |
H A D | mac_biba.c | 814 biba_cred_associate_nfsd(struct ucred *cred) in biba_cred_associate_nfsd() 886 biba_cred_check_visible(struct ucred *u1, struct ucred *u2) in biba_cred_check_visible() 904 biba_cred_create_init(struct ucred *cred) in biba_cred_create_init() 1647 biba_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_write() 1665 biba_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_rdonly() 1743 biba_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_read() 1797 biba_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_stat() 1851 biba_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_write() 3146 biba_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in biba_vnode_check_poll() 3164 biba_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in biba_vnode_check_read() [all …]
|
/freebsd/sys/security/mac_mls/ |
H A D | mac_mls.c | 850 mls_cred_check_visible(struct ucred *cr1, struct ucred *cr2) in mls_cred_check_visible() 868 mls_cred_create_init(struct ucred *cred) in mls_cred_create_init() 1507 mls_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_rdonly() 1561 mls_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_write() 1639 mls_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_read() 1693 mls_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_stat() 1747 mls_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_write() 2776 mls_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_poll() 2794 mls_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_read() 3077 mls_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_stat() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-getpeereid.c | 30 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/sys/kern/ |
H A D | kern_prot.c | 96 static int cr_canseejailproc(struct ucred *u1, struct ucred *u2); 1379 cr_canseeotheruids(struct ucred *u1, struct ucred *u2) in cr_canseeotheruids() 1409 cr_canseeothergids(struct ucred *u1, struct ucred *u2) in cr_canseeothergids() 1448 cr_canseejailproc(struct ucred *u1, struct ucred *u2) in cr_canseejailproc() 1464 cr_bsd_visible(struct ucred *u1, struct ucred *u2) in cr_bsd_visible() 1488 cr_cansee(struct ucred *u1, struct ucred *u2) in cr_cansee() 1893 struct ucred * 1967 struct ucred * 2030 struct ucred * 2053 struct ucred * [all …]
|
H A D | kern_priv.c | 60 suser_enabled(struct ucred *cred) in suser_enabled() 69 struct ucred *cred; in sysctl_kern_suser_enabled() 99 priv_check_cred_pre(struct ucred *cred, int priv) in priv_check_cred_pre() 112 priv_check_cred_post(struct ucred *cred, int priv, int error, bool handled) in priv_check_cred_post() 148 priv_check_cred(struct ucred *cred, int priv) in priv_check_cred() 277 priv_check_cred_vfs_lookup_slow(struct ucred *cred) in priv_check_cred_vfs_lookup_slow() 297 priv_check_cred_vfs_lookup(struct ucred *cred) in priv_check_cred_vfs_lookup() 312 priv_check_cred_vfs_lookup_nomac(struct ucred *cred) in priv_check_cred_vfs_lookup_nomac() 327 priv_check_cred_vfs_generation_slow(struct ucred *cred) in priv_check_cred_vfs_generation_slow() 352 priv_check_cred_vfs_generation(struct ucred *cred) in priv_check_cred_vfs_generation()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_file.h | 199 struct ucred *cred, pid_t pid); 201 struct fuse_filehandle **fufhp, struct ucred *cred, 204 struct fuse_filehandle **fufhp, struct ucred *cred, 207 struct fuse_filehandle **fufhp, struct ucred *cred, 212 const struct ucred *cred, 216 struct ucred *cred); 218 struct thread *td, struct ucred *cred);
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_extern.h | 49 struct ucred; 56 struct ucred *, ufs2_daddr_t *); 58 struct ucred *a_cred, int a_flags, struct buf **a_bpp); 60 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 *), 166 struct ucred *); 176 struct ucred *, int); [all …]
|