Lines Matching refs:kauth_cred_t
137 int mac_audit_check_postselect(kauth_cred_t cred, unsigned short syscode,
139 int mac_audit_check_preselect(kauth_cred_t cred, unsigned short syscode,
144 void mac_bpfdesc_label_associate(kauth_cred_t cred, struct bpf_d *bpf_d);
145 int mac_cred_check_label_update(kauth_cred_t cred,
150 int mac_cred_check_visible(kauth_cred_t u1, kauth_cred_t u2);
152 void mac_cred_label_associate(kauth_cred_t cred_parent,
153 kauth_cred_t cred_child);
154 void mac_cred_label_associate_fork(kauth_cred_t cred, proc_t child);
155 void mac_cred_label_associate_kernel(kauth_cred_t cred);
156 void mac_cred_label_associate_user(kauth_cred_t cred);
157 void mac_cred_label_destroy(kauth_cred_t cred);
160 void mac_cred_label_init(kauth_cred_t cred);
161 void mac_cred_label_update(kauth_cred_t cred, struct label *newlabel);
162 int mac_cred_label_update_execve(vfs_context_t ctx, kauth_cred_t newcred,
175 int mac_file_check_change_offset(kauth_cred_t cred, struct fileglob *fg);
176 int mac_file_check_create(kauth_cred_t cred);
177 int mac_file_check_dup(kauth_cred_t cred, struct fileglob *fg, int newfd);
178 int mac_file_check_fcntl(kauth_cred_t cred, struct fileglob *fg, int cmd,
180 int mac_file_check_get(kauth_cred_t cred, struct fileglob *fg,
182 int mac_file_check_get_offset(kauth_cred_t cred, struct fileglob *fg);
183 int mac_file_check_inherit(kauth_cred_t cred, struct fileglob *fg);
184 int mac_file_check_ioctl(kauth_cred_t cred, struct fileglob *fg,
186 int mac_file_check_lock(kauth_cred_t cred, struct fileglob *fg, int op,
188 int mac_file_check_mmap(kauth_cred_t cred, struct fileglob *fg,
190 void mac_file_check_mmap_downgrade(kauth_cred_t cred, struct fileglob *fg,
192 int mac_file_check_receive(kauth_cred_t cred, struct fileglob *fg);
193 int mac_file_check_set(kauth_cred_t cred, struct fileglob *fg,
195 void mac_file_label_associate(kauth_cred_t cred, struct fileglob *fg);
202 int mac_ifnet_label_get(kauth_cred_t cred, struct ifreq *ifr,
206 int mac_ifnet_label_set(kauth_cred_t cred, struct ifreq *ifr,
266 int mac_pipe_check_ioctl(kauth_cred_t cred, struct pipe *cpipe,
268 int mac_pipe_check_kqfilter(kauth_cred_t cred, struct knote *kn,
270 int mac_pipe_check_read(kauth_cred_t cred, struct pipe *cpipe);
271 int mac_pipe_check_select(kauth_cred_t cred, struct pipe *cpipe,
273 int mac_pipe_check_stat(kauth_cred_t cred, struct pipe *cpipe);
274 int mac_pipe_check_write(kauth_cred_t cred, struct pipe *cpipe);
276 void mac_pipe_label_associate(kauth_cred_t cred, struct pipe *cpipe);
281 int mac_pipe_label_update(kauth_cred_t cred, struct pipe *cpipe,
284 int mac_posixsem_check_create(kauth_cred_t cred, const char *name);
285 int mac_posixsem_check_open(kauth_cred_t cred, struct pseminfo *psem);
286 int mac_posixsem_check_post(kauth_cred_t cred, struct pseminfo *psem);
287 int mac_posixsem_check_unlink(kauth_cred_t cred, struct pseminfo *psem,
289 int mac_posixsem_check_wait(kauth_cred_t cred, struct pseminfo *psem);
290 void mac_posixsem_vnode_label_associate(kauth_cred_t cred,
293 void mac_posixsem_label_associate(kauth_cred_t cred,
297 int mac_posixshm_check_create(kauth_cred_t cred, const char *name);
298 int mac_posixshm_check_mmap(kauth_cred_t cred, struct pshminfo *pshm,
300 int mac_posixshm_check_open(kauth_cred_t cred, struct pshminfo *pshm);
301 int mac_posixshm_check_stat(kauth_cred_t cred, struct pshminfo *pshm);
302 int mac_posixshm_check_truncate(kauth_cred_t cred, struct pshminfo *pshm,
304 int mac_posixshm_check_unlink(kauth_cred_t cred, struct pshminfo *pshm,
306 void mac_posixshm_vnode_label_associate(kauth_cred_t cred,
309 void mac_posixshm_label_associate(kauth_cred_t cred,
315 int mac_proc_check_get_task_name(kauth_cred_t cred, struct proc *p);
316 int mac_proc_check_get_task(kauth_cred_t cred, struct proc *p);
333 int mac_setsockopt_label(kauth_cred_t cred, struct socket *so,
335 int mac_socket_check_accept(kauth_cred_t cred, struct socket *so);
336 int mac_socket_check_accepted(kauth_cred_t cred, struct socket *so);
337 int mac_socket_check_bind(kauth_cred_t cred, struct socket *so,
339 int mac_socket_check_connect(kauth_cred_t cred, struct socket *so,
341 int mac_socket_check_create(kauth_cred_t cred, int domain,
344 int mac_socket_check_kqfilter(kauth_cred_t cred, struct knote *kn,
346 int mac_socket_check_listen(kauth_cred_t cred, struct socket *so);
347 int mac_socket_check_receive(kauth_cred_t cred, struct socket *so);
348 int mac_socket_check_received(kauth_cred_t cred, struct socket *so,
350 int mac_socket_check_select(kauth_cred_t cred, struct socket *so,
352 int mac_socket_check_send(kauth_cred_t cred, struct socket *so,
354 int mac_socket_check_getsockopt(kauth_cred_t cred, struct socket *so,
356 int mac_socket_check_setsockopt(kauth_cred_t cred, struct socket *so,
358 int mac_socket_check_stat(kauth_cred_t cred, struct socket *so);
359 void mac_socket_label_associate(kauth_cred_t cred, struct socket *so);
364 int mac_socket_label_get(kauth_cred_t cred, struct socket *so,
370 int mac_socketpeer_label_get(kauth_cred_t cred, struct socket *so,
372 int mac_system_check_acct(kauth_cred_t cred, struct vnode *vp);
373 int mac_system_check_audit(kauth_cred_t cred, void *record, int length);
374 int mac_system_check_auditctl(kauth_cred_t cred, struct vnode *vp);
375 int mac_system_check_auditon(kauth_cred_t cred, int cmd);
376 int mac_system_check_host_priv(kauth_cred_t cred);
377 int mac_system_check_nfsd(kauth_cred_t cred);
378 int mac_system_check_reboot(kauth_cred_t cred, int howto);
379 int mac_system_check_settime(kauth_cred_t cred);
380 int mac_system_check_swapoff(kauth_cred_t cred, struct vnode *vp);
381 int mac_system_check_swapon(kauth_cred_t cred, struct vnode *vp);
382 int mac_system_check_sysctl(kauth_cred_t cred, int *name,
385 void mac_sysvmsg_label_associate(kauth_cred_t cred,
389 int mac_sysvmsq_check_enqueue(kauth_cred_t cred, struct msg *msgptr,
391 int mac_sysvmsq_check_msgrcv(kauth_cred_t cred, struct msg *msgptr);
392 int mac_sysvmsq_check_msgrmid(kauth_cred_t cred, struct msg *msgptr);
393 int mac_sysvmsq_check_msqctl(kauth_cred_t cred,
395 int mac_sysvmsq_check_msqget(kauth_cred_t cred,
397 int mac_sysvmsq_check_msqrcv(kauth_cred_t cred,
399 int mac_sysvmsq_check_msqsnd(kauth_cred_t cred,
401 void mac_sysvmsq_label_associate(kauth_cred_t cred,
405 int mac_sysvsem_check_semctl(kauth_cred_t cred,
407 int mac_sysvsem_check_semget(kauth_cred_t cred,
409 int mac_sysvsem_check_semop(kauth_cred_t cred,
411 void mac_sysvsem_label_associate(kauth_cred_t cred,
416 int mac_sysvshm_check_shmat(kauth_cred_t cred,
418 int mac_sysvshm_check_shmctl(kauth_cred_t cred,
420 int mac_sysvshm_check_shmdt(kauth_cred_t cred,
422 int mac_sysvshm_check_shmget(kauth_cred_t cred,
424 void mac_sysvshm_label_associate(kauth_cred_t cred,
452 kauth_cred_t file_cred, struct knote *kn, struct vnode *vp);
463 kauth_cred_t file_cred, struct vnode *vp);
486 kauth_cred_t file_cred, struct vnode *vp);
488 kauth_cred_t file_cred, struct vnode *vp);
492 kauth_cred_t file_cred, struct vnode *vp);