Lines Matching refs:label
133 #define LABEL_CHECK(label, magic) do { \ argument
134 if (label != NULL) { \
135 KASSERT(SLOT(label) == magic || SLOT(label) == 0, \
140 #define LABEL_DESTROY(label, magic) do { \ argument
141 if (SLOT(label) == magic || SLOT(label) == 0) { \
142 SLOT_SET(label, MAGIC_FREE); \
143 } else if (SLOT(label) == MAGIC_FREE) { \
150 #define LABEL_INIT(label, magic) do { \ argument
151 SLOT_SET(label, magic); \
154 #define LABEL_NOTFREE(label) do { \ argument
155 KASSERT(SLOT(label) != MAGIC_FREE, \
165 test_bpfdesc_check_receive(struct bpf_d *d, struct label *dlabel, in test_bpfdesc_check_receive()
166 struct ifnet *ifp, struct label *ifplabel) in test_bpfdesc_check_receive()
179 struct label *dlabel) in test_bpfdesc_create()
189 test_bpfdesc_create_mbuf(struct bpf_d *d, struct label *dlabel, in test_bpfdesc_create_mbuf()
190 struct mbuf *m, struct label *mlabel) in test_bpfdesc_create_mbuf()
200 test_bpfdesc_destroy_label(struct label *label) in test_bpfdesc_destroy_label() argument
203 LABEL_DESTROY(label, MAGIC_BPF); in test_bpfdesc_destroy_label()
209 test_bpfdesc_init_label(struct label *label) in test_bpfdesc_init_label() argument
212 LABEL_INIT(label, MAGIC_BPF); in test_bpfdesc_init_label()
218 test_cred_check_relabel(struct ucred *cred, struct label *newlabel) in test_cred_check_relabel()
378 test_cred_copy_label(struct label *src, struct label *dest) in test_cred_copy_label()
406 test_cred_destroy_label(struct label *label) in test_cred_destroy_label() argument
409 LABEL_DESTROY(label, MAGIC_CRED); in test_cred_destroy_label()
415 test_cred_externalize_label(struct label *label, char *element_name, in test_cred_externalize_label() argument
419 LABEL_CHECK(label, MAGIC_CRED); in test_cred_externalize_label()
427 test_cred_init_label(struct label *label) in test_cred_init_label() argument
430 LABEL_INIT(label, MAGIC_CRED); in test_cred_init_label()
436 test_cred_internalize_label(struct label *label, char *element_name, in test_cred_internalize_label() argument
440 LABEL_CHECK(label, MAGIC_CRED); in test_cred_internalize_label()
448 test_cred_relabel(struct ucred *cred, struct label *newlabel) in test_cred_relabel()
481 struct cdev *dev, struct devfs_dirent *de, struct label *delabel) in test_devfs_create_device()
493 int dirnamelen, struct devfs_dirent *de, struct label *delabel) in test_devfs_create_directory()
503 struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de, in test_devfs_create_symlink()
504 struct label *delabel) in test_devfs_create_symlink()
515 test_devfs_destroy_label(struct label *label) in test_devfs_destroy_label() argument
518 LABEL_DESTROY(label, MAGIC_DEVFS); in test_devfs_destroy_label()
524 test_devfs_init_label(struct label *label) in test_devfs_init_label() argument
527 LABEL_INIT(label, MAGIC_DEVFS); in test_devfs_init_label()
534 struct label *direntlabel, struct vnode *vp, struct label *vplabel) in test_devfs_update()
544 test_devfs_vnode_associate(struct mount *mp, struct label *mplabel, in test_devfs_vnode_associate()
545 struct devfs_dirent *de, struct label *delabel, struct vnode *vp, in test_devfs_vnode_associate()
546 struct label *vplabel) in test_devfs_vnode_associate()
558 struct label *ifplabel, struct label *newlabel) in test_ifnet_check_relabel()
571 test_ifnet_check_transmit(struct ifnet *ifp, struct label *ifplabel, in test_ifnet_check_transmit()
572 struct mbuf *m, struct label *mlabel) in test_ifnet_check_transmit()
584 test_ifnet_copy_label(struct label *src, struct label *dest) in test_ifnet_copy_label()
594 test_ifnet_create(struct ifnet *ifp, struct label *ifplabel) in test_ifnet_create()
603 test_ifnet_create_mbuf(struct ifnet *ifp, struct label *ifplabel, in test_ifnet_create_mbuf()
604 struct mbuf *m, struct label *mlabel) in test_ifnet_create_mbuf()
614 test_ifnet_destroy_label(struct label *label) in test_ifnet_destroy_label() argument
617 LABEL_DESTROY(label, MAGIC_IFNET); in test_ifnet_destroy_label()
623 test_ifnet_externalize_label(struct label *label, char *element_name, in test_ifnet_externalize_label() argument
627 LABEL_CHECK(label, MAGIC_IFNET); in test_ifnet_externalize_label()
635 test_ifnet_init_label(struct label *label) in test_ifnet_init_label() argument
638 LABEL_INIT(label, MAGIC_IFNET); in test_ifnet_init_label()
644 test_ifnet_internalize_label(struct label *label, char *element_name, in test_ifnet_internalize_label() argument
648 LABEL_CHECK(label, MAGIC_IFNET); in test_ifnet_internalize_label()
657 struct label *ifplabel, struct label *newlabel) in test_ifnet_relabel()
668 test_inpcb_check_deliver(struct inpcb *inp, struct label *inplabel, in test_inpcb_check_deliver()
669 struct mbuf *m, struct label *mlabel) in test_inpcb_check_deliver()
682 struct label *inplabel) in test_inpcb_check_visible()
694 test_inpcb_create(struct socket *so, struct label *solabel, in test_inpcb_create()
695 struct inpcb *inp, struct label *inplabel) in test_inpcb_create()
707 test_inpcb_create_mbuf(struct inpcb *inp, struct label *inplabel, in test_inpcb_create_mbuf()
708 struct mbuf *m, struct label *mlabel) in test_inpcb_create_mbuf()
718 test_inpcb_destroy_label(struct label *label) in test_inpcb_destroy_label() argument
721 LABEL_DESTROY(label, MAGIC_INPCB); in test_inpcb_destroy_label()
727 test_inpcb_init_label(struct label *label, int flag) in test_inpcb_init_label() argument
735 LABEL_INIT(label, MAGIC_INPCB); in test_inpcb_init_label()
742 test_inpcb_sosetlabel(struct socket *so, struct label *solabel, in test_inpcb_sosetlabel()
743 struct inpcb *inp, struct label *inplabel) in test_inpcb_sosetlabel()
755 test_ip6q_create(struct mbuf *fragment, struct label *fragmentlabel, in test_ip6q_create()
756 struct ip6q *q6, struct label *q6label) in test_ip6q_create()
766 test_ip6q_destroy_label(struct label *label) in test_ip6q_destroy_label() argument
769 LABEL_DESTROY(label, MAGIC_IP6Q); in test_ip6q_destroy_label()
775 test_ip6q_init_label(struct label *label, int flag) in test_ip6q_init_label() argument
783 LABEL_INIT(label, MAGIC_IP6Q); in test_ip6q_init_label()
790 test_ip6q_match(struct mbuf *fragment, struct label *fragmentlabel, in test_ip6q_match()
791 struct ip6q *q6, struct label *q6label) in test_ip6q_match()
803 test_ip6q_reassemble(struct ip6q *q6, struct label *q6label, struct mbuf *m, in test_ip6q_reassemble()
804 struct label *mlabel) in test_ip6q_reassemble()
814 test_ip6q_update(struct mbuf *m, struct label *mlabel, struct ip6q *q6, in test_ip6q_update()
815 struct label *q6label) in test_ip6q_update()
825 test_ipq_create(struct mbuf *fragment, struct label *fragmentlabel, in test_ipq_create()
826 struct ipq *q, struct label *qlabel) in test_ipq_create()
836 test_ipq_destroy_label(struct label *label) in test_ipq_destroy_label() argument
839 LABEL_DESTROY(label, MAGIC_IPQ); in test_ipq_destroy_label()
845 test_ipq_init_label(struct label *label, int flag) in test_ipq_init_label() argument
853 LABEL_INIT(label, MAGIC_IPQ); in test_ipq_init_label()
860 test_ipq_match(struct mbuf *fragment, struct label *fragmentlabel, in test_ipq_match()
861 struct ipq *q, struct label *qlabel) in test_ipq_match()
873 test_ipq_reassemble(struct ipq *q, struct label *qlabel, struct mbuf *m, in test_ipq_reassemble()
874 struct label *mlabel) in test_ipq_reassemble()
884 test_ipq_update(struct mbuf *m, struct label *mlabel, struct ipq *q, in test_ipq_update()
885 struct label *qlabel) in test_ipq_update()
950 struct label *label) in test_kld_check_load() argument
954 LABEL_CHECK(label, MAGIC_VNODE); in test_kld_check_load()
973 test_mbuf_copy_label(struct label *src, struct label *dest) in test_mbuf_copy_label()
983 test_mbuf_destroy_label(struct label *label) in test_mbuf_destroy_label() argument
991 if (label == NULL) in test_mbuf_destroy_label()
994 LABEL_DESTROY(label, MAGIC_MBUF); in test_mbuf_destroy_label()
1000 test_mbuf_init_label(struct label *label, int flag) in test_mbuf_init_label() argument
1008 LABEL_INIT(label, MAGIC_MBUF); in test_mbuf_init_label()
1016 struct label *mplabel) in test_mount_check_stat()
1029 struct label *mplabel) in test_mount_create()
1039 test_mount_destroy_label(struct label *label) in test_mount_destroy_label() argument
1042 LABEL_DESTROY(label, MAGIC_MOUNT); in test_mount_destroy_label()
1048 test_mount_init_label(struct label *label) in test_mount_init_label() argument
1051 LABEL_INIT(label, MAGIC_MOUNT); in test_mount_init_label()
1057 test_netinet_arp_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet_arp_send()
1058 struct mbuf *m, struct label *mlabel) in test_netinet_arp_send()
1068 test_netinet_fragment(struct mbuf *m, struct label *mlabel, in test_netinet_fragment()
1069 struct mbuf *frag, struct label *fraglabel) in test_netinet_fragment()
1079 test_netinet_icmp_reply(struct mbuf *mrecv, struct label *mrecvlabel, in test_netinet_icmp_reply()
1080 struct mbuf *msend, struct label *msendlabel) in test_netinet_icmp_reply()
1090 test_netinet_icmp_replyinplace(struct mbuf *m, struct label *mlabel) in test_netinet_icmp_replyinplace()
1099 test_netinet_igmp_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet_igmp_send()
1100 struct mbuf *m, struct label *mlabel) in test_netinet_igmp_send()
1110 test_netinet_tcp_reply(struct mbuf *m, struct label *mlabel) in test_netinet_tcp_reply()
1119 test_netinet6_nd6_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet6_nd6_send()
1120 struct mbuf *m, struct label *mlabel) in test_netinet6_nd6_send()
1131 struct label *pplabel, unsigned long cmd, void /* caddr_t */ *data) in test_pipe_check_ioctl()
1144 struct label *pplabel) in test_pipe_check_poll()
1157 struct label *pplabel) in test_pipe_check_read()
1170 struct label *pplabel, struct label *newlabel) in test_pipe_check_relabel()
1184 struct label *pplabel) in test_pipe_check_stat()
1197 struct label *pplabel) in test_pipe_check_write()
1209 test_pipe_copy_label(struct label *src, struct label *dest) in test_pipe_copy_label()
1220 struct label *pplabel) in test_pipe_create()
1230 test_pipe_destroy_label(struct label *label) in test_pipe_destroy_label() argument
1233 LABEL_DESTROY(label, MAGIC_PIPE); in test_pipe_destroy_label()
1239 test_pipe_externalize_label(struct label *label, char *element_name, in test_pipe_externalize_label() argument
1243 LABEL_CHECK(label, MAGIC_PIPE); in test_pipe_externalize_label()
1251 test_pipe_init_label(struct label *label) in test_pipe_init_label() argument
1254 LABEL_INIT(label, MAGIC_PIPE); in test_pipe_init_label()
1260 test_pipe_internalize_label(struct label *label, char *element_name, in test_pipe_internalize_label() argument
1264 LABEL_CHECK(label, MAGIC_PIPE); in test_pipe_internalize_label()
1273 struct label *pplabel, struct label *newlabel) in test_pipe_relabel()
1285 struct ksem *ks, struct label *kslabel) in test_posixsem_check_getvalue()
1299 struct label *kslabel) in test_posixsem_check_open()
1312 struct ksem *ks, struct label *kslabel) in test_posixsem_check_post()
1326 struct label *kslabel, mode_t mode) in test_posixsem_check_setmode()
1338 struct label *kslabel, uid_t uid, gid_t gid) in test_posixsem_check_setowner()
1350 struct ucred *file_cred, struct ksem *ks, struct label *kslabel) in test_posixsem_check_stat()
1363 struct label *kslabel) in test_posixsem_check_unlink()
1376 struct ksem *ks, struct label *kslabel) in test_posixsem_check_wait()
1390 struct label *kslabel) in test_posixsem_create()
1400 test_posixsem_destroy_label(struct label *label) in test_posixsem_destroy_label() argument
1403 LABEL_DESTROY(label, MAGIC_POSIX_SEM); in test_posixsem_destroy_label()
1409 test_posixsem_init_label(struct label *label) in test_posixsem_init_label() argument
1412 LABEL_INIT(label, MAGIC_POSIX_SEM); in test_posixsem_init_label()
1428 struct label *shmfdlabel, int prot, int flags) in test_posixshm_check_mmap()
1440 struct label *shmfdlabel, accmode_t accmode) in test_posixshm_check_open()
1452 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_read()
1467 struct label *shmfdlabel, mode_t mode) in test_posixshm_check_setmode()
1479 struct label *shmfdlabel, uid_t uid, gid_t gid) in test_posixshm_check_setowner()
1491 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) in test_posixshm_check_stat()
1504 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) in test_posixshm_check_truncate()
1517 struct label *shmfdlabel) in test_posixshm_check_unlink()
1529 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_write()
1544 struct label *shmfdlabel) in test_posixshm_create()
1554 test_posixshm_destroy_label(struct label *label) in test_posixshm_destroy_label() argument
1557 LABEL_DESTROY(label, MAGIC_POSIX_SHM); in test_posixshm_destroy_label()
1563 test_posixshm_init_label(struct label *label) in test_posixshm_init_label() argument
1566 LABEL_INIT(label, MAGIC_POSIX_SHM); in test_posixshm_init_label()
1620 test_proc_destroy_label(struct label *label) in test_proc_destroy_label() argument
1623 LABEL_DESTROY(label, MAGIC_PROC); in test_proc_destroy_label()
1629 test_proc_init_label(struct label *label) in test_proc_init_label() argument
1632 LABEL_INIT(label, MAGIC_PROC); in test_proc_init_label()
1639 struct label *solabel) in test_socket_check_accept()
1654 struct label *solabel, struct sockaddr *sa) in test_socket_check_bind()
1669 struct label *solabel, struct sockaddr *sa) in test_socket_check_connect()
1683 test_socket_check_deliver(struct socket *so, struct label *solabel, in test_socket_check_deliver()
1684 struct mbuf *m, struct label *mlabel) in test_socket_check_deliver()
1699 struct label *solabel) in test_socket_check_listen()
1714 struct label *solabel) in test_socket_check_poll()
1729 struct label *solabel) in test_socket_check_receive()
1744 struct label *solabel, struct label *newlabel) in test_socket_check_relabel()
1760 struct label *solabel) in test_socket_check_send()
1775 struct label *solabel) in test_socket_check_stat()
1790 struct label *solabel) in test_socket_check_visible()
1804 test_socket_copy_label(struct label *src, struct label *dest) in test_socket_copy_label()
1815 struct label *solabel) in test_socket_create()
1825 test_socket_create_mbuf(struct socket *so, struct label *solabel, in test_socket_create_mbuf()
1826 struct mbuf *m, struct label *mlabel) in test_socket_create_mbuf()
1838 test_socket_destroy_label(struct label *label) in test_socket_destroy_label() argument
1841 LABEL_DESTROY(label, MAGIC_SOCKET); in test_socket_destroy_label()
1847 test_socket_externalize_label(struct label *label, char *element_name, in test_socket_externalize_label() argument
1851 LABEL_CHECK(label, MAGIC_SOCKET); in test_socket_externalize_label()
1859 test_socket_init_label(struct label *label, int flag) in test_socket_init_label() argument
1867 LABEL_INIT(label, MAGIC_SOCKET); in test_socket_init_label()
1874 test_socket_internalize_label(struct label *label, char *element_name, in test_socket_internalize_label() argument
1878 LABEL_CHECK(label, MAGIC_SOCKET); in test_socket_internalize_label()
1886 test_socket_newconn(struct socket *oldso, struct label *oldsolabel, in test_socket_newconn()
1887 struct socket *newso, struct label *newsolabel) in test_socket_newconn()
1902 struct label *solabel, struct label *newlabel) in test_socket_relabel()
1915 test_socketpeer_destroy_label(struct label *label) in test_socketpeer_destroy_label() argument
1918 LABEL_DESTROY(label, MAGIC_SOCKET); in test_socketpeer_destroy_label()
1924 test_socketpeer_externalize_label(struct label *label, char *element_name, in test_socketpeer_externalize_label() argument
1928 LABEL_CHECK(label, MAGIC_SOCKET); in test_socketpeer_externalize_label()
1936 test_socketpeer_init_label(struct label *label, int flag) in test_socketpeer_init_label() argument
1944 LABEL_INIT(label, MAGIC_SOCKET); in test_socketpeer_init_label()
1951 test_socketpeer_set_from_mbuf(struct mbuf *m, struct label *mlabel, in test_socketpeer_set_from_mbuf()
1952 struct socket *so, struct label *sopeerlabel) in test_socketpeer_set_from_mbuf()
1965 struct label *oldsolabel, struct socket *newso, in test_socketpeer_set_from_socket()
1966 struct label *newsopeerlabel) in test_socketpeer_set_from_socket()
1980 test_syncache_create(struct label *label, struct inpcb *inp) in test_syncache_create() argument
1983 LABEL_CHECK(label, MAGIC_SYNCACHE); in test_syncache_create()
1989 test_syncache_create_mbuf(struct label *sc_label, struct mbuf *m, in test_syncache_create_mbuf()
1990 struct label *mlabel) in test_syncache_create_mbuf()
2000 test_syncache_destroy_label(struct label *label) in test_syncache_destroy_label() argument
2003 LABEL_DESTROY(label, MAGIC_SYNCACHE); in test_syncache_destroy_label()
2009 test_syncache_init_label(struct label *label, int flag) in test_syncache_init_label() argument
2016 LABEL_INIT(label, MAGIC_SYNCACHE); in test_syncache_init_label()
2024 struct label *vplabel) in test_system_check_acct()
2048 struct label *vplabel) in test_system_check_auditctl()
2083 struct label *vplabel) in test_system_check_swapoff()
2096 struct label *vplabel) in test_system_check_swapon()
2120 test_sysvmsg_cleanup(struct label *msglabel) in test_sysvmsg_cleanup()
2130 struct label *msqlabel, struct msg *msgptr, struct label *msglabel) in test_sysvmsg_create()
2140 test_sysvmsg_destroy_label(struct label *label) in test_sysvmsg_destroy_label() argument
2143 LABEL_DESTROY(label, MAGIC_SYSV_MSG); in test_sysvmsg_destroy_label()
2149 test_sysvmsg_init_label(struct label *label) in test_sysvmsg_init_label() argument
2151 LABEL_INIT(label, MAGIC_SYSV_MSG); in test_sysvmsg_init_label()
2158 struct label *msglabel, struct msqid_kernel *msqkptr, in test_sysvmsq_check_msgmsq()
2159 struct label *msqklabel) in test_sysvmsq_check_msgmsq()
2173 struct label *msglabel) in test_sysvmsq_check_msgrcv()
2186 struct label *msglabel) in test_sysvmsq_check_msgrmid()
2199 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqget()
2212 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqsnd()
2225 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqrcv()
2238 struct msqid_kernel *msqkptr, struct label *msqklabel, int cmd) in test_sysvmsq_check_msqctl()
2250 test_sysvmsq_cleanup(struct label *msqlabel) in test_sysvmsq_cleanup()
2260 struct msqid_kernel *msqkptr, struct label *msqlabel) in test_sysvmsq_create()
2269 test_sysvmsq_destroy_label(struct label *label) in test_sysvmsq_destroy_label() argument
2272 LABEL_DESTROY(label, MAGIC_SYSV_MSQ); in test_sysvmsq_destroy_label()
2278 test_sysvmsq_init_label(struct label *label) in test_sysvmsq_init_label() argument
2280 LABEL_INIT(label, MAGIC_SYSV_MSQ); in test_sysvmsq_init_label()
2287 struct semid_kernel *semakptr, struct label *semaklabel, int cmd) in test_sysvsem_check_semctl()
2300 struct semid_kernel *semakptr, struct label *semaklabel) in test_sysvsem_check_semget()
2313 struct semid_kernel *semakptr, struct label *semaklabel, size_t accesstype) in test_sysvsem_check_semop()
2325 test_sysvsem_cleanup(struct label *semalabel) in test_sysvsem_cleanup()
2335 struct label *semalabel) in test_sysvsem_create()
2344 test_sysvsem_destroy_label(struct label *label) in test_sysvsem_destroy_label() argument
2347 LABEL_DESTROY(label, MAGIC_SYSV_SEM); in test_sysvsem_destroy_label()
2353 test_sysvsem_init_label(struct label *label) in test_sysvsem_init_label() argument
2355 LABEL_INIT(label, MAGIC_SYSV_SEM); in test_sysvsem_init_label()
2362 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg) in test_sysvshm_check_shmat()
2375 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int cmd) in test_sysvshm_check_shmctl()
2388 struct shmid_kernel *shmsegptr, struct label *shmseglabel) in test_sysvshm_check_shmdt()
2401 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg) in test_sysvshm_check_shmget()
2413 test_sysvshm_cleanup(struct label *shmlabel) in test_sysvshm_cleanup()
2423 struct label *shmlabel) in test_sysvshm_create()
2432 test_sysvshm_destroy_label(struct label *label) in test_sysvshm_destroy_label() argument
2435 LABEL_DESTROY(label, MAGIC_SYSV_SHM); in test_sysvshm_destroy_label()
2441 test_sysvshm_init_label(struct label *label) in test_sysvshm_init_label() argument
2443 LABEL_INIT(label, MAGIC_SYSV_SHM); in test_sysvshm_init_label()
2457 test_vnode_associate_extattr(struct mount *mp, struct label *mplabel, in test_vnode_associate_extattr()
2458 struct vnode *vp, struct label *vplabel) in test_vnode_associate_extattr()
2470 test_vnode_associate_singlelabel(struct mount *mp, struct label *mplabel, in test_vnode_associate_singlelabel()
2471 struct vnode *vp, struct label *vplabel) in test_vnode_associate_singlelabel()
2482 struct label *vplabel, accmode_t accmode) in test_vnode_check_access()
2495 struct label *dvplabel) in test_vnode_check_chdir()
2508 struct label *dvplabel) in test_vnode_check_chroot()
2521 struct label *dvplabel, struct componentname *cnp, struct vattr *vap) in test_vnode_check_create()
2534 struct label *vplabel, acl_type_t type) in test_vnode_check_deleteacl()
2547 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_deleteextattr()
2560 struct label *vplabel, struct image_params *imgp, in test_vnode_check_exec()
2561 struct label *execlabel) in test_vnode_check_exec()
2575 struct label *vplabel, acl_type_t type) in test_vnode_check_getacl()
2588 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_getextattr()
2601 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_link()
2616 struct label *vplabel, int attrnamespace) in test_vnode_check_listextattr()
2629 struct label *dvplabel, struct componentname *cnp) in test_vnode_check_lookup()
2642 struct label *vplabel, int prot, int flags) in test_vnode_check_mmap()
2655 struct label *vplabel, accmode_t accmode) in test_vnode_check_open()
2668 struct vnode *vp, struct label *vplabel) in test_vnode_check_poll()
2683 struct vnode *vp, struct label *vplabel) in test_vnode_check_read()
2698 struct label *dvplabel) in test_vnode_check_readdir()
2711 struct label *vplabel) in test_vnode_check_readlink()
2724 struct label *vplabel, struct label *newlabel) in test_vnode_check_relabel()
2738 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_rename_from()
2753 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_rename_to()
2768 struct label *vplabel) in test_vnode_check_revoke()
2781 struct label *vplabel, acl_type_t type, struct acl *acl) in test_vnode_check_setacl()
2794 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_setextattr()
2807 struct label *vplabel, u_long flags) in test_vnode_check_setflags()
2820 struct label *vplabel, mode_t mode) in test_vnode_check_setmode()
2833 struct label *vplabel, uid_t uid, gid_t gid) in test_vnode_check_setowner()
2846 struct label *vplabel, struct timespec atime, struct timespec mtime) in test_vnode_check_setutimes()
2859 struct vnode *vp, struct label *vplabel) in test_vnode_check_stat()
2874 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_unlink()
2889 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in test_vnode_check_write()
2903 test_vnode_copy_label(struct label *src, struct label *dest) in test_vnode_copy_label()
2914 struct label *mplabel, struct vnode *dvp, struct label *dvplabel, in test_vnode_create_extattr()
2915 struct vnode *vp, struct label *vplabel, struct componentname *cnp) in test_vnode_create_extattr()
2928 test_vnode_destroy_label(struct label *label) in test_vnode_destroy_label() argument
2931 LABEL_DESTROY(label, MAGIC_VNODE); in test_vnode_destroy_label()
2938 struct vnode *vp, struct label *filelabel, in test_vnode_execve_transition()
2939 struct label *interpvplabel, struct image_params *imgp, in test_vnode_execve_transition()
2940 struct label *execlabel) in test_vnode_execve_transition()
2954 struct label *filelabel, struct label *interpvplabel, in test_vnode_execve_will_transition()
2955 struct image_params *imgp, struct label *execlabel) in test_vnode_execve_will_transition()
2969 test_vnode_externalize_label(struct label *label, char *element_name, in test_vnode_externalize_label() argument
2973 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_externalize_label()
2981 test_vnode_init_label(struct label *label) in test_vnode_init_label() argument
2984 LABEL_INIT(label, MAGIC_VNODE); in test_vnode_init_label()
2990 test_vnode_internalize_label(struct label *label, char *element_name, in test_vnode_internalize_label() argument
2994 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_internalize_label()
3003 struct label *vplabel, struct label *label) in test_vnode_relabel() argument
3008 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_relabel()
3015 struct label *vplabel, struct label *intlabel) in test_vnode_setlabel_extattr()