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()
459 struct cdev *dev, struct devfs_dirent *de, struct label *delabel) in test_devfs_create_device()
471 int dirnamelen, struct devfs_dirent *de, struct label *delabel) in test_devfs_create_directory()
481 struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de, in test_devfs_create_symlink()
482 struct label *delabel) in test_devfs_create_symlink()
493 test_devfs_destroy_label(struct label *label) in test_devfs_destroy_label() argument
496 LABEL_DESTROY(label, MAGIC_DEVFS); in test_devfs_destroy_label()
502 test_devfs_init_label(struct label *label) in test_devfs_init_label() argument
505 LABEL_INIT(label, MAGIC_DEVFS); in test_devfs_init_label()
512 struct label *direntlabel, struct vnode *vp, struct label *vplabel) in test_devfs_update()
522 test_devfs_vnode_associate(struct mount *mp, struct label *mplabel, in test_devfs_vnode_associate()
523 struct devfs_dirent *de, struct label *delabel, struct vnode *vp, in test_devfs_vnode_associate()
524 struct label *vplabel) in test_devfs_vnode_associate()
536 struct label *ifplabel, struct label *newlabel) in test_ifnet_check_relabel()
549 test_ifnet_check_transmit(struct ifnet *ifp, struct label *ifplabel, in test_ifnet_check_transmit()
550 struct mbuf *m, struct label *mlabel) in test_ifnet_check_transmit()
562 test_ifnet_copy_label(struct label *src, struct label *dest) in test_ifnet_copy_label()
572 test_ifnet_create(struct ifnet *ifp, struct label *ifplabel) in test_ifnet_create()
581 test_ifnet_create_mbuf(struct ifnet *ifp, struct label *ifplabel, in test_ifnet_create_mbuf()
582 struct mbuf *m, struct label *mlabel) in test_ifnet_create_mbuf()
592 test_ifnet_destroy_label(struct label *label) in test_ifnet_destroy_label() argument
595 LABEL_DESTROY(label, MAGIC_IFNET); in test_ifnet_destroy_label()
601 test_ifnet_externalize_label(struct label *label, char *element_name, in test_ifnet_externalize_label() argument
605 LABEL_CHECK(label, MAGIC_IFNET); in test_ifnet_externalize_label()
613 test_ifnet_init_label(struct label *label) in test_ifnet_init_label() argument
616 LABEL_INIT(label, MAGIC_IFNET); in test_ifnet_init_label()
622 test_ifnet_internalize_label(struct label *label, char *element_name, in test_ifnet_internalize_label() argument
626 LABEL_CHECK(label, MAGIC_IFNET); in test_ifnet_internalize_label()
635 struct label *ifplabel, struct label *newlabel) in test_ifnet_relabel()
646 test_inpcb_check_deliver(struct inpcb *inp, struct label *inplabel, in test_inpcb_check_deliver()
647 struct mbuf *m, struct label *mlabel) in test_inpcb_check_deliver()
660 struct label *inplabel) in test_inpcb_check_visible()
672 test_inpcb_create(struct socket *so, struct label *solabel, in test_inpcb_create()
673 struct inpcb *inp, struct label *inplabel) in test_inpcb_create()
685 test_inpcb_create_mbuf(struct inpcb *inp, struct label *inplabel, in test_inpcb_create_mbuf()
686 struct mbuf *m, struct label *mlabel) in test_inpcb_create_mbuf()
696 test_inpcb_destroy_label(struct label *label) in test_inpcb_destroy_label() argument
699 LABEL_DESTROY(label, MAGIC_INPCB); in test_inpcb_destroy_label()
705 test_inpcb_init_label(struct label *label, int flag) in test_inpcb_init_label() argument
713 LABEL_INIT(label, MAGIC_INPCB); in test_inpcb_init_label()
720 test_inpcb_sosetlabel(struct socket *so, struct label *solabel, in test_inpcb_sosetlabel()
721 struct inpcb *inp, struct label *inplabel) in test_inpcb_sosetlabel()
733 test_ip6q_create(struct mbuf *fragment, struct label *fragmentlabel, in test_ip6q_create()
734 struct ip6q *q6, struct label *q6label) in test_ip6q_create()
744 test_ip6q_destroy_label(struct label *label) in test_ip6q_destroy_label() argument
747 LABEL_DESTROY(label, MAGIC_IP6Q); in test_ip6q_destroy_label()
753 test_ip6q_init_label(struct label *label, int flag) in test_ip6q_init_label() argument
761 LABEL_INIT(label, MAGIC_IP6Q); in test_ip6q_init_label()
768 test_ip6q_match(struct mbuf *fragment, struct label *fragmentlabel, in test_ip6q_match()
769 struct ip6q *q6, struct label *q6label) in test_ip6q_match()
781 test_ip6q_reassemble(struct ip6q *q6, struct label *q6label, struct mbuf *m, in test_ip6q_reassemble()
782 struct label *mlabel) in test_ip6q_reassemble()
792 test_ip6q_update(struct mbuf *m, struct label *mlabel, struct ip6q *q6, in test_ip6q_update()
793 struct label *q6label) in test_ip6q_update()
803 test_ipq_create(struct mbuf *fragment, struct label *fragmentlabel, in test_ipq_create()
804 struct ipq *q, struct label *qlabel) in test_ipq_create()
814 test_ipq_destroy_label(struct label *label) in test_ipq_destroy_label() argument
817 LABEL_DESTROY(label, MAGIC_IPQ); in test_ipq_destroy_label()
823 test_ipq_init_label(struct label *label, int flag) in test_ipq_init_label() argument
831 LABEL_INIT(label, MAGIC_IPQ); in test_ipq_init_label()
838 test_ipq_match(struct mbuf *fragment, struct label *fragmentlabel, in test_ipq_match()
839 struct ipq *q, struct label *qlabel) in test_ipq_match()
851 test_ipq_reassemble(struct ipq *q, struct label *qlabel, struct mbuf *m, in test_ipq_reassemble()
852 struct label *mlabel) in test_ipq_reassemble()
862 test_ipq_update(struct mbuf *m, struct label *mlabel, struct ipq *q, in test_ipq_update()
863 struct label *qlabel) in test_ipq_update()
918 struct label *label) in test_kld_check_load() argument
922 LABEL_CHECK(label, MAGIC_VNODE); in test_kld_check_load()
941 test_mbuf_copy_label(struct label *src, struct label *dest) in test_mbuf_copy_label()
951 test_mbuf_destroy_label(struct label *label) in test_mbuf_destroy_label() argument
959 if (label == NULL) in test_mbuf_destroy_label()
962 LABEL_DESTROY(label, MAGIC_MBUF); in test_mbuf_destroy_label()
968 test_mbuf_init_label(struct label *label, int flag) in test_mbuf_init_label() argument
976 LABEL_INIT(label, MAGIC_MBUF); in test_mbuf_init_label()
984 struct label *mplabel) in test_mount_check_stat()
997 struct label *mplabel) in test_mount_create()
1007 test_mount_destroy_label(struct label *label) in test_mount_destroy_label() argument
1010 LABEL_DESTROY(label, MAGIC_MOUNT); in test_mount_destroy_label()
1016 test_mount_init_label(struct label *label) in test_mount_init_label() argument
1019 LABEL_INIT(label, MAGIC_MOUNT); in test_mount_init_label()
1025 test_netinet_arp_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet_arp_send()
1026 struct mbuf *m, struct label *mlabel) in test_netinet_arp_send()
1036 test_netinet_fragment(struct mbuf *m, struct label *mlabel, in test_netinet_fragment()
1037 struct mbuf *frag, struct label *fraglabel) in test_netinet_fragment()
1047 test_netinet_icmp_reply(struct mbuf *mrecv, struct label *mrecvlabel, in test_netinet_icmp_reply()
1048 struct mbuf *msend, struct label *msendlabel) in test_netinet_icmp_reply()
1058 test_netinet_icmp_replyinplace(struct mbuf *m, struct label *mlabel) in test_netinet_icmp_replyinplace()
1067 test_netinet_igmp_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet_igmp_send()
1068 struct mbuf *m, struct label *mlabel) in test_netinet_igmp_send()
1078 test_netinet_tcp_reply(struct mbuf *m, struct label *mlabel) in test_netinet_tcp_reply()
1087 test_netinet6_nd6_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet6_nd6_send()
1088 struct mbuf *m, struct label *mlabel) in test_netinet6_nd6_send()
1099 struct label *pplabel, unsigned long cmd, void /* caddr_t */ *data) in test_pipe_check_ioctl()
1112 struct label *pplabel) in test_pipe_check_poll()
1125 struct label *pplabel) in test_pipe_check_read()
1138 struct label *pplabel, struct label *newlabel) in test_pipe_check_relabel()
1152 struct label *pplabel) in test_pipe_check_stat()
1165 struct label *pplabel) in test_pipe_check_write()
1177 test_pipe_copy_label(struct label *src, struct label *dest) in test_pipe_copy_label()
1188 struct label *pplabel) in test_pipe_create()
1198 test_pipe_destroy_label(struct label *label) in test_pipe_destroy_label() argument
1201 LABEL_DESTROY(label, MAGIC_PIPE); in test_pipe_destroy_label()
1207 test_pipe_externalize_label(struct label *label, char *element_name, in test_pipe_externalize_label() argument
1211 LABEL_CHECK(label, MAGIC_PIPE); in test_pipe_externalize_label()
1219 test_pipe_init_label(struct label *label) in test_pipe_init_label() argument
1222 LABEL_INIT(label, MAGIC_PIPE); in test_pipe_init_label()
1228 test_pipe_internalize_label(struct label *label, char *element_name, in test_pipe_internalize_label() argument
1232 LABEL_CHECK(label, MAGIC_PIPE); in test_pipe_internalize_label()
1241 struct label *pplabel, struct label *newlabel) in test_pipe_relabel()
1253 struct ksem *ks, struct label *kslabel) in test_posixsem_check_getvalue()
1267 struct label *kslabel) in test_posixsem_check_open()
1280 struct ksem *ks, struct label *kslabel) in test_posixsem_check_post()
1294 struct label *kslabel, mode_t mode) in test_posixsem_check_setmode()
1306 struct label *kslabel, uid_t uid, gid_t gid) in test_posixsem_check_setowner()
1318 struct ucred *file_cred, struct ksem *ks, struct label *kslabel) in test_posixsem_check_stat()
1331 struct label *kslabel) in test_posixsem_check_unlink()
1344 struct ksem *ks, struct label *kslabel) in test_posixsem_check_wait()
1358 struct label *kslabel) in test_posixsem_create()
1368 test_posixsem_destroy_label(struct label *label) in test_posixsem_destroy_label() argument
1371 LABEL_DESTROY(label, MAGIC_POSIX_SEM); in test_posixsem_destroy_label()
1377 test_posixsem_init_label(struct label *label) in test_posixsem_init_label() argument
1380 LABEL_INIT(label, MAGIC_POSIX_SEM); in test_posixsem_init_label()
1396 struct label *shmfdlabel, int prot, int flags) in test_posixshm_check_mmap()
1408 struct label *shmfdlabel, accmode_t accmode) in test_posixshm_check_open()
1420 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_read()
1435 struct label *shmfdlabel, mode_t mode) in test_posixshm_check_setmode()
1447 struct label *shmfdlabel, uid_t uid, gid_t gid) in test_posixshm_check_setowner()
1459 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) in test_posixshm_check_stat()
1472 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) in test_posixshm_check_truncate()
1485 struct label *shmfdlabel) in test_posixshm_check_unlink()
1497 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_write()
1512 struct label *shmfdlabel) in test_posixshm_create()
1522 test_posixshm_destroy_label(struct label *label) in test_posixshm_destroy_label() argument
1525 LABEL_DESTROY(label, MAGIC_POSIX_SHM); in test_posixshm_destroy_label()
1531 test_posixshm_init_label(struct label *label) in test_posixshm_init_label() argument
1534 LABEL_INIT(label, MAGIC_POSIX_SHM); in test_posixshm_init_label()
1588 test_proc_destroy_label(struct label *label) in test_proc_destroy_label() argument
1591 LABEL_DESTROY(label, MAGIC_PROC); in test_proc_destroy_label()
1597 test_proc_init_label(struct label *label) in test_proc_init_label() argument
1600 LABEL_INIT(label, MAGIC_PROC); in test_proc_init_label()
1607 struct label *solabel) in test_socket_check_accept()
1622 struct label *solabel, struct sockaddr *sa) in test_socket_check_bind()
1637 struct label *solabel, struct sockaddr *sa) in test_socket_check_connect()
1651 test_socket_check_deliver(struct socket *so, struct label *solabel, in test_socket_check_deliver()
1652 struct mbuf *m, struct label *mlabel) in test_socket_check_deliver()
1667 struct label *solabel) in test_socket_check_listen()
1682 struct label *solabel) in test_socket_check_poll()
1697 struct label *solabel) in test_socket_check_receive()
1712 struct label *solabel, struct label *newlabel) in test_socket_check_relabel()
1728 struct label *solabel) in test_socket_check_send()
1743 struct label *solabel) in test_socket_check_stat()
1758 struct label *solabel) in test_socket_check_visible()
1772 test_socket_copy_label(struct label *src, struct label *dest) in test_socket_copy_label()
1783 struct label *solabel) in test_socket_create()
1793 test_socket_create_mbuf(struct socket *so, struct label *solabel, in test_socket_create_mbuf()
1794 struct mbuf *m, struct label *mlabel) in test_socket_create_mbuf()
1806 test_socket_destroy_label(struct label *label) in test_socket_destroy_label() argument
1809 LABEL_DESTROY(label, MAGIC_SOCKET); in test_socket_destroy_label()
1815 test_socket_externalize_label(struct label *label, char *element_name, in test_socket_externalize_label() argument
1819 LABEL_CHECK(label, MAGIC_SOCKET); in test_socket_externalize_label()
1827 test_socket_init_label(struct label *label, int flag) in test_socket_init_label() argument
1835 LABEL_INIT(label, MAGIC_SOCKET); in test_socket_init_label()
1842 test_socket_internalize_label(struct label *label, char *element_name, in test_socket_internalize_label() argument
1846 LABEL_CHECK(label, MAGIC_SOCKET); in test_socket_internalize_label()
1854 test_socket_newconn(struct socket *oldso, struct label *oldsolabel, in test_socket_newconn()
1855 struct socket *newso, struct label *newsolabel) in test_socket_newconn()
1870 struct label *solabel, struct label *newlabel) in test_socket_relabel()
1883 test_socketpeer_destroy_label(struct label *label) in test_socketpeer_destroy_label() argument
1886 LABEL_DESTROY(label, MAGIC_SOCKET); in test_socketpeer_destroy_label()
1892 test_socketpeer_externalize_label(struct label *label, char *element_name, in test_socketpeer_externalize_label() argument
1896 LABEL_CHECK(label, MAGIC_SOCKET); in test_socketpeer_externalize_label()
1904 test_socketpeer_init_label(struct label *label, int flag) in test_socketpeer_init_label() argument
1912 LABEL_INIT(label, MAGIC_SOCKET); in test_socketpeer_init_label()
1919 test_socketpeer_set_from_mbuf(struct mbuf *m, struct label *mlabel, in test_socketpeer_set_from_mbuf()
1920 struct socket *so, struct label *sopeerlabel) in test_socketpeer_set_from_mbuf()
1933 struct label *oldsolabel, struct socket *newso, in test_socketpeer_set_from_socket()
1934 struct label *newsopeerlabel) in test_socketpeer_set_from_socket()
1948 test_syncache_create(struct label *label, struct inpcb *inp) in test_syncache_create() argument
1951 LABEL_CHECK(label, MAGIC_SYNCACHE); in test_syncache_create()
1957 test_syncache_create_mbuf(struct label *sc_label, struct mbuf *m, in test_syncache_create_mbuf()
1958 struct label *mlabel) in test_syncache_create_mbuf()
1968 test_syncache_destroy_label(struct label *label) in test_syncache_destroy_label() argument
1971 LABEL_DESTROY(label, MAGIC_SYNCACHE); in test_syncache_destroy_label()
1977 test_syncache_init_label(struct label *label, int flag) in test_syncache_init_label() argument
1984 LABEL_INIT(label, MAGIC_SYNCACHE); in test_syncache_init_label()
1992 struct label *vplabel) in test_system_check_acct()
2016 struct label *vplabel) in test_system_check_auditctl()
2051 struct label *vplabel) in test_system_check_swapoff()
2064 struct label *vplabel) in test_system_check_swapon()
2088 test_sysvmsg_cleanup(struct label *msglabel) in test_sysvmsg_cleanup()
2098 struct label *msqlabel, struct msg *msgptr, struct label *msglabel) in test_sysvmsg_create()
2108 test_sysvmsg_destroy_label(struct label *label) in test_sysvmsg_destroy_label() argument
2111 LABEL_DESTROY(label, MAGIC_SYSV_MSG); in test_sysvmsg_destroy_label()
2117 test_sysvmsg_init_label(struct label *label) in test_sysvmsg_init_label() argument
2119 LABEL_INIT(label, MAGIC_SYSV_MSG); in test_sysvmsg_init_label()
2126 struct label *msglabel, struct msqid_kernel *msqkptr, in test_sysvmsq_check_msgmsq()
2127 struct label *msqklabel) in test_sysvmsq_check_msgmsq()
2141 struct label *msglabel) in test_sysvmsq_check_msgrcv()
2154 struct label *msglabel) in test_sysvmsq_check_msgrmid()
2167 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqget()
2180 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqsnd()
2193 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqrcv()
2206 struct msqid_kernel *msqkptr, struct label *msqklabel, int cmd) in test_sysvmsq_check_msqctl()
2218 test_sysvmsq_cleanup(struct label *msqlabel) in test_sysvmsq_cleanup()
2228 struct msqid_kernel *msqkptr, struct label *msqlabel) in test_sysvmsq_create()
2237 test_sysvmsq_destroy_label(struct label *label) in test_sysvmsq_destroy_label() argument
2240 LABEL_DESTROY(label, MAGIC_SYSV_MSQ); in test_sysvmsq_destroy_label()
2246 test_sysvmsq_init_label(struct label *label) in test_sysvmsq_init_label() argument
2248 LABEL_INIT(label, MAGIC_SYSV_MSQ); in test_sysvmsq_init_label()
2255 struct semid_kernel *semakptr, struct label *semaklabel, int cmd) in test_sysvsem_check_semctl()
2268 struct semid_kernel *semakptr, struct label *semaklabel) in test_sysvsem_check_semget()
2281 struct semid_kernel *semakptr, struct label *semaklabel, size_t accesstype) in test_sysvsem_check_semop()
2293 test_sysvsem_cleanup(struct label *semalabel) in test_sysvsem_cleanup()
2303 struct label *semalabel) in test_sysvsem_create()
2312 test_sysvsem_destroy_label(struct label *label) in test_sysvsem_destroy_label() argument
2315 LABEL_DESTROY(label, MAGIC_SYSV_SEM); in test_sysvsem_destroy_label()
2321 test_sysvsem_init_label(struct label *label) in test_sysvsem_init_label() argument
2323 LABEL_INIT(label, MAGIC_SYSV_SEM); in test_sysvsem_init_label()
2330 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg) in test_sysvshm_check_shmat()
2343 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int cmd) in test_sysvshm_check_shmctl()
2356 struct shmid_kernel *shmsegptr, struct label *shmseglabel) in test_sysvshm_check_shmdt()
2369 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg) in test_sysvshm_check_shmget()
2381 test_sysvshm_cleanup(struct label *shmlabel) in test_sysvshm_cleanup()
2391 struct label *shmlabel) in test_sysvshm_create()
2400 test_sysvshm_destroy_label(struct label *label) in test_sysvshm_destroy_label() argument
2403 LABEL_DESTROY(label, MAGIC_SYSV_SHM); in test_sysvshm_destroy_label()
2409 test_sysvshm_init_label(struct label *label) in test_sysvshm_init_label() argument
2411 LABEL_INIT(label, MAGIC_SYSV_SHM); in test_sysvshm_init_label()
2425 test_vnode_associate_extattr(struct mount *mp, struct label *mplabel, in test_vnode_associate_extattr()
2426 struct vnode *vp, struct label *vplabel) in test_vnode_associate_extattr()
2438 test_vnode_associate_singlelabel(struct mount *mp, struct label *mplabel, in test_vnode_associate_singlelabel()
2439 struct vnode *vp, struct label *vplabel) in test_vnode_associate_singlelabel()
2450 struct label *vplabel, accmode_t accmode) in test_vnode_check_access()
2463 struct label *dvplabel) in test_vnode_check_chdir()
2476 struct label *dvplabel) in test_vnode_check_chroot()
2489 struct label *dvplabel, struct componentname *cnp, struct vattr *vap) in test_vnode_check_create()
2502 struct label *vplabel, acl_type_t type) in test_vnode_check_deleteacl()
2515 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_deleteextattr()
2528 struct label *vplabel, struct image_params *imgp, in test_vnode_check_exec()
2529 struct label *execlabel) in test_vnode_check_exec()
2543 struct label *vplabel, acl_type_t type) in test_vnode_check_getacl()
2556 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_getextattr()
2569 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_link()
2584 struct label *vplabel, int attrnamespace) in test_vnode_check_listextattr()
2597 struct label *dvplabel, struct componentname *cnp) in test_vnode_check_lookup()
2610 struct label *vplabel, int prot, int flags) in test_vnode_check_mmap()
2623 struct label *vplabel, accmode_t accmode) in test_vnode_check_open()
2636 struct vnode *vp, struct label *vplabel) in test_vnode_check_poll()
2651 struct vnode *vp, struct label *vplabel) in test_vnode_check_read()
2666 struct label *dvplabel) in test_vnode_check_readdir()
2679 struct label *vplabel) in test_vnode_check_readlink()
2692 struct label *vplabel, struct label *newlabel) in test_vnode_check_relabel()
2706 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_rename_from()
2721 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_rename_to()
2736 struct label *vplabel) in test_vnode_check_revoke()
2749 struct label *vplabel, acl_type_t type, struct acl *acl) in test_vnode_check_setacl()
2762 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_setextattr()
2775 struct label *vplabel, u_long flags) in test_vnode_check_setflags()
2788 struct label *vplabel, mode_t mode) in test_vnode_check_setmode()
2801 struct label *vplabel, uid_t uid, gid_t gid) in test_vnode_check_setowner()
2814 struct label *vplabel, struct timespec atime, struct timespec mtime) in test_vnode_check_setutimes()
2827 struct vnode *vp, struct label *vplabel) in test_vnode_check_stat()
2842 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_unlink()
2857 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in test_vnode_check_write()
2871 test_vnode_copy_label(struct label *src, struct label *dest) in test_vnode_copy_label()
2882 struct label *mplabel, struct vnode *dvp, struct label *dvplabel, in test_vnode_create_extattr()
2883 struct vnode *vp, struct label *vplabel, struct componentname *cnp) in test_vnode_create_extattr()
2896 test_vnode_destroy_label(struct label *label) in test_vnode_destroy_label() argument
2899 LABEL_DESTROY(label, MAGIC_VNODE); in test_vnode_destroy_label()
2906 struct vnode *vp, struct label *filelabel, in test_vnode_execve_transition()
2907 struct label *interpvplabel, struct image_params *imgp, in test_vnode_execve_transition()
2908 struct label *execlabel) in test_vnode_execve_transition()
2922 struct label *filelabel, struct label *interpvplabel, in test_vnode_execve_will_transition()
2923 struct image_params *imgp, struct label *execlabel) in test_vnode_execve_will_transition()
2937 test_vnode_externalize_label(struct label *label, char *element_name, in test_vnode_externalize_label() argument
2941 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_externalize_label()
2949 test_vnode_init_label(struct label *label) in test_vnode_init_label() argument
2952 LABEL_INIT(label, MAGIC_VNODE); in test_vnode_init_label()
2958 test_vnode_internalize_label(struct label *label, char *element_name, in test_vnode_internalize_label() argument
2962 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_internalize_label()
2971 struct label *vplabel, struct label *label) in test_vnode_relabel() argument
2976 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_relabel()
2983 struct label *vplabel, struct label *intlabel) in test_vnode_setlabel_extattr()