Home
last modified time | relevance | path

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

12

/xnu-11215/security/
H A Dmac_file.c51 mac_file_check_create(struct ucred *cred) in mac_file_check_create()
60 mac_file_check_dup(struct ucred *cred, struct fileglob *fg, int newfd) in mac_file_check_dup()
69 mac_file_check_fcntl(struct ucred *cred, struct fileglob *fg, int cmd, in mac_file_check_fcntl()
88 mac_file_check_inherit(struct ucred *cred, struct fileglob *fg) in mac_file_check_inherit()
97 mac_file_check_receive(struct ucred *cred, struct fileglob *fg) in mac_file_check_receive()
106 mac_file_check_get_offset(struct ucred *cred, struct fileglob *fg) in mac_file_check_get_offset()
115 mac_file_check_change_offset(struct ucred *cred, struct fileglob *fg) in mac_file_check_change_offset()
134 mac_file_check_set(struct ucred *cred, struct fileglob *fg, char *buf, in mac_file_check_set()
144 mac_file_check_lock(struct ucred *cred, struct fileglob *fg, int op, in mac_file_check_lock()
174 mac_file_check_mmap(struct ucred *cred, struct fileglob *fg, int prot, in mac_file_check_mmap()
[all …]
H A Dmac_audit.c82 mac_system_check_audit(struct ucred *cred, void *record, int length) in mac_system_check_audit()
92 mac_system_check_auditon(struct ucred *cred, int cmd) in mac_system_check_auditon()
102 mac_system_check_auditctl(struct ucred *cred, struct vnode *vp) in mac_system_check_auditctl()
256 mac_audit_check_preselect(struct ucred *cred, unsigned short syscode, void *args) in mac_audit_check_preselect()
295 mac_audit_check_postselect(struct ucred *cred, unsigned short syscode, in mac_audit_check_postselect()
349 mac_system_check_audit(__unused struct ucred *cred, __unused void *record, __unused int length) in mac_system_check_audit()
355 mac_system_check_auditon(__unused struct ucred *cred, __unused int cmd) in mac_system_check_auditon()
361 mac_system_check_auditctl(__unused struct ucred *cred, __unused struct vnode *vp) in mac_system_check_auditctl()
392 mac_audit_check_preselect(__unused struct ucred *cred, __unused unsigned short syscode, in mac_audit_check_preselect()
399 mac_audit_check_postselect(__unused struct ucred *cred, __unused unsigned short syscode, in mac_audit_check_postselect()
H A Dmac_sysv_shm.c103 mac_sysvshm_label_associate(struct ucred *cred, struct shmid_kernel *shmsegptr) in mac_sysvshm_label_associate()
115 mac_sysvshm_check_shmat(struct ucred *cred, struct shmid_kernel *shmsegptr, in mac_sysvshm_check_shmat()
134 mac_sysvshm_check_shmctl(struct ucred *cred, struct shmid_kernel *shmsegptr, in mac_sysvshm_check_shmctl()
153 mac_sysvshm_check_shmdt(struct ucred *cred, struct shmid_kernel *shmsegptr) in mac_sysvshm_check_shmdt()
170 mac_sysvshm_check_shmget(struct ucred *cred, struct shmid_kernel *shmsegptr, in mac_sysvshm_check_shmget()
H A Dmac_process.c107 mac_cred_label_init(struct ucred *cred) in mac_cred_label_init()
113 mac_cred_label_seal(struct ucred *cred) in mac_cred_label_seal()
141 mac_cred_label(struct ucred *cred) in mac_cred_label()
240 mac_cred_label_associate(struct ucred *parent_cred, struct ucred *child_cred) in mac_cred_label_associate()
430 mac_proc_check_get_task(struct ucred *cred, proc_ident_t pident, mach_task_flavor_t flavor) in mac_proc_check_get_task()
442 mac_proc_check_expose_task(struct ucred *cred, proc_ident_t pident, mach_task_flavor_t flavor) in mac_proc_check_expose_task()
H A Dmac_socket.c130 mac_socket_check_bind(kauth_cred_t ucred, struct socket *so, in mac_socket_check_bind() argument
142 MAC_CHECK(socket_check_bind, ucred, in mac_socket_check_bind()
H A Dmac_policy.h117 struct ucred;
133 typedef struct ucred *kauth_cred_t;
4345 struct ucred *cred,
4875 struct ucred *active_cred,
4876 struct ucred *file_cred, /* NULLOK */
5155 struct ucred *cred,
5176 struct ucred *cred,
5195 struct ucred *cred,
5214 struct ucred *cred,
H A Dmac_framework.h115 struct ucred;
213 void mac_file_notify_close(struct ucred *cred, struct fileglob *fg);
463 int mac_vnode_check_getattr(vfs_context_t ctx, struct ucred *file_cred,
/xnu-11215/bsd/sys/
H A Ducred.h146 struct ucred { struct
151 LIST_ENTRY(ucred) cr_link; /* never modify this without KAUTH_CRED_HASH_LOCK */ argument
183 struct ucred; argument
189 typedef struct ucred *kauth_cred_t;
221 int set_security_token(struct proc *p, struct ucred *cred);
H A Dkernel_types.h59 struct ucred;
60 typedef struct ucred * ucred_t;
61 __CCT_DECLARE_CONSTRAINED_PTR_TYPES(struct ucred, ucred);
131 typedef struct ucred * ucred_t;
132 __CCT_DECLARE_CONSTRAINED_PTR_TYPES(struct ucred, ucred);
H A Dfile.h82 struct ucred;
83 typedef struct ucred *kauth_cred_t;
H A Dipc.h179 struct ucred;
181 int ipcperm(struct ucred *, struct ipc_perm *, int);
H A Dproc_ro.h42 struct ucred;
81 SMR_POINTER(struct ucred *) p_ucred; /* Process owner's identity. (PUCL) */
H A Dfiledesc.h93 struct ucred;
401 fdt_exec(proc_t p, struct ucred *p_cred, short posix_spawn_flags, thread_t thread, bool in_exec);
435 struct ucred *p_cred,
H A Dprotosw.h447 struct ucred;
494 struct ucred *cred, void *);
539 int (*pru_sopoll)(struct socket *, int, struct ucred *, void *);
600 struct ucred *cred, void *);
H A Dtypes.h219 struct ucred;
H A Dubc.h83 int ubc_setcred(struct vnode *, struct ucred *);
H A Dpersona.h367 typedef struct ucred *kauth_cred_t;
H A DMakefile46 ttydefaults.h types.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
163 types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
/xnu-11215/bsd/kern/
H A Dkern_resource.c628 kauth_cred_t ucred; in donice() local
634 if (suser(ucred, NULL) && kauth_cred_getruid(ucred) && in donice()
661 kauth_cred_unref(&ucred); in donice()
670 kauth_cred_t ucred; in set_gpudeny_proc() local
673 ucred = kauth_cred_get(); in set_gpudeny_proc()
678 if (!kauth_cred_issuser(ucred) && kauth_cred_getruid(ucred) && in set_gpudeny_proc()
725 if (!kauth_cred_issuser(ucred) && kauth_cred_getruid(ucred) && in proc_set_darwin_role()
779 if (!kauth_cred_issuser(ucred) && kauth_cred_getruid(ucred) && in proc_get_darwin_role()
973 if (!kauth_cred_issuser(ucred) && kauth_cred_getruid(ucred) && in get_background_proc()
996 kauth_cred_t ucred; in do_background_proc() local
[all …]
H A Dkern_credential.c3297 struct ucred *crw_cred;
3538 struct ucred *ucred = kauth_cred_get(); in kauth_cred_get_with_ref() local
3539 kauth_cred_ref(ucred); in kauth_cred_get_with_ref()
3540 return ucred; in kauth_cred_get_with_ref()
3677 struct ucred *newcred; in kauth_cred_alloc()
3793 struct ucred *cred = kauth_cred_ro(rw); in kauth_cred_free()
3818 sizeof(struct ucred); in kauth_cred_retire()
3828 struct ucred model = { in posix_cred_create_internal()
3909 struct ucred model = { in kauth_cred_derive()
4403 struct ucred *cred = *credp;
[all …]
H A Dkern_fork.c1522 uthread_cred_ref(struct ucred *ucred) in uthread_cred_ref() argument
1524 kauth_cred_ref(ucred); in uthread_cred_ref()
1528 uthread_cred_free(struct ucred *ucred) in uthread_cred_free() argument
1530 kauth_cred_set(&ucred, NOCRED); in uthread_cred_free()
/xnu-11215/bsd/vfs/
H A Dvfs_cache.c1558 kauth_cred_t ucred; in vnode_cache_is_authorized() local
1591 ucred = vfs_context_ucred(ctx); in vnode_cache_is_authorized()
1595 if (vnode_cred(vp) == ucred && (vp->v_authorized_actions & action) == action) { in vnode_cache_is_authorized()
1609 kauth_cred_t ucred; in vnode_cache_authorized_action() local
1613 ucred = vfs_context_ucred(ctx); in vnode_cache_authorized_action()
1615 if (!IS_VALID_CRED(ucred) || action == 0) { in vnode_cache_authorized_action()
1645 if (tcred == ucred) { in vnode_cache_authorized_action()
1651 kauth_cred_ref(ucred); in vnode_cache_authorized_action()
1652 vp->v_cred = ucred; in vnode_cache_authorized_action()
1767 kauth_cred_t ucred; in cache_lookup_path() local
[all …]
/xnu-11215/bsd/security/audit/
H A Daudit.h266 struct ucred;
267 typedef struct ucred *kauth_cred_t;
/xnu-11215/osfmk/kern/
H A Dthread.h199 struct ucred *tro_cred;
200 struct ucred *tro_realcred;
1616 extern void uthread_cred_ref(struct ucred *);
1617 extern void uthread_cred_free(struct ucred *);
/xnu-11215/bsd/miscfs/nullfs/
H A Dnull_vnops.c126 kauth_cred_t ucred; in nullfs_get_patched_context() local
130 ucred = kauth_cred_derive(ectx->vc_ucred, in nullfs_get_patched_context()
136 ectx->vc_ucred = ucred; in nullfs_get_patched_context()

12