Lines Matching full:struct

54 struct auditinfo;
55 struct auditinfo_addr;
56 struct bpf_d;
57 struct cdev;
58 struct componentname;
59 struct devfs_dirent;
60 struct ifnet;
61 struct ifreq;
62 struct image_params;
63 struct inpcb;
64 struct ip6q;
65 struct ipq;
66 struct kdb_dbbe;
67 struct ksem;
68 struct label;
69 struct m_tag;
70 struct mac;
71 struct mbuf;
72 struct mount;
73 struct msg;
74 struct msqid_kernel;
75 struct pipepair;
76 struct proc;
77 struct semid_kernel;
78 struct shmfd;
79 struct shmid_kernel;
80 struct sockaddr;
81 struct socket;
82 struct sysctl_oid;
83 struct sysctl_req;
84 struct thread;
85 struct timespec;
86 struct ucred;
87 struct vattr;
88 struct vnode;
89 struct vop_setlabel_args;
91 struct in_addr;
92 struct in6_addr;
107 int mac_bpfdesc_check_receive(struct bpf_d *d, struct ifnet *ifp);
108 void mac_bpfdesc_create(struct ucred *cred, struct bpf_d *d);
109 void mac_bpfdesc_create_mbuf(struct bpf_d *d, struct mbuf *m);
110 void mac_bpfdesc_destroy(struct bpf_d *);
111 void mac_bpfdesc_init(struct bpf_d *);
113 void mac_cred_associate_nfsd(struct ucred *cred);
114 int mac_cred_check_setaudit(struct ucred *cred, struct auditinfo *ai);
115 int mac_cred_check_setaudit_addr(struct ucred *cred,
116 struct auditinfo_addr *aia);
117 int mac_cred_check_setauid(struct ucred *cred, uid_t auid);
119 int mac_cred_check_setcred(u_int flags, const struct ucred *old_cred,
120 struct ucred *new_cred);
122 int mac_cred_check_setegid(struct ucred *cred, gid_t egid);
123 int mac_cred_check_seteuid(struct ucred *cred, uid_t euid);
124 int mac_cred_check_setgid(struct ucred *cred, gid_t gid);
125 int mac_cred_check_setgroups(struct ucred *cred, int ngroups,
127 int mac_cred_check_setregid(struct ucred *cred, gid_t rgid, gid_t egid);
128 int mac_cred_check_setresgid(struct ucred *cred, gid_t rgid, gid_t egid,
130 int mac_cred_check_setresuid(struct ucred *cred, uid_t ruid, uid_t euid,
132 int mac_cred_check_setreuid(struct ucred *cred, uid_t ruid, uid_t euid);
133 int mac_cred_check_setuid(struct ucred *cred, uid_t uid);
134 int mac_cred_check_visible(struct ucred *cr1, struct ucred *cr2);
135 void mac_cred_copy(struct ucred *cr1, struct ucred *cr2);
136 void mac_cred_create_init(struct ucred *cred);
137 void mac_cred_create_swapper(struct ucred *cred);
138 void mac_cred_destroy(struct ucred *);
139 void mac_cred_init(struct ucred *);
141 int mac_ddb_command_register(struct db_command_table *table,
142 struct db_command *cmd);
143 int mac_ddb_command_exec(struct db_command *cmd, db_expr_t addr,
146 void mac_devfs_create_device(struct ucred *cred, struct mount *mp,
147 struct cdev *dev, struct devfs_dirent *de);
148 void mac_devfs_create_directory(struct mount *mp, char *dirname,
149 int dirnamelen, struct devfs_dirent *de);
150 void mac_devfs_create_symlink(struct ucred *cred, struct mount *mp,
151 struct devfs_dirent *dd, struct devfs_dirent *de);
152 void mac_devfs_destroy(struct devfs_dirent *);
153 void mac_devfs_init(struct devfs_dirent *);
154 void mac_devfs_update(struct mount *mp, struct devfs_dirent *de,
155 struct vnode *vp);
156 void mac_devfs_vnode_associate(struct mount *mp, struct devfs_dirent *de,
157 struct vnode *vp);
159 int mac_ifnet_check_transmit_impl(struct ifnet *ifp, struct mbuf *m);
167 mac_ifnet_check_transmit(struct ifnet *ifp, struct mbuf *m) in mac_ifnet_check_transmit()
175 void mac_ifnet_create(struct ifnet *ifp);
177 void mac_ifnet_create_mbuf_impl(struct ifnet *ifp, struct mbuf *m);
185 mac_ifnet_create_mbuf(struct ifnet *ifp, struct mbuf *m) in mac_ifnet_create_mbuf()
192 void mac_ifnet_destroy(struct ifnet *);
193 void mac_ifnet_init(struct ifnet *);
194 int mac_ifnet_ioctl_get(struct ucred *cred, struct ifreq *ifr,
195 struct ifnet *ifp);
196 int mac_ifnet_ioctl_set(struct ucred *cred, struct ifreq *ifr,
197 struct ifnet *ifp);
200 int mac_inet_check_add_addr(struct ucred *cred,
201 const struct in_addr *ia, struct ifnet *ifp);
202 int mac_inet6_check_add_addr(struct ucred *cred,
203 const struct in6_addr *ia6, struct ifnet *ifp);
205 int mac_inpcb_check_deliver(struct inpcb *inp, struct mbuf *m);
206 int mac_inpcb_check_visible(struct ucred *cred, struct inpcb *inp);
207 void mac_inpcb_create(struct socket *so, struct inpcb *inp);
208 void mac_inpcb_create_mbuf(struct inpcb *inp, struct mbuf *m);
209 void mac_inpcb_destroy(struct inpcb *);
210 int mac_inpcb_init(struct inpcb *, int);
211 void mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp);
213 void mac_ip6q_create(struct mbuf *m, struct ip6q *q6);
214 void mac_ip6q_destroy(struct ip6q *q6);
215 int mac_ip6q_init(struct ip6q *q6, int);
216 int mac_ip6q_match(struct mbuf *m, struct ip6q *q6);
217 void mac_ip6q_reassemble(struct ip6q *q6, struct mbuf *m);
218 void mac_ip6q_update(struct mbuf *m, struct ip6q *q6);
220 void mac_ipq_create(struct mbuf *m, struct ipq *q);
221 void mac_ipq_destroy(struct ipq *q);
222 int mac_ipq_init(struct ipq *q, int);
223 int mac_ipq_match(struct mbuf *m, struct ipq *q);
224 void mac_ipq_reassemble(struct ipq *q, struct mbuf *m);
225 void mac_ipq_update(struct mbuf *m, struct ipq *q);
227 int mac_kdb_check_backend(struct kdb_dbbe *be);
228 int mac_kdb_grant_backend(struct kdb_dbbe *be);
230 int mac_kenv_check_dump(struct ucred *cred);
231 int mac_kenv_check_get(struct ucred *cred, char *name);
232 int mac_kenv_check_set(struct ucred *cred, char *name, char *value);
233 int mac_kenv_check_unset(struct ucred *cred, char *name);
235 int mac_kld_check_load(struct ucred *cred, struct vnode *vp);
236 int mac_kld_check_stat(struct ucred *cred);
238 void mac_mbuf_copy(struct mbuf *, struct mbuf *);
239 int mac_mbuf_init(struct mbuf *, int);
241 void mac_mbuf_tag_copy(struct m_tag *, struct m_tag *);
242 void mac_mbuf_tag_destroy(struct m_tag *);
243 int mac_mbuf_tag_init(struct m_tag *, int);
245 int mac_mount_check_stat(struct ucred *cred, struct mount *mp);
246 void mac_mount_create(struct ucred *cred, struct mount *mp);
247 void mac_mount_destroy(struct mount *);
248 void mac_mount_init(struct mount *);
250 void mac_netinet_arp_send(struct ifnet *ifp, struct mbuf *m);
251 void mac_netinet_firewall_reply(struct mbuf *mrecv, struct mbuf *msend);
252 void mac_netinet_firewall_send(struct mbuf *m);
253 void mac_netinet_fragment(struct mbuf *m, struct mbuf *frag);
254 void mac_netinet_icmp_reply(struct mbuf *mrecv, struct mbuf *msend);
255 void mac_netinet_icmp_replyinplace(struct mbuf *m);
256 void mac_netinet_igmp_send(struct ifnet *ifp, struct mbuf *m);
257 void mac_netinet_tcp_reply(struct mbuf *m);
259 void mac_netinet6_nd6_send(struct ifnet *ifp, struct mbuf *m);
261 int mac_pipe_check_ioctl(struct ucred *cred, struct pipepair *pp,
263 int mac_pipe_check_poll_impl(struct ucred *cred, struct pipepair *pp);
271 mac_pipe_check_poll(struct ucred *cred, struct pipepair *pp) in mac_pipe_check_poll()
285 int mac_pipe_check_stat(struct ucred *cred, struct pipepair *pp);
286 int mac_pipe_check_read_impl(struct ucred *cred, struct pipepair *pp);
294 mac_pipe_check_read(struct ucred *cred, struct pipepair *pp) in mac_pipe_check_read()
302 int mac_pipe_check_write(struct ucred *cred, struct pipepair *pp);
303 void mac_pipe_create(struct ucred *cred, struct pipepair *pp);
304 void mac_pipe_destroy(struct pipepair *);
305 void mac_pipe_init(struct pipepair *);
306 int mac_pipe_label_set(struct ucred *cred, struct pipepair *pp,
307 struct label *label);
309 int mac_posixsem_check_getvalue(struct ucred *active_cred,
310 struct ucred *file_cred, struct ksem *ks);
311 int mac_posixsem_check_open(struct ucred *cred, struct ksem *ks);
312 int mac_posixsem_check_post(struct ucred *active_cred,
313 struct ucred *file_cred, struct ksem *ks);
314 int mac_posixsem_check_setmode(struct ucred *cred, struct ksem *ks,
316 int mac_posixsem_check_setowner(struct ucred *cred, struct ksem *ks,
318 int mac_posixsem_check_stat(struct ucred *active_cred,
319 struct ucred *file_cred, struct ksem *ks);
320 int mac_posixsem_check_unlink(struct ucred *cred, struct ksem *ks);
321 int mac_posixsem_check_wait(struct ucred *active_cred,
322 struct ucred *file_cred, struct ksem *ks);
323 void mac_posixsem_create(struct ucred *cred, struct ksem *ks);
324 void mac_posixsem_destroy(struct ksem *);
325 void mac_posixsem_init(struct ksem *);
327 int mac_posixshm_check_create(struct ucred *cred, const char *path);
328 int mac_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd,
330 int mac_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd,
332 int mac_posixshm_check_read(struct ucred *active_cred,
333 struct ucred *file_cred, struct shmfd *shmfd);
334 int mac_posixshm_check_setmode(struct ucred *cred, struct shmfd *shmfd,
336 int mac_posixshm_check_setowner(struct ucred *cred, struct shmfd *shmfd,
338 int mac_posixshm_check_stat(struct ucred *active_cred,
339 struct ucred *file_cred, struct shmfd *shmfd);
340 int mac_posixshm_check_truncate(struct ucred *active_cred,
341 struct ucred *file_cred, struct shmfd *shmfd);
342 int mac_posixshm_check_unlink(struct ucred *cred, struct shmfd *shmfd);
343 int mac_posixshm_check_write(struct ucred *active_cred,
344 struct ucred *file_cred, struct shmfd *shmfd);
345 void mac_posixshm_create(struct ucred *cred, struct shmfd *shmfd);
346 void mac_posixshm_destroy(struct shmfd *);
347 void mac_posixshm_init(struct shmfd *);
349 int mac_priv_check_impl(struct ucred *cred, int priv);
357 mac_priv_check(struct ucred *cred, int priv) in mac_priv_check()
365 int mac_priv_grant_impl(struct ucred *cred, int priv);
373 mac_priv_grant(struct ucred *cred, int priv) in mac_priv_grant()
381 int mac_proc_check_debug(struct ucred *cred, struct proc *p);
382 int mac_proc_check_sched(struct ucred *cred, struct proc *p);
383 int mac_proc_check_signal(struct ucred *cred, struct proc *p,
385 int mac_proc_check_wait(struct ucred *cred, struct proc *p);
386 void mac_proc_destroy(struct proc *);
387 void mac_proc_init(struct proc *);
388 void mac_proc_vm_revoke(struct thread *td);
389 int mac_execve_enter(struct image_params *imgp, struct mac *mac_p);
390 void mac_execve_exit(struct image_params *imgp);
391 void mac_execve_interpreter_enter(struct vnode *interpvp,
392 struct label **interplabel);
393 void mac_execve_interpreter_exit(struct label *interpvplabel);
395 int mac_socket_check_accept(struct ucred *cred, struct socket *so);
396 int mac_socket_check_bind(struct ucred *cred, struct socket *so,
397 struct sockaddr *sa);
398 int mac_socket_check_connect(struct ucred *cred, struct socket *so,
399 struct sockaddr *sa);
400 int mac_socket_check_create(struct ucred *cred, int domain, int type,
402 int mac_socket_check_deliver(struct socket *so, struct mbuf *m);
403 int mac_socket_check_listen(struct ucred *cred, struct socket *so);
404 int mac_socket_check_poll(struct ucred *cred, struct socket *so);
405 int mac_socket_check_receive(struct ucred *cred, struct socket *so);
406 int mac_socket_check_send(struct ucred *cred, struct socket *so);
407 int mac_socket_check_stat(struct ucred *cred, struct socket *so);
408 int mac_socket_check_visible(struct ucred *cred, struct socket *so);
409 void mac_socket_create_mbuf(struct socket *so, struct mbuf *m);
410 void mac_socket_create(struct ucred *cred, struct socket *so);
411 void mac_socket_destroy(struct socket *);
412 int mac_socket_init(struct socket *, int);
413 void mac_socket_newconn(struct socket *oldso, struct socket *newso);
414 int mac_getsockopt_label(struct ucred *cred, struct socket *so,
415 const struct mac *extmac);
416 int mac_getsockopt_peerlabel(struct ucred *cred, struct socket *so,
417 const struct mac *extmac);
418 int mac_setsockopt_label(struct ucred *cred, struct socket *so,
419 const struct mac *extmac);
421 void mac_socketpeer_set_from_mbuf(struct mbuf *m, struct socket *so);
422 void mac_socketpeer_set_from_socket(struct socket *oldso,
423 struct socket *newso);
425 void mac_syncache_create(struct label *l, struct inpcb *inp);
426 void mac_syncache_create_mbuf(struct label *l, struct mbuf *m);
427 void mac_syncache_destroy(struct label **l);
428 int mac_syncache_init(struct label **l);
430 int mac_system_check_acct(struct ucred *cred, struct vnode *vp);
431 int mac_system_check_audit(struct ucred *cred, void *record, int length);
432 int mac_system_check_auditctl(struct ucred *cred, struct vnode *vp);
433 int mac_system_check_auditon(struct ucred *cred, int cmd);
434 int mac_system_check_reboot(struct ucred *cred, int howto);
435 int mac_system_check_swapon(struct ucred *cred, struct vnode *vp);
436 int mac_system_check_swapoff(struct ucred *cred, struct vnode *vp);
437 int mac_system_check_sysctl(struct ucred *cred, struct sysctl_oid *oidp,
438 void *arg1, int arg2, struct sysctl_req *req);
440 void mac_sysvmsg_cleanup(struct msg *msgptr);
441 void mac_sysvmsg_create(struct ucred *cred, struct msqid_kernel *msqkptr,
442 struct msg *msgptr);
443 void mac_sysvmsg_destroy(struct msg *);
444 void mac_sysvmsg_init(struct msg *);
446 int mac_sysvmsq_check_msgmsq(struct ucred *cred, struct msg *msgptr,
447 struct msqid_kernel *msqkptr);
448 int mac_sysvmsq_check_msgrcv(struct ucred *cred, struct msg *msgptr);
449 int mac_sysvmsq_check_msgrmid(struct ucred *cred, struct msg *msgptr);
450 int mac_sysvmsq_check_msqctl(struct ucred *cred,
451 struct msqid_kernel *msqkptr, int cmd);
452 int mac_sysvmsq_check_msqget(struct ucred *cred,
453 struct msqid_kernel *msqkptr);
454 int mac_sysvmsq_check_msqrcv(struct ucred *cred,
455 struct msqid_kernel *msqkptr);
456 int mac_sysvmsq_check_msqsnd(struct ucred *cred,
457 struct msqid_kernel *msqkptr);
458 void mac_sysvmsq_cleanup(struct msqid_kernel *msqkptr);
459 void mac_sysvmsq_create(struct ucred *cred, struct msqid_kernel *msqkptr);
460 void mac_sysvmsq_destroy(struct msqid_kernel *);
461 void mac_sysvmsq_init(struct msqid_kernel *);
463 int mac_sysvsem_check_semctl(struct ucred *cred,
464 struct semid_kernel *semakptr, int cmd);
465 int mac_sysvsem_check_semget(struct ucred *cred,
466 struct semid_kernel *semakptr);
467 int mac_sysvsem_check_semop(struct ucred *cred,
468 struct semid_kernel *semakptr, size_t accesstype);
469 void mac_sysvsem_cleanup(struct semid_kernel *semakptr);
470 void mac_sysvsem_create(struct ucred *cred,
471 struct semid_kernel *semakptr);
472 void mac_sysvsem_destroy(struct semid_kernel *);
473 void mac_sysvsem_init(struct semid_kernel *);
475 int mac_sysvshm_check_shmat(struct ucred *cred,
476 struct shmid_kernel *shmsegptr, int shmflg);
477 int mac_sysvshm_check_shmctl(struct ucred *cred,
478 struct shmid_kernel *shmsegptr, int cmd);
479 int mac_sysvshm_check_shmdt(struct ucred *cred,
480 struct shmid_kernel *shmsegptr);
481 int mac_sysvshm_check_shmget(struct ucred *cred,
482 struct shmid_kernel *shmsegptr, int shmflg);
483 void mac_sysvshm_cleanup(struct shmid_kernel *shmsegptr);
484 void mac_sysvshm_create(struct ucred *cred,
485 struct shmid_kernel *shmsegptr);
486 void mac_sysvshm_destroy(struct shmid_kernel *);
487 void mac_sysvshm_init(struct shmid_kernel *);
489 void mac_thread_userret(struct thread *td);
492 void mac_vnode_assert_locked(struct vnode *vp, const char *func);
497 int mac_vnode_associate_extattr(struct mount *mp, struct vnode *vp);
498 void mac_vnode_associate_singlelabel(struct mount *mp, struct vnode *vp);
499 int mac_vnode_check_access_impl(struct ucred *cred, struct vnode *dvp,
504 mac_vnode_check_access(struct ucred *cred, struct vnode *dvp, in mac_vnode_check_access()
513 int mac_vnode_check_chdir(struct ucred *cred, struct vnode *dvp);
514 int mac_vnode_check_chroot(struct ucred *cred, struct vnode *dvp);
515 int mac_vnode_check_create(struct ucred *cred, struct vnode *dvp,
516 struct componentname *cnp, struct vattr *vap);
517 int mac_vnode_check_deleteacl(struct ucred *cred, struct vnode *vp,
519 int mac_vnode_check_deleteextattr(struct ucred *cred, struct vnode *vp,
521 int mac_vnode_check_exec(struct ucred *cred, struct vnode *vp,
522 struct image_params *imgp);
523 int mac_vnode_check_getacl(struct ucred *cred, struct vnode *vp,
525 int mac_vnode_check_getextattr(struct ucred *cred, struct vnode *vp,
527 int mac_vnode_check_link(struct ucred *cred, struct vnode *dvp,
528 struct vnode *vp, struct componentname *cnp);
529 int mac_vnode_check_listextattr(struct ucred *cred, struct vnode *vp,
532 int mac_vnode_check_lookup_impl(struct ucred *cred, struct vnode *dvp,
533 struct componentname *cnp);
541 mac_vnode_check_lookup(struct ucred *cred, struct vnode *dvp, in mac_vnode_check_lookup()
542 struct componentname *cnp) in mac_vnode_check_lookup()
551 int mac_vnode_check_mmap_impl(struct ucred *cred, struct vnode *vp, int prot,
560 mac_vnode_check_mmap(struct ucred *cred, struct vnode *vp, int prot, in mac_vnode_check_mmap()
570 int mac_vnode_check_open_impl(struct ucred *cred, struct vnode *vp,
579 mac_vnode_check_open(struct ucred *cred, struct vnode *vp, in mac_vnode_check_open()
589 int mac_vnode_check_mprotect(struct ucred *cred, struct vnode *vp,
595 int mac_vnode_check_poll(struct ucred *active_cred,
596 struct ucred *file_cred, struct vnode *vp);
600 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_poll()
601 struct vnode *vp) in mac_vnode_check_poll()
607 int mac_vnode_check_readdir(struct ucred *cred, struct vnode *vp);
608 int mac_vnode_check_readlink_impl(struct ucred *cred, struct vnode *dvp);
616 mac_vnode_check_readlink(struct ucred *cred, struct vnode *vp) in mac_vnode_check_readlink()
628 int mac_vnode_check_rename_from(struct ucred *cred, struct vnode *dvp,
629 struct vnode *vp, struct componentname *cnp);
630 int mac_vnode_check_rename_to(struct ucred *cred, struct vnode *dvp,
631 struct vnode *vp, int samedir, struct componentname *cnp);
632 int mac_vnode_check_revoke(struct ucred *cred, struct vnode *vp);
633 int mac_vnode_check_setacl(struct ucred *cred, struct vnode *vp,
634 acl_type_t type, struct acl *acl);
635 int mac_vnode_check_setextattr(struct ucred *cred, struct vnode *vp,
637 int mac_vnode_check_setflags(struct ucred *cred, struct vnode *vp,
639 int mac_vnode_check_setmode(struct ucred *cred, struct vnode *vp,
641 int mac_vnode_check_setowner(struct ucred *cred, struct vnode *vp,
643 int mac_vnode_check_setutimes(struct ucred *cred, struct vnode *vp,
644 struct timespec atime, struct timespec mtime);
646 int mac_vnode_check_stat_impl(struct ucred *active_cred,
647 struct ucred *file_cred, struct vnode *vp);
655 mac_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_stat()
656 struct vnode *vp) in mac_vnode_check_stat()
665 int mac_vnode_check_read_impl(struct ucred *active_cred,
666 struct ucred *file_cred, struct vnode *vp);
674 mac_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_read()
675 struct vnode *vp) in mac_vnode_check_read()
684 int mac_vnode_check_write_impl(struct ucred *active_cred,
685 struct ucred *file_cred, struct vnode *vp);
693 mac_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_write()
694 struct vnode *vp) in mac_vnode_check_write()
703 int mac_vnode_check_unlink(struct ucred *cred, struct vnode *dvp,
704 struct vnode *vp, struct componentname *cnp);
705 void mac_vnode_copy_label(struct label *, struct label *);
706 void mac_vnode_init(struct vnode *);
707 int mac_vnode_create_extattr(struct ucred *cred, struct mount *mp,
708 struct vnode *dvp, struct vnode *vp, struct componentname *cnp);
709 void mac_vnode_destroy(struct vnode *);
710 void mac_vnode_execve_transition(struct ucred *oldcred,
711 struct ucred *newcred, struct vnode *vp,
712 struct label *interpvplabel, struct image_params *imgp);
713 int mac_vnode_execve_will_transition(struct ucred *cred,
714 struct vnode *vp, struct label *interpvplabel,
715 struct image_params *imgp);
716 void mac_vnode_relabel(struct ucred *cred, struct vnode *vp,
717 struct label *newlabel);
723 int vop_stdsetlabel_ea(struct vop_setlabel_args *ap);