Lines Matching full:label

47  * magic numbers to each label and validates that each time an object label
131 #define LABEL_CHECK(label, magic) do { \ argument
132 if (label != NULL) { \
133 KASSERT(SLOT(label) == magic || SLOT(label) == 0, \
134 ("%s: bad %s label", __func__, #magic)); \
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) { \
144 DEBUGGER("%s: corrupted label", __func__); \
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, \
154 ("%s: destroyed label", __func__)); \
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()
402 test_cred_copy_label(struct label *src, struct label *dest) in test_cred_copy_label()
430 test_cred_destroy_label(struct label *label) in test_cred_destroy_label() argument
433 LABEL_DESTROY(label, MAGIC_CRED); in test_cred_destroy_label()
439 test_cred_externalize_label(struct label *label, char *element_name, in test_cred_externalize_label() argument
443 LABEL_CHECK(label, MAGIC_CRED); in test_cred_externalize_label()
451 test_cred_init_label(struct label *label) in test_cred_init_label() argument
454 LABEL_INIT(label, MAGIC_CRED); in test_cred_init_label()
460 test_cred_internalize_label(struct label *label, char *element_name, in test_cred_internalize_label() argument
464 LABEL_CHECK(label, MAGIC_CRED); in test_cred_internalize_label()
472 test_cred_relabel(struct ucred *cred, struct label *newlabel) in test_cred_relabel()
505 struct cdev *dev, struct devfs_dirent *de, struct label *delabel) in test_devfs_create_device()
517 int dirnamelen, struct devfs_dirent *de, struct label *delabel) in test_devfs_create_directory()
527 struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de, in test_devfs_create_symlink()
528 struct label *delabel) in test_devfs_create_symlink()
539 test_devfs_destroy_label(struct label *label) in test_devfs_destroy_label() argument
542 LABEL_DESTROY(label, MAGIC_DEVFS); in test_devfs_destroy_label()
548 test_devfs_init_label(struct label *label) in test_devfs_init_label() argument
551 LABEL_INIT(label, MAGIC_DEVFS); in test_devfs_init_label()
558 struct label *direntlabel, struct vnode *vp, struct label *vplabel) in test_devfs_update()
568 test_devfs_vnode_associate(struct mount *mp, struct label *mplabel, in test_devfs_vnode_associate()
569 struct devfs_dirent *de, struct label *delabel, struct vnode *vp, in test_devfs_vnode_associate()
570 struct label *vplabel) in test_devfs_vnode_associate()
582 struct label *ifplabel, struct label *newlabel) in test_ifnet_check_relabel()
595 test_ifnet_check_transmit(struct ifnet *ifp, struct label *ifplabel, in test_ifnet_check_transmit()
596 struct mbuf *m, struct label *mlabel) in test_ifnet_check_transmit()
608 test_ifnet_copy_label(struct label *src, struct label *dest) in test_ifnet_copy_label()
618 test_ifnet_create(struct ifnet *ifp, struct label *ifplabel) in test_ifnet_create()
627 test_ifnet_create_mbuf(struct ifnet *ifp, struct label *ifplabel, in test_ifnet_create_mbuf()
628 struct mbuf *m, struct label *mlabel) in test_ifnet_create_mbuf()
638 test_ifnet_destroy_label(struct label *label) in test_ifnet_destroy_label() argument
641 LABEL_DESTROY(label, MAGIC_IFNET); in test_ifnet_destroy_label()
647 test_ifnet_externalize_label(struct label *label, char *element_name, in test_ifnet_externalize_label() argument
651 LABEL_CHECK(label, MAGIC_IFNET); in test_ifnet_externalize_label()
659 test_ifnet_init_label(struct label *label) in test_ifnet_init_label() argument
662 LABEL_INIT(label, MAGIC_IFNET); in test_ifnet_init_label()
668 test_ifnet_internalize_label(struct label *label, char *element_name, in test_ifnet_internalize_label() argument
672 LABEL_CHECK(label, MAGIC_IFNET); in test_ifnet_internalize_label()
681 struct label *ifplabel, struct label *newlabel) in test_ifnet_relabel()
692 test_inpcb_check_deliver(struct inpcb *inp, struct label *inplabel, in test_inpcb_check_deliver()
693 struct mbuf *m, struct label *mlabel) in test_inpcb_check_deliver()
706 struct label *inplabel) in test_inpcb_check_visible()
718 test_inpcb_create(struct socket *so, struct label *solabel, in test_inpcb_create()
719 struct inpcb *inp, struct label *inplabel) in test_inpcb_create()
731 test_inpcb_create_mbuf(struct inpcb *inp, struct label *inplabel, in test_inpcb_create_mbuf()
732 struct mbuf *m, struct label *mlabel) in test_inpcb_create_mbuf()
742 test_inpcb_destroy_label(struct label *label) in test_inpcb_destroy_label() argument
745 LABEL_DESTROY(label, MAGIC_INPCB); in test_inpcb_destroy_label()
751 test_inpcb_init_label(struct label *label, int flag) in test_inpcb_init_label() argument
759 LABEL_INIT(label, MAGIC_INPCB); in test_inpcb_init_label()
766 test_inpcb_sosetlabel(struct socket *so, struct label *solabel, in test_inpcb_sosetlabel()
767 struct inpcb *inp, struct label *inplabel) in test_inpcb_sosetlabel()
779 test_ip6q_create(struct mbuf *fragment, struct label *fragmentlabel, in test_ip6q_create()
780 struct ip6q *q6, struct label *q6label) in test_ip6q_create()
790 test_ip6q_destroy_label(struct label *label) in test_ip6q_destroy_label() argument
793 LABEL_DESTROY(label, MAGIC_IP6Q); in test_ip6q_destroy_label()
799 test_ip6q_init_label(struct label *label, int flag) in test_ip6q_init_label() argument
807 LABEL_INIT(label, MAGIC_IP6Q); in test_ip6q_init_label()
814 test_ip6q_match(struct mbuf *fragment, struct label *fragmentlabel, in test_ip6q_match()
815 struct ip6q *q6, struct label *q6label) in test_ip6q_match()
827 test_ip6q_reassemble(struct ip6q *q6, struct label *q6label, struct mbuf *m, in test_ip6q_reassemble()
828 struct label *mlabel) in test_ip6q_reassemble()
838 test_ip6q_update(struct mbuf *m, struct label *mlabel, struct ip6q *q6, in test_ip6q_update()
839 struct label *q6label) in test_ip6q_update()
849 test_ipq_create(struct mbuf *fragment, struct label *fragmentlabel, in test_ipq_create()
850 struct ipq *q, struct label *qlabel) in test_ipq_create()
860 test_ipq_destroy_label(struct label *label) in test_ipq_destroy_label() argument
863 LABEL_DESTROY(label, MAGIC_IPQ); in test_ipq_destroy_label()
869 test_ipq_init_label(struct label *label, int flag) in test_ipq_init_label() argument
877 LABEL_INIT(label, MAGIC_IPQ); in test_ipq_init_label()
884 test_ipq_match(struct mbuf *fragment, struct label *fragmentlabel, in test_ipq_match()
885 struct ipq *q, struct label *qlabel) in test_ipq_match()
897 test_ipq_reassemble(struct ipq *q, struct label *qlabel, struct mbuf *m, in test_ipq_reassemble()
898 struct label *mlabel) in test_ipq_reassemble()
908 test_ipq_update(struct mbuf *m, struct label *mlabel, struct ipq *q, in test_ipq_update()
909 struct label *qlabel) in test_ipq_update()
974 struct label *label) in test_kld_check_load() argument
978 LABEL_CHECK(label, MAGIC_VNODE); in test_kld_check_load()
997 test_mbuf_copy_label(struct label *src, struct label *dest) in test_mbuf_copy_label()
1007 test_mbuf_destroy_label(struct label *label) in test_mbuf_destroy_label() argument
1012 * didn't have label storage allocated for them. Handle this in test_mbuf_destroy_label()
1015 if (label == NULL) in test_mbuf_destroy_label()
1018 LABEL_DESTROY(label, MAGIC_MBUF); in test_mbuf_destroy_label()
1024 test_mbuf_init_label(struct label *label, int flag) in test_mbuf_init_label() argument
1032 LABEL_INIT(label, MAGIC_MBUF); in test_mbuf_init_label()
1040 struct label *mplabel) in test_mount_check_stat()
1053 struct label *mplabel) in test_mount_create()
1063 test_mount_destroy_label(struct label *label) in test_mount_destroy_label() argument
1066 LABEL_DESTROY(label, MAGIC_MOUNT); in test_mount_destroy_label()
1072 test_mount_init_label(struct label *label) in test_mount_init_label() argument
1075 LABEL_INIT(label, MAGIC_MOUNT); in test_mount_init_label()
1081 test_netinet_arp_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet_arp_send()
1082 struct mbuf *m, struct label *mlabel) in test_netinet_arp_send()
1092 test_netinet_fragment(struct mbuf *m, struct label *mlabel, in test_netinet_fragment()
1093 struct mbuf *frag, struct label *fraglabel) in test_netinet_fragment()
1103 test_netinet_icmp_reply(struct mbuf *mrecv, struct label *mrecvlabel, in test_netinet_icmp_reply()
1104 struct mbuf *msend, struct label *msendlabel) in test_netinet_icmp_reply()
1114 test_netinet_icmp_replyinplace(struct mbuf *m, struct label *mlabel) in test_netinet_icmp_replyinplace()
1123 test_netinet_igmp_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet_igmp_send()
1124 struct mbuf *m, struct label *mlabel) in test_netinet_igmp_send()
1134 test_netinet_tcp_reply(struct mbuf *m, struct label *mlabel) in test_netinet_tcp_reply()
1143 test_netinet6_nd6_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet6_nd6_send()
1144 struct mbuf *m, struct label *mlabel) in test_netinet6_nd6_send()
1155 struct label *pplabel, unsigned long cmd, void /* caddr_t */ *data) in test_pipe_check_ioctl()
1168 struct label *pplabel) in test_pipe_check_poll()
1181 struct label *pplabel) in test_pipe_check_read()
1194 struct label *pplabel, struct label *newlabel) in test_pipe_check_relabel()
1208 struct label *pplabel) in test_pipe_check_stat()
1221 struct label *pplabel) in test_pipe_check_write()
1233 test_pipe_copy_label(struct label *src, struct label *dest) in test_pipe_copy_label()
1244 struct label *pplabel) in test_pipe_create()
1254 test_pipe_destroy_label(struct label *label) in test_pipe_destroy_label() argument
1257 LABEL_DESTROY(label, MAGIC_PIPE); in test_pipe_destroy_label()
1263 test_pipe_externalize_label(struct label *label, char *element_name, in test_pipe_externalize_label() argument
1267 LABEL_CHECK(label, MAGIC_PIPE); in test_pipe_externalize_label()
1275 test_pipe_init_label(struct label *label) in test_pipe_init_label() argument
1278 LABEL_INIT(label, MAGIC_PIPE); in test_pipe_init_label()
1284 test_pipe_internalize_label(struct label *label, char *element_name, in test_pipe_internalize_label() argument
1288 LABEL_CHECK(label, MAGIC_PIPE); in test_pipe_internalize_label()
1297 struct label *pplabel, struct label *newlabel) in test_pipe_relabel()
1309 struct ksem *ks, struct label *kslabel) in test_posixsem_check_getvalue()
1323 struct label *kslabel) in test_posixsem_check_open()
1336 struct ksem *ks, struct label *kslabel) in test_posixsem_check_post()
1350 struct label *kslabel, mode_t mode) in test_posixsem_check_setmode()
1362 struct label *kslabel, uid_t uid, gid_t gid) in test_posixsem_check_setowner()
1374 struct ucred *file_cred, struct ksem *ks, struct label *kslabel) in test_posixsem_check_stat()
1387 struct label *kslabel) in test_posixsem_check_unlink()
1400 struct ksem *ks, struct label *kslabel) in test_posixsem_check_wait()
1414 struct label *kslabel) in test_posixsem_create()
1424 test_posixsem_destroy_label(struct label *label) in test_posixsem_destroy_label() argument
1427 LABEL_DESTROY(label, MAGIC_POSIX_SEM); in test_posixsem_destroy_label()
1433 test_posixsem_init_label(struct label *label) in test_posixsem_init_label() argument
1436 LABEL_INIT(label, MAGIC_POSIX_SEM); in test_posixsem_init_label()
1452 struct label *shmfdlabel, int prot, int flags) in test_posixshm_check_mmap()
1464 struct label *shmfdlabel, accmode_t accmode) in test_posixshm_check_open()
1476 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_read()
1491 struct label *shmfdlabel, mode_t mode) in test_posixshm_check_setmode()
1503 struct label *shmfdlabel, uid_t uid, gid_t gid) in test_posixshm_check_setowner()
1515 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) in test_posixshm_check_stat()
1528 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) in test_posixshm_check_truncate()
1541 struct label *shmfdlabel) in test_posixshm_check_unlink()
1553 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_write()
1568 struct label *shmfdlabel) in test_posixshm_create()
1578 test_posixshm_destroy_label(struct label *label) in test_posixshm_destroy_label() argument
1581 LABEL_DESTROY(label, MAGIC_POSIX_SHM); in test_posixshm_destroy_label()
1587 test_posixshm_init_label(struct label *label) in test_posixshm_init_label() argument
1590 LABEL_INIT(label, MAGIC_POSIX_SHM); in test_posixshm_init_label()
1644 test_proc_destroy_label(struct label *label) in test_proc_destroy_label() argument
1647 LABEL_DESTROY(label, MAGIC_PROC); in test_proc_destroy_label()
1653 test_proc_init_label(struct label *label) in test_proc_init_label() argument
1656 LABEL_INIT(label, MAGIC_PROC); in test_proc_init_label()
1663 struct label *solabel) in test_socket_check_accept()
1678 struct label *solabel, struct sockaddr *sa) in test_socket_check_bind()
1693 struct label *solabel, struct sockaddr *sa) in test_socket_check_connect()
1707 test_socket_check_deliver(struct socket *so, struct label *solabel, in test_socket_check_deliver()
1708 struct mbuf *m, struct label *mlabel) in test_socket_check_deliver()
1723 struct label *solabel) in test_socket_check_listen()
1738 struct label *solabel) in test_socket_check_poll()
1753 struct label *solabel) in test_socket_check_receive()
1768 struct label *solabel, struct label *newlabel) in test_socket_check_relabel()
1784 struct label *solabel) in test_socket_check_send()
1799 struct label *solabel) in test_socket_check_stat()
1814 struct label *solabel) in test_socket_check_visible()
1828 test_socket_copy_label(struct label *src, struct label *dest) in test_socket_copy_label()
1839 struct label *solabel) in test_socket_create()
1849 test_socket_create_mbuf(struct socket *so, struct label *solabel, in test_socket_create_mbuf()
1850 struct mbuf *m, struct label *mlabel) in test_socket_create_mbuf()
1862 test_socket_destroy_label(struct label *label) in test_socket_destroy_label() argument
1865 LABEL_DESTROY(label, MAGIC_SOCKET); in test_socket_destroy_label()
1871 test_socket_externalize_label(struct label *label, char *element_name, in test_socket_externalize_label() argument
1875 LABEL_CHECK(label, MAGIC_SOCKET); in test_socket_externalize_label()
1883 test_socket_init_label(struct label *label, int flag) in test_socket_init_label() argument
1891 LABEL_INIT(label, MAGIC_SOCKET); in test_socket_init_label()
1898 test_socket_internalize_label(struct label *label, char *element_name, in test_socket_internalize_label() argument
1902 LABEL_CHECK(label, MAGIC_SOCKET); in test_socket_internalize_label()
1910 test_socket_newconn(struct socket *oldso, struct label *oldsolabel, in test_socket_newconn()
1911 struct socket *newso, struct label *newsolabel) in test_socket_newconn()
1926 struct label *solabel, struct label *newlabel) in test_socket_relabel()
1939 test_socketpeer_destroy_label(struct label *label) in test_socketpeer_destroy_label() argument
1942 LABEL_DESTROY(label, MAGIC_SOCKET); in test_socketpeer_destroy_label()
1948 test_socketpeer_externalize_label(struct label *label, char *element_name, in test_socketpeer_externalize_label() argument
1952 LABEL_CHECK(label, MAGIC_SOCKET); in test_socketpeer_externalize_label()
1960 test_socketpeer_init_label(struct label *label, int flag) in test_socketpeer_init_label() argument
1968 LABEL_INIT(label, MAGIC_SOCKET); in test_socketpeer_init_label()
1975 test_socketpeer_set_from_mbuf(struct mbuf *m, struct label *mlabel, in test_socketpeer_set_from_mbuf()
1976 struct socket *so, struct label *sopeerlabel) in test_socketpeer_set_from_mbuf()
1989 struct label *oldsolabel, struct socket *newso, in test_socketpeer_set_from_socket()
1990 struct label *newsopeerlabel) in test_socketpeer_set_from_socket()
2004 test_syncache_create(struct label *label, struct inpcb *inp) in test_syncache_create() argument
2007 LABEL_CHECK(label, MAGIC_SYNCACHE); in test_syncache_create()
2013 test_syncache_create_mbuf(struct label *sc_label, struct mbuf *m, in test_syncache_create_mbuf()
2014 struct label *mlabel) in test_syncache_create_mbuf()
2024 test_syncache_destroy_label(struct label *label) in test_syncache_destroy_label() argument
2027 LABEL_DESTROY(label, MAGIC_SYNCACHE); in test_syncache_destroy_label()
2033 test_syncache_init_label(struct label *label, int flag) in test_syncache_init_label() argument
2040 LABEL_INIT(label, MAGIC_SYNCACHE); in test_syncache_init_label()
2048 struct label *vplabel) in test_system_check_acct()
2072 struct label *vplabel) in test_system_check_auditctl()
2107 struct label *vplabel) in test_system_check_swapoff()
2120 struct label *vplabel) in test_system_check_swapon()
2144 test_sysvmsg_cleanup(struct label *msglabel) in test_sysvmsg_cleanup()
2154 struct label *msqlabel, struct msg *msgptr, struct label *msglabel) in test_sysvmsg_create()
2164 test_sysvmsg_destroy_label(struct label *label) in test_sysvmsg_destroy_label() argument
2167 LABEL_DESTROY(label, MAGIC_SYSV_MSG); in test_sysvmsg_destroy_label()
2173 test_sysvmsg_init_label(struct label *label) in test_sysvmsg_init_label() argument
2175 LABEL_INIT(label, MAGIC_SYSV_MSG); in test_sysvmsg_init_label()
2182 struct label *msglabel, struct msqid_kernel *msqkptr, in test_sysvmsq_check_msgmsq()
2183 struct label *msqklabel) in test_sysvmsq_check_msgmsq()
2197 struct label *msglabel) in test_sysvmsq_check_msgrcv()
2210 struct label *msglabel) in test_sysvmsq_check_msgrmid()
2223 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqget()
2236 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqsnd()
2249 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqrcv()
2262 struct msqid_kernel *msqkptr, struct label *msqklabel, int cmd) in test_sysvmsq_check_msqctl()
2274 test_sysvmsq_cleanup(struct label *msqlabel) in test_sysvmsq_cleanup()
2284 struct msqid_kernel *msqkptr, struct label *msqlabel) in test_sysvmsq_create()
2293 test_sysvmsq_destroy_label(struct label *label) in test_sysvmsq_destroy_label() argument
2296 LABEL_DESTROY(label, MAGIC_SYSV_MSQ); in test_sysvmsq_destroy_label()
2302 test_sysvmsq_init_label(struct label *label) in test_sysvmsq_init_label() argument
2304 LABEL_INIT(label, MAGIC_SYSV_MSQ); in test_sysvmsq_init_label()
2311 struct semid_kernel *semakptr, struct label *semaklabel, int cmd) in test_sysvsem_check_semctl()
2324 struct semid_kernel *semakptr, struct label *semaklabel) in test_sysvsem_check_semget()
2337 struct semid_kernel *semakptr, struct label *semaklabel, size_t accesstype) in test_sysvsem_check_semop()
2349 test_sysvsem_cleanup(struct label *semalabel) in test_sysvsem_cleanup()
2359 struct label *semalabel) in test_sysvsem_create()
2368 test_sysvsem_destroy_label(struct label *label) in test_sysvsem_destroy_label() argument
2371 LABEL_DESTROY(label, MAGIC_SYSV_SEM); in test_sysvsem_destroy_label()
2377 test_sysvsem_init_label(struct label *label) in test_sysvsem_init_label() argument
2379 LABEL_INIT(label, MAGIC_SYSV_SEM); in test_sysvsem_init_label()
2386 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg) in test_sysvshm_check_shmat()
2399 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int cmd) in test_sysvshm_check_shmctl()
2412 struct shmid_kernel *shmsegptr, struct label *shmseglabel) in test_sysvshm_check_shmdt()
2425 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg) in test_sysvshm_check_shmget()
2437 test_sysvshm_cleanup(struct label *shmlabel) in test_sysvshm_cleanup()
2447 struct label *shmlabel) in test_sysvshm_create()
2456 test_sysvshm_destroy_label(struct label *label) in test_sysvshm_destroy_label() argument
2459 LABEL_DESTROY(label, MAGIC_SYSV_SHM); in test_sysvshm_destroy_label()
2465 test_sysvshm_init_label(struct label *label) in test_sysvshm_init_label() argument
2467 LABEL_INIT(label, MAGIC_SYSV_SHM); in test_sysvshm_init_label()
2481 test_vnode_associate_extattr(struct mount *mp, struct label *mplabel, in test_vnode_associate_extattr()
2482 struct vnode *vp, struct label *vplabel) in test_vnode_associate_extattr()
2494 test_vnode_associate_singlelabel(struct mount *mp, struct label *mplabel, in test_vnode_associate_singlelabel()
2495 struct vnode *vp, struct label *vplabel) in test_vnode_associate_singlelabel()
2506 struct label *vplabel, accmode_t accmode) in test_vnode_check_access()
2519 struct label *dvplabel) in test_vnode_check_chdir()
2532 struct label *dvplabel) in test_vnode_check_chroot()
2545 struct label *dvplabel, struct componentname *cnp, struct vattr *vap) in test_vnode_check_create()
2558 struct label *vplabel, acl_type_t type) in test_vnode_check_deleteacl()
2571 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_deleteextattr()
2584 struct label *vplabel, struct image_params *imgp, in test_vnode_check_exec()
2585 struct label *execlabel) in test_vnode_check_exec()
2599 struct label *vplabel, acl_type_t type) in test_vnode_check_getacl()
2612 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_getextattr()
2625 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_link()
2640 struct label *vplabel, int attrnamespace) in test_vnode_check_listextattr()
2653 struct label *dvplabel, struct componentname *cnp) in test_vnode_check_lookup()
2666 struct label *vplabel, int prot, int flags) in test_vnode_check_mmap()
2679 struct label *vplabel, accmode_t accmode) in test_vnode_check_open()
2692 struct vnode *vp, struct label *vplabel) in test_vnode_check_poll()
2707 struct vnode *vp, struct label *vplabel) in test_vnode_check_read()
2722 struct label *dvplabel) in test_vnode_check_readdir()
2735 struct label *vplabel) in test_vnode_check_readlink()
2748 struct label *vplabel, struct label *newlabel) in test_vnode_check_relabel()
2762 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_rename_from()
2777 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_rename_to()
2792 struct label *vplabel) in test_vnode_check_revoke()
2805 struct label *vplabel, acl_type_t type, struct acl *acl) in test_vnode_check_setacl()
2818 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_setextattr()
2831 struct label *vplabel, u_long flags) in test_vnode_check_setflags()
2844 struct label *vplabel, mode_t mode) in test_vnode_check_setmode()
2857 struct label *vplabel, uid_t uid, gid_t gid) in test_vnode_check_setowner()
2870 struct label *vplabel, struct timespec atime, struct timespec mtime) in test_vnode_check_setutimes()
2883 struct vnode *vp, struct label *vplabel) in test_vnode_check_stat()
2898 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_unlink()
2913 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in test_vnode_check_write()
2927 test_vnode_copy_label(struct label *src, struct label *dest) in test_vnode_copy_label()
2938 struct label *mplabel, struct vnode *dvp, struct label *dvplabel, in test_vnode_create_extattr()
2939 struct vnode *vp, struct label *vplabel, struct componentname *cnp) in test_vnode_create_extattr()
2952 test_vnode_destroy_label(struct label *label) in test_vnode_destroy_label() argument
2955 LABEL_DESTROY(label, MAGIC_VNODE); in test_vnode_destroy_label()
2962 struct vnode *vp, struct label *filelabel, in test_vnode_execve_transition()
2963 struct label *interpvplabel, struct image_params *imgp, in test_vnode_execve_transition()
2964 struct label *execlabel) in test_vnode_execve_transition()
2978 struct label *filelabel, struct label *interpvplabel, in test_vnode_execve_will_transition()
2979 struct image_params *imgp, struct label *execlabel) in test_vnode_execve_will_transition()
2993 test_vnode_externalize_label(struct label *label, char *element_name, in test_vnode_externalize_label() argument
2997 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_externalize_label()
3005 test_vnode_init_label(struct label *label) in test_vnode_init_label() argument
3008 LABEL_INIT(label, MAGIC_VNODE); in test_vnode_init_label()
3014 test_vnode_internalize_label(struct label *label, char *element_name, in test_vnode_internalize_label() argument
3018 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_internalize_label()
3027 struct label *vplabel, struct label *label) in test_vnode_relabel() argument
3032 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_relabel()
3039 struct label *vplabel, struct label *intlabel) in test_vnode_setlabel_extattr()