Searched refs:ucred (Results 1 - 25 of 59) sorted by relevance

123

/darwin-on-arm/xnu/security/
H A Dmac_file.c79 mac_file_label_associate(struct ucred *cred, struct fileglob *fg)
94 mac_file_check_create(struct ucred *cred)
103 mac_file_check_dup(struct ucred *cred, struct fileglob *fg, int newfd)
112 mac_file_check_fcntl(struct ucred *cred, struct fileglob *fg, int cmd,
122 mac_file_check_ioctl(struct ucred *cred, struct fileglob *fg, u_int cmd)
131 mac_file_check_inherit(struct ucred *cred, struct fileglob *fg)
140 mac_file_check_receive(struct ucred *cred, struct fileglob *fg)
149 mac_file_check_get_offset(struct ucred *cred, struct fileglob *fg)
158 mac_file_check_change_offset(struct ucred *cred, struct fileglob *fg)
167 mac_file_check_get(struct ucred *cre
[all...]
H A Dmac_sysv_shm.c116 mac_sysvshm_label_associate(struct ucred *cred, struct shmid_kernel *shmsegptr)
130 mac_sysvshm_check_shmat(struct ucred *cred, struct shmid_kernel *shmsegptr,
145 mac_sysvshm_check_shmctl(struct ucred *cred, struct shmid_kernel *shmsegptr,
160 mac_sysvshm_check_shmdt(struct ucred *cred, struct shmid_kernel *shmsegptr)
173 mac_sysvshm_check_shmget(struct ucred *cred, struct shmid_kernel *shmsegptr,
H A Dmac_audit.c83 mac_system_check_audit(struct ucred *cred, void *record, int length)
93 mac_system_check_auditon(struct ucred *cred, int cmd)
103 mac_system_check_auditctl(struct ucred *cred, struct vnode *vp)
240 mac_audit_check_preselect(struct ucred *cred, unsigned short syscode, void *args)
277 mac_audit_check_postselect(struct ucred *cred, unsigned short syscode,
328 mac_system_check_audit(__unused struct ucred *cred, __unused void *record, __unused int length)
335 mac_system_check_auditon(__unused struct ucred *cred, __unused int cmd)
342 mac_system_check_auditctl(__unused struct ucred *cred, __unused struct vnode *vp)
378 mac_audit_check_preselect(__unused struct ucred *cred, __unused unsigned short syscode,
386 mac_audit_check_postselect(__unused struct ucred *cre
[all...]
H A Dmac_process.c67 #include <sys/ucred.h>
95 mac_cred_label_init(struct ucred *cred)
197 mac_cred_label_associate(struct ucred *parent_cred, struct ucred *child_cred)
347 mac_proc_check_get_task_name(struct ucred *cred, struct proc *p)
357 mac_proc_check_get_task(struct ucred *cred, struct proc *p)
H A Dmac_net.c278 mac_bpfdesc_label_associate(struct ucred *cred, struct bpf_d *bpf_d)
426 mac_ifnet_label_get(__unused struct ucred *cred, struct ifreq *ifr,
472 mac_ifnet_label_set(struct ucred *cred, struct ifreq *ifr,
H A Dmac_socket.c214 mac_socket_label_associate(struct ucred *cred, struct socket *so)
495 mac_socket_check_bind(kauth_cred_t ucred, struct socket *so, argument
503 MAC_CHECK(socket_check_bind, ucred,
/darwin-on-arm/xnu/bsd/sys/
H A Dfile.h82 struct ucred;
83 typedef struct ucred *kauth_cred_t;
H A Ducred.h61 * @(#)ucred.h 8.4 (Berkeley) 1/9/95
89 struct ucred { struct
90 TAILQ_ENTRY(ucred) cr_link; /* never modify this without KAUTH_CRED_HASH_LOCK */
118 typedef struct ucred *kauth_cred_t;
130 * This is the external representation of struct ucred.
H A Dkernel_types.h55 struct ucred;
56 typedef struct ucred * ucred_t;
106 typedef struct ucred * ucred_t;
H A Dipc.h194 struct ucred;
196 int ipcperm(struct ucred *, struct ipc_perm *, int);
H A Dprotosw.h251 struct ucred;
303 struct ucred *cred, void *);
342 struct ucred *cred, void *);
H A Dparam.h119 #include <sys/ucred.h>
H A Dubc_internal.h43 #include <sys/ucred.h>
H A Dunpcb.h69 #include <sys/ucred.h>
H A Dfile_internal.h115 struct ucred;
116 typedef struct ucred *kauth_cred_t;
H A Dtypes.h303 struct ucred;
H A Duser.h73 #include <sys/ucred.h>
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_quota.h83 struct ucred;
84 typedef struct ucred *kauth_cred_t;
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_resource.c432 kauth_cred_t ucred; local
435 ucred = kauth_cred_proc_ref(curp);
438 if (suser(ucred, NULL) && kauth_cred_getruid(ucred) &&
439 kauth_cred_getuid(ucred) != kauth_cred_getuid(my_cred) &&
440 kauth_cred_getruid(ucred) != kauth_cred_getuid(my_cred)) {
448 if (n < chgp->p_nice && suser(ucred, &curp->p_acflag)) {
462 kauth_cred_unref(&ucred);
471 kauth_cred_t ucred; local
474 ucred
605 kauth_cred_t ucred; local
[all...]
H A Dsysv_ipc.c64 #include <sys/ucred.h>
/darwin-on-arm/xnu/bsd/dev/arm/
H A Dstubs.c40 #include <sys/ucred.h>
/darwin-on-arm/xnu/bsd/dev/i386/
H A Dstubs.c40 #include <sys/ucred.h>
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_cache.c845 kauth_cred_t ucred; local
875 ucred = vfs_context_ucred(ctx);
879 if (vp->v_cred == ucred && (vp->v_authorized_actions & action) == action)
891 kauth_cred_t ucred; local
895 ucred = vfs_context_ucred(ctx);
897 if (!IS_VALID_CRED(ucred) || action == 0)
923 if (vp->v_cred != ucred) {
924 kauth_cred_ref(ucred);
929 vp->v_cred = ucred;
983 kauth_cred_t ucred; local
[all...]
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dtests.h47 #include <sys/ucred.h>
/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit.h259 struct ucred;
260 typedef struct ucred *kauth_cred_t;

Completed in 178 milliseconds

123