Lines Matching refs:label
131 #define LABEL_CHECK(label, magic) do { \ argument
132 if (label != NULL) { \
133 KASSERT(SLOT(label) == magic || SLOT(label) == 0, \
138 #define LABEL_DESTROY(label, magic) do { \ argument
139 if (SLOT(label) == magic || SLOT(label) == 0) { \
140 SLOT_SET(label, MAGIC_FREE); \
141 } else if (SLOT(label) == MAGIC_FREE) { \
148 #define LABEL_INIT(label, magic) do { \ argument
149 SLOT_SET(label, magic); \
152 #define LABEL_NOTFREE(label) do { \ argument
153 KASSERT(SLOT(label) != MAGIC_FREE, \
163 test_bpfdesc_check_receive(struct bpf_d *d, struct label *dlabel, in test_bpfdesc_check_receive()
164 struct ifnet *ifp, struct label *ifplabel) in test_bpfdesc_check_receive()
177 struct label *dlabel) in test_bpfdesc_create()
187 test_bpfdesc_create_mbuf(struct bpf_d *d, struct label *dlabel, in test_bpfdesc_create_mbuf()
188 struct mbuf *m, struct label *mlabel) in test_bpfdesc_create_mbuf()
198 test_bpfdesc_destroy_label(struct label *label) in test_bpfdesc_destroy_label() argument
201 LABEL_DESTROY(label, MAGIC_BPF); in test_bpfdesc_destroy_label()
207 test_bpfdesc_init_label(struct label *label) in test_bpfdesc_init_label() argument
210 LABEL_INIT(label, MAGIC_BPF); in test_bpfdesc_init_label()
216 test_cred_check_relabel(struct ucred *cred, struct label *newlabel) in test_cred_check_relabel()
376 test_cred_copy_label(struct label *src, struct label *dest) in test_cred_copy_label()
404 test_cred_destroy_label(struct label *label) in test_cred_destroy_label() argument
407 LABEL_DESTROY(label, MAGIC_CRED); in test_cred_destroy_label()
413 test_cred_externalize_label(struct label *label, char *element_name, in test_cred_externalize_label() argument
417 LABEL_CHECK(label, MAGIC_CRED); in test_cred_externalize_label()
425 test_cred_init_label(struct label *label) in test_cred_init_label() argument
428 LABEL_INIT(label, MAGIC_CRED); in test_cred_init_label()
434 test_cred_internalize_label(struct label *label, char *element_name, in test_cred_internalize_label() argument
438 LABEL_CHECK(label, MAGIC_CRED); in test_cred_internalize_label()
446 test_cred_relabel(struct ucred *cred, struct label *newlabel) in test_cred_relabel()
457 struct cdev *dev, struct devfs_dirent *de, struct label *delabel) in test_devfs_create_device()
469 int dirnamelen, struct devfs_dirent *de, struct label *delabel) in test_devfs_create_directory()
479 struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de, in test_devfs_create_symlink()
480 struct label *delabel) in test_devfs_create_symlink()
491 test_devfs_destroy_label(struct label *label) in test_devfs_destroy_label() argument
494 LABEL_DESTROY(label, MAGIC_DEVFS); in test_devfs_destroy_label()
500 test_devfs_init_label(struct label *label) in test_devfs_init_label() argument
503 LABEL_INIT(label, MAGIC_DEVFS); in test_devfs_init_label()
510 struct label *direntlabel, struct vnode *vp, struct label *vplabel) in test_devfs_update()
520 test_devfs_vnode_associate(struct mount *mp, struct label *mplabel, in test_devfs_vnode_associate()
521 struct devfs_dirent *de, struct label *delabel, struct vnode *vp, in test_devfs_vnode_associate()
522 struct label *vplabel) in test_devfs_vnode_associate()
534 struct label *ifplabel, struct label *newlabel) in test_ifnet_check_relabel()
547 test_ifnet_check_transmit(struct ifnet *ifp, struct label *ifplabel, in test_ifnet_check_transmit()
548 struct mbuf *m, struct label *mlabel) in test_ifnet_check_transmit()
560 test_ifnet_copy_label(struct label *src, struct label *dest) in test_ifnet_copy_label()
570 test_ifnet_create(struct ifnet *ifp, struct label *ifplabel) in test_ifnet_create()
579 test_ifnet_create_mbuf(struct ifnet *ifp, struct label *ifplabel, in test_ifnet_create_mbuf()
580 struct mbuf *m, struct label *mlabel) in test_ifnet_create_mbuf()
590 test_ifnet_destroy_label(struct label *label) in test_ifnet_destroy_label() argument
593 LABEL_DESTROY(label, MAGIC_IFNET); in test_ifnet_destroy_label()
599 test_ifnet_externalize_label(struct label *label, char *element_name, in test_ifnet_externalize_label() argument
603 LABEL_CHECK(label, MAGIC_IFNET); in test_ifnet_externalize_label()
611 test_ifnet_init_label(struct label *label) in test_ifnet_init_label() argument
614 LABEL_INIT(label, MAGIC_IFNET); in test_ifnet_init_label()
620 test_ifnet_internalize_label(struct label *label, char *element_name, in test_ifnet_internalize_label() argument
624 LABEL_CHECK(label, MAGIC_IFNET); in test_ifnet_internalize_label()
633 struct label *ifplabel, struct label *newlabel) in test_ifnet_relabel()
644 test_inpcb_check_deliver(struct inpcb *inp, struct label *inplabel, in test_inpcb_check_deliver()
645 struct mbuf *m, struct label *mlabel) in test_inpcb_check_deliver()
658 struct label *inplabel) in test_inpcb_check_visible()
670 test_inpcb_create(struct socket *so, struct label *solabel, in test_inpcb_create()
671 struct inpcb *inp, struct label *inplabel) in test_inpcb_create()
683 test_inpcb_create_mbuf(struct inpcb *inp, struct label *inplabel, in test_inpcb_create_mbuf()
684 struct mbuf *m, struct label *mlabel) in test_inpcb_create_mbuf()
694 test_inpcb_destroy_label(struct label *label) in test_inpcb_destroy_label() argument
697 LABEL_DESTROY(label, MAGIC_INPCB); in test_inpcb_destroy_label()
703 test_inpcb_init_label(struct label *label, int flag) in test_inpcb_init_label() argument
711 LABEL_INIT(label, MAGIC_INPCB); in test_inpcb_init_label()
718 test_inpcb_sosetlabel(struct socket *so, struct label *solabel, in test_inpcb_sosetlabel()
719 struct inpcb *inp, struct label *inplabel) in test_inpcb_sosetlabel()
731 test_ip6q_create(struct mbuf *fragment, struct label *fragmentlabel, in test_ip6q_create()
732 struct ip6q *q6, struct label *q6label) in test_ip6q_create()
742 test_ip6q_destroy_label(struct label *label) in test_ip6q_destroy_label() argument
745 LABEL_DESTROY(label, MAGIC_IP6Q); in test_ip6q_destroy_label()
751 test_ip6q_init_label(struct label *label, int flag) in test_ip6q_init_label() argument
759 LABEL_INIT(label, MAGIC_IP6Q); in test_ip6q_init_label()
766 test_ip6q_match(struct mbuf *fragment, struct label *fragmentlabel, in test_ip6q_match()
767 struct ip6q *q6, struct label *q6label) in test_ip6q_match()
779 test_ip6q_reassemble(struct ip6q *q6, struct label *q6label, struct mbuf *m, in test_ip6q_reassemble()
780 struct label *mlabel) in test_ip6q_reassemble()
790 test_ip6q_update(struct mbuf *m, struct label *mlabel, struct ip6q *q6, in test_ip6q_update()
791 struct label *q6label) in test_ip6q_update()
801 test_ipq_create(struct mbuf *fragment, struct label *fragmentlabel, in test_ipq_create()
802 struct ipq *q, struct label *qlabel) in test_ipq_create()
812 test_ipq_destroy_label(struct label *label) in test_ipq_destroy_label() argument
815 LABEL_DESTROY(label, MAGIC_IPQ); in test_ipq_destroy_label()
821 test_ipq_init_label(struct label *label, int flag) in test_ipq_init_label() argument
829 LABEL_INIT(label, MAGIC_IPQ); in test_ipq_init_label()
836 test_ipq_match(struct mbuf *fragment, struct label *fragmentlabel, in test_ipq_match()
837 struct ipq *q, struct label *qlabel) in test_ipq_match()
849 test_ipq_reassemble(struct ipq *q, struct label *qlabel, struct mbuf *m, in test_ipq_reassemble()
850 struct label *mlabel) in test_ipq_reassemble()
860 test_ipq_update(struct mbuf *m, struct label *mlabel, struct ipq *q, in test_ipq_update()
861 struct label *qlabel) in test_ipq_update()
916 struct label *label) in test_kld_check_load() argument
920 LABEL_CHECK(label, MAGIC_VNODE); in test_kld_check_load()
939 test_mbuf_copy_label(struct label *src, struct label *dest) in test_mbuf_copy_label()
949 test_mbuf_destroy_label(struct label *label) in test_mbuf_destroy_label() argument
957 if (label == NULL) in test_mbuf_destroy_label()
960 LABEL_DESTROY(label, MAGIC_MBUF); in test_mbuf_destroy_label()
966 test_mbuf_init_label(struct label *label, int flag) in test_mbuf_init_label() argument
974 LABEL_INIT(label, MAGIC_MBUF); in test_mbuf_init_label()
982 struct label *mplabel) in test_mount_check_stat()
995 struct label *mplabel) in test_mount_create()
1005 test_mount_destroy_label(struct label *label) in test_mount_destroy_label() argument
1008 LABEL_DESTROY(label, MAGIC_MOUNT); in test_mount_destroy_label()
1014 test_mount_init_label(struct label *label) in test_mount_init_label() argument
1017 LABEL_INIT(label, MAGIC_MOUNT); in test_mount_init_label()
1023 test_netinet_arp_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet_arp_send()
1024 struct mbuf *m, struct label *mlabel) in test_netinet_arp_send()
1034 test_netinet_fragment(struct mbuf *m, struct label *mlabel, in test_netinet_fragment()
1035 struct mbuf *frag, struct label *fraglabel) in test_netinet_fragment()
1045 test_netinet_icmp_reply(struct mbuf *mrecv, struct label *mrecvlabel, in test_netinet_icmp_reply()
1046 struct mbuf *msend, struct label *msendlabel) in test_netinet_icmp_reply()
1056 test_netinet_icmp_replyinplace(struct mbuf *m, struct label *mlabel) in test_netinet_icmp_replyinplace()
1065 test_netinet_igmp_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet_igmp_send()
1066 struct mbuf *m, struct label *mlabel) in test_netinet_igmp_send()
1076 test_netinet_tcp_reply(struct mbuf *m, struct label *mlabel) in test_netinet_tcp_reply()
1085 test_netinet6_nd6_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet6_nd6_send()
1086 struct mbuf *m, struct label *mlabel) in test_netinet6_nd6_send()
1097 struct label *pplabel, unsigned long cmd, void /* caddr_t */ *data) in test_pipe_check_ioctl()
1110 struct label *pplabel) in test_pipe_check_poll()
1123 struct label *pplabel) in test_pipe_check_read()
1136 struct label *pplabel, struct label *newlabel) in test_pipe_check_relabel()
1150 struct label *pplabel) in test_pipe_check_stat()
1163 struct label *pplabel) in test_pipe_check_write()
1175 test_pipe_copy_label(struct label *src, struct label *dest) in test_pipe_copy_label()
1186 struct label *pplabel) in test_pipe_create()
1196 test_pipe_destroy_label(struct label *label) in test_pipe_destroy_label() argument
1199 LABEL_DESTROY(label, MAGIC_PIPE); in test_pipe_destroy_label()
1205 test_pipe_externalize_label(struct label *label, char *element_name, in test_pipe_externalize_label() argument
1209 LABEL_CHECK(label, MAGIC_PIPE); in test_pipe_externalize_label()
1217 test_pipe_init_label(struct label *label) in test_pipe_init_label() argument
1220 LABEL_INIT(label, MAGIC_PIPE); in test_pipe_init_label()
1226 test_pipe_internalize_label(struct label *label, char *element_name, in test_pipe_internalize_label() argument
1230 LABEL_CHECK(label, MAGIC_PIPE); in test_pipe_internalize_label()
1239 struct label *pplabel, struct label *newlabel) in test_pipe_relabel()
1251 struct ksem *ks, struct label *kslabel) in test_posixsem_check_getvalue()
1265 struct label *kslabel) in test_posixsem_check_open()
1278 struct ksem *ks, struct label *kslabel) in test_posixsem_check_post()
1292 struct label *kslabel, mode_t mode) in test_posixsem_check_setmode()
1304 struct label *kslabel, uid_t uid, gid_t gid) in test_posixsem_check_setowner()
1316 struct ucred *file_cred, struct ksem *ks, struct label *kslabel) in test_posixsem_check_stat()
1329 struct label *kslabel) in test_posixsem_check_unlink()
1342 struct ksem *ks, struct label *kslabel) in test_posixsem_check_wait()
1356 struct label *kslabel) in test_posixsem_create()
1366 test_posixsem_destroy_label(struct label *label) in test_posixsem_destroy_label() argument
1369 LABEL_DESTROY(label, MAGIC_POSIX_SEM); in test_posixsem_destroy_label()
1375 test_posixsem_init_label(struct label *label) in test_posixsem_init_label() argument
1378 LABEL_INIT(label, MAGIC_POSIX_SEM); in test_posixsem_init_label()
1394 struct label *shmfdlabel, int prot, int flags) in test_posixshm_check_mmap()
1406 struct label *shmfdlabel, accmode_t accmode) in test_posixshm_check_open()
1418 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_read()
1433 struct label *shmfdlabel, mode_t mode) in test_posixshm_check_setmode()
1445 struct label *shmfdlabel, uid_t uid, gid_t gid) in test_posixshm_check_setowner()
1457 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) in test_posixshm_check_stat()
1470 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) in test_posixshm_check_truncate()
1483 struct label *shmfdlabel) in test_posixshm_check_unlink()
1495 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_write()
1510 struct label *shmfdlabel) in test_posixshm_create()
1520 test_posixshm_destroy_label(struct label *label) in test_posixshm_destroy_label() argument
1523 LABEL_DESTROY(label, MAGIC_POSIX_SHM); in test_posixshm_destroy_label()
1529 test_posixshm_init_label(struct label *label) in test_posixshm_init_label() argument
1532 LABEL_INIT(label, MAGIC_POSIX_SHM); in test_posixshm_init_label()
1586 test_proc_destroy_label(struct label *label) in test_proc_destroy_label() argument
1589 LABEL_DESTROY(label, MAGIC_PROC); in test_proc_destroy_label()
1595 test_proc_init_label(struct label *label) in test_proc_init_label() argument
1598 LABEL_INIT(label, MAGIC_PROC); in test_proc_init_label()
1605 struct label *solabel) in test_socket_check_accept()
1620 struct label *solabel, struct sockaddr *sa) in test_socket_check_bind()
1635 struct label *solabel, struct sockaddr *sa) in test_socket_check_connect()
1649 test_socket_check_deliver(struct socket *so, struct label *solabel, in test_socket_check_deliver()
1650 struct mbuf *m, struct label *mlabel) in test_socket_check_deliver()
1665 struct label *solabel) in test_socket_check_listen()
1680 struct label *solabel) in test_socket_check_poll()
1695 struct label *solabel) in test_socket_check_receive()
1710 struct label *solabel, struct label *newlabel) in test_socket_check_relabel()
1726 struct label *solabel) in test_socket_check_send()
1741 struct label *solabel) in test_socket_check_stat()
1756 struct label *solabel) in test_socket_check_visible()
1770 test_socket_copy_label(struct label *src, struct label *dest) in test_socket_copy_label()
1781 struct label *solabel) in test_socket_create()
1791 test_socket_create_mbuf(struct socket *so, struct label *solabel, in test_socket_create_mbuf()
1792 struct mbuf *m, struct label *mlabel) in test_socket_create_mbuf()
1804 test_socket_destroy_label(struct label *label) in test_socket_destroy_label() argument
1807 LABEL_DESTROY(label, MAGIC_SOCKET); in test_socket_destroy_label()
1813 test_socket_externalize_label(struct label *label, char *element_name, in test_socket_externalize_label() argument
1817 LABEL_CHECK(label, MAGIC_SOCKET); in test_socket_externalize_label()
1825 test_socket_init_label(struct label *label, int flag) in test_socket_init_label() argument
1833 LABEL_INIT(label, MAGIC_SOCKET); in test_socket_init_label()
1840 test_socket_internalize_label(struct label *label, char *element_name, in test_socket_internalize_label() argument
1844 LABEL_CHECK(label, MAGIC_SOCKET); in test_socket_internalize_label()
1852 test_socket_newconn(struct socket *oldso, struct label *oldsolabel, in test_socket_newconn()
1853 struct socket *newso, struct label *newsolabel) in test_socket_newconn()
1868 struct label *solabel, struct label *newlabel) in test_socket_relabel()
1881 test_socketpeer_destroy_label(struct label *label) in test_socketpeer_destroy_label() argument
1884 LABEL_DESTROY(label, MAGIC_SOCKET); in test_socketpeer_destroy_label()
1890 test_socketpeer_externalize_label(struct label *label, char *element_name, in test_socketpeer_externalize_label() argument
1894 LABEL_CHECK(label, MAGIC_SOCKET); in test_socketpeer_externalize_label()
1902 test_socketpeer_init_label(struct label *label, int flag) in test_socketpeer_init_label() argument
1910 LABEL_INIT(label, MAGIC_SOCKET); in test_socketpeer_init_label()
1917 test_socketpeer_set_from_mbuf(struct mbuf *m, struct label *mlabel, in test_socketpeer_set_from_mbuf()
1918 struct socket *so, struct label *sopeerlabel) in test_socketpeer_set_from_mbuf()
1931 struct label *oldsolabel, struct socket *newso, in test_socketpeer_set_from_socket()
1932 struct label *newsopeerlabel) in test_socketpeer_set_from_socket()
1946 test_syncache_create(struct label *label, struct inpcb *inp) in test_syncache_create() argument
1949 LABEL_CHECK(label, MAGIC_SYNCACHE); in test_syncache_create()
1955 test_syncache_create_mbuf(struct label *sc_label, struct mbuf *m, in test_syncache_create_mbuf()
1956 struct label *mlabel) in test_syncache_create_mbuf()
1966 test_syncache_destroy_label(struct label *label) in test_syncache_destroy_label() argument
1969 LABEL_DESTROY(label, MAGIC_SYNCACHE); in test_syncache_destroy_label()
1975 test_syncache_init_label(struct label *label, int flag) in test_syncache_init_label() argument
1982 LABEL_INIT(label, MAGIC_SYNCACHE); in test_syncache_init_label()
1990 struct label *vplabel) in test_system_check_acct()
2014 struct label *vplabel) in test_system_check_auditctl()
2049 struct label *vplabel) in test_system_check_swapoff()
2062 struct label *vplabel) in test_system_check_swapon()
2086 test_sysvmsg_cleanup(struct label *msglabel) in test_sysvmsg_cleanup()
2096 struct label *msqlabel, struct msg *msgptr, struct label *msglabel) in test_sysvmsg_create()
2106 test_sysvmsg_destroy_label(struct label *label) in test_sysvmsg_destroy_label() argument
2109 LABEL_DESTROY(label, MAGIC_SYSV_MSG); in test_sysvmsg_destroy_label()
2115 test_sysvmsg_init_label(struct label *label) in test_sysvmsg_init_label() argument
2117 LABEL_INIT(label, MAGIC_SYSV_MSG); in test_sysvmsg_init_label()
2124 struct label *msglabel, struct msqid_kernel *msqkptr, in test_sysvmsq_check_msgmsq()
2125 struct label *msqklabel) in test_sysvmsq_check_msgmsq()
2139 struct label *msglabel) in test_sysvmsq_check_msgrcv()
2152 struct label *msglabel) in test_sysvmsq_check_msgrmid()
2165 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqget()
2178 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqsnd()
2191 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqrcv()
2204 struct msqid_kernel *msqkptr, struct label *msqklabel, int cmd) in test_sysvmsq_check_msqctl()
2216 test_sysvmsq_cleanup(struct label *msqlabel) in test_sysvmsq_cleanup()
2226 struct msqid_kernel *msqkptr, struct label *msqlabel) in test_sysvmsq_create()
2235 test_sysvmsq_destroy_label(struct label *label) in test_sysvmsq_destroy_label() argument
2238 LABEL_DESTROY(label, MAGIC_SYSV_MSQ); in test_sysvmsq_destroy_label()
2244 test_sysvmsq_init_label(struct label *label) in test_sysvmsq_init_label() argument
2246 LABEL_INIT(label, MAGIC_SYSV_MSQ); in test_sysvmsq_init_label()
2253 struct semid_kernel *semakptr, struct label *semaklabel, int cmd) in test_sysvsem_check_semctl()
2266 struct semid_kernel *semakptr, struct label *semaklabel) in test_sysvsem_check_semget()
2279 struct semid_kernel *semakptr, struct label *semaklabel, size_t accesstype) in test_sysvsem_check_semop()
2291 test_sysvsem_cleanup(struct label *semalabel) in test_sysvsem_cleanup()
2301 struct label *semalabel) in test_sysvsem_create()
2310 test_sysvsem_destroy_label(struct label *label) in test_sysvsem_destroy_label() argument
2313 LABEL_DESTROY(label, MAGIC_SYSV_SEM); in test_sysvsem_destroy_label()
2319 test_sysvsem_init_label(struct label *label) in test_sysvsem_init_label() argument
2321 LABEL_INIT(label, MAGIC_SYSV_SEM); in test_sysvsem_init_label()
2328 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg) in test_sysvshm_check_shmat()
2341 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int cmd) in test_sysvshm_check_shmctl()
2354 struct shmid_kernel *shmsegptr, struct label *shmseglabel) in test_sysvshm_check_shmdt()
2367 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg) in test_sysvshm_check_shmget()
2379 test_sysvshm_cleanup(struct label *shmlabel) in test_sysvshm_cleanup()
2389 struct label *shmlabel) in test_sysvshm_create()
2398 test_sysvshm_destroy_label(struct label *label) in test_sysvshm_destroy_label() argument
2401 LABEL_DESTROY(label, MAGIC_SYSV_SHM); in test_sysvshm_destroy_label()
2407 test_sysvshm_init_label(struct label *label) in test_sysvshm_init_label() argument
2409 LABEL_INIT(label, MAGIC_SYSV_SHM); in test_sysvshm_init_label()
2423 test_vnode_associate_extattr(struct mount *mp, struct label *mplabel, in test_vnode_associate_extattr()
2424 struct vnode *vp, struct label *vplabel) in test_vnode_associate_extattr()
2436 test_vnode_associate_singlelabel(struct mount *mp, struct label *mplabel, in test_vnode_associate_singlelabel()
2437 struct vnode *vp, struct label *vplabel) in test_vnode_associate_singlelabel()
2448 struct label *vplabel, accmode_t accmode) in test_vnode_check_access()
2461 struct label *dvplabel) in test_vnode_check_chdir()
2474 struct label *dvplabel) in test_vnode_check_chroot()
2487 struct label *dvplabel, struct componentname *cnp, struct vattr *vap) in test_vnode_check_create()
2500 struct label *vplabel, acl_type_t type) in test_vnode_check_deleteacl()
2513 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_deleteextattr()
2526 struct label *vplabel, struct image_params *imgp, in test_vnode_check_exec()
2527 struct label *execlabel) in test_vnode_check_exec()
2541 struct label *vplabel, acl_type_t type) in test_vnode_check_getacl()
2554 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_getextattr()
2567 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_link()
2582 struct label *vplabel, int attrnamespace) in test_vnode_check_listextattr()
2595 struct label *dvplabel, struct componentname *cnp) in test_vnode_check_lookup()
2608 struct label *vplabel, int prot, int flags) in test_vnode_check_mmap()
2621 struct label *vplabel, accmode_t accmode) in test_vnode_check_open()
2634 struct vnode *vp, struct label *vplabel) in test_vnode_check_poll()
2649 struct vnode *vp, struct label *vplabel) in test_vnode_check_read()
2664 struct label *dvplabel) in test_vnode_check_readdir()
2677 struct label *vplabel) in test_vnode_check_readlink()
2690 struct label *vplabel, struct label *newlabel) in test_vnode_check_relabel()
2704 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_rename_from()
2719 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_rename_to()
2734 struct label *vplabel) in test_vnode_check_revoke()
2747 struct label *vplabel, acl_type_t type, struct acl *acl) in test_vnode_check_setacl()
2760 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_setextattr()
2773 struct label *vplabel, u_long flags) in test_vnode_check_setflags()
2786 struct label *vplabel, mode_t mode) in test_vnode_check_setmode()
2799 struct label *vplabel, uid_t uid, gid_t gid) in test_vnode_check_setowner()
2812 struct label *vplabel, struct timespec atime, struct timespec mtime) in test_vnode_check_setutimes()
2825 struct vnode *vp, struct label *vplabel) in test_vnode_check_stat()
2840 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_unlink()
2855 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in test_vnode_check_write()
2869 test_vnode_copy_label(struct label *src, struct label *dest) in test_vnode_copy_label()
2880 struct label *mplabel, struct vnode *dvp, struct label *dvplabel, in test_vnode_create_extattr()
2881 struct vnode *vp, struct label *vplabel, struct componentname *cnp) in test_vnode_create_extattr()
2894 test_vnode_destroy_label(struct label *label) in test_vnode_destroy_label() argument
2897 LABEL_DESTROY(label, MAGIC_VNODE); in test_vnode_destroy_label()
2904 struct vnode *vp, struct label *filelabel, in test_vnode_execve_transition()
2905 struct label *interpvplabel, struct image_params *imgp, in test_vnode_execve_transition()
2906 struct label *execlabel) in test_vnode_execve_transition()
2920 struct label *filelabel, struct label *interpvplabel, in test_vnode_execve_will_transition()
2921 struct image_params *imgp, struct label *execlabel) in test_vnode_execve_will_transition()
2935 test_vnode_externalize_label(struct label *label, char *element_name, in test_vnode_externalize_label() argument
2939 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_externalize_label()
2947 test_vnode_init_label(struct label *label) in test_vnode_init_label() argument
2950 LABEL_INIT(label, MAGIC_VNODE); in test_vnode_init_label()
2956 test_vnode_internalize_label(struct label *label, char *element_name, in test_vnode_internalize_label() argument
2960 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_internalize_label()
2969 struct label *vplabel, struct label *label) in test_vnode_relabel() argument
2974 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_relabel()
2981 struct label *vplabel, struct label *intlabel) in test_vnode_setlabel_extattr()