Home
last modified time | relevance | path

Searched refs:intlabel (Results 1 – 11 of 11) sorted by relevance

/freebsd/sys/security/mac/
H A Dmac_syscalls.c167 struct label *intlabel; in sys___mac_set_proc() local
191 intlabel = mac_cred_label_alloc(); in sys___mac_set_proc()
192 error = mac_cred_internalize_label(intlabel, buffer); in sys___mac_set_proc()
203 error = mac_cred_check_relabel(oldcred, intlabel); in sys___mac_set_proc()
212 mac_cred_relabel(newcred, intlabel); in sys___mac_set_proc()
220 mac_cred_label_free(intlabel); in sys___mac_set_proc()
228 struct label *intlabel; in sys___mac_get_fd() local
266 intlabel = mac_vnode_label_alloc(); in sys___mac_get_fd()
268 mac_vnode_copy_label(vp->v_label, intlabel); in sys___mac_get_fd()
270 error = mac_vnode_externalize_label(intlabel, elements, in sys___mac_get_fd()
[all …]
H A Dmac_net.c401 struct label *intlabel; in mac_ifnet_ioctl_get() local
424 intlabel = mac_ifnet_label_alloc(); in mac_ifnet_ioctl_get()
426 mac_ifnet_copy_label(if_getmaclabel(ifp), intlabel); in mac_ifnet_ioctl_get()
428 error = mac_ifnet_externalize_label(intlabel, elements, buffer, in mac_ifnet_ioctl_get()
430 mac_ifnet_label_free(intlabel); in mac_ifnet_ioctl_get()
443 struct label *intlabel; in mac_ifnet_ioctl_set() local
466 intlabel = mac_ifnet_label_alloc(); in mac_ifnet_ioctl_set()
467 error = mac_ifnet_internalize_label(intlabel, buffer); in mac_ifnet_ioctl_set()
470 mac_ifnet_label_free(intlabel); in mac_ifnet_ioctl_set()
481 mac_ifnet_label_free(intlabel); in mac_ifnet_ioctl_set()
[all …]
H A Dmac_socket.c529 struct label *intlabel; in mac_setsockopt_label() local
547 intlabel = mac_socket_label_alloc(M_WAITOK); in mac_setsockopt_label()
548 error = mac_socket_internalize_label(intlabel, buffer); in mac_setsockopt_label()
553 error = mac_socket_label_set(cred, so, intlabel); in mac_setsockopt_label()
555 mac_socket_label_free(intlabel); in mac_setsockopt_label()
564 struct label *intlabel; in mac_getsockopt_label() local
582 intlabel = mac_socket_label_alloc(M_WAITOK); in mac_getsockopt_label()
584 mac_socket_copy_label(so->so_label, intlabel); in mac_getsockopt_label()
586 error = mac_socket_externalize_label(intlabel, elements, buffer, in mac_getsockopt_label()
588 mac_socket_label_free(intlabel); in mac_getsockopt_label()
[all …]
H A Dmac_vfs.c84 struct vnode *vp, struct label *intlabel);
311 struct label *intlabel) in mac_vnode_setlabel_extattr() argument
328 intlabel); in mac_vnode_setlabel_extattr()
1010 struct label *intlabel = ap->a_label; in vop_stdsetlabel_ea() local
1018 error = mac_vnode_setlabel_extattr(ap->a_cred, vp, intlabel); in vop_stdsetlabel_ea()
1026 mac_vnode_relabel(ap->a_cred, vp, intlabel); in vop_stdsetlabel_ea()
1032 vn_setlabel(struct vnode *vp, struct label *intlabel, struct ucred *cred) in vn_setlabel() argument
1051 error = mac_vnode_check_relabel(cred, vp, intlabel); in vn_setlabel()
1066 error = VOP_SETLABEL(vp, intlabel, cred, curthread); in vn_setlabel()
H A Dmac_internal.h274 int vn_setlabel(struct vnode *vp, struct label *intlabel,
H A Dmac_policy.h690 struct label *intlabel);
/freebsd/sys/security/mac_lomac/
H A Dmac_lomac.c2881 struct label *vplabel, struct label *intlabel) in lomac_vnode_setlabel_extattr() argument
2890 source = SLOT(intlabel); in lomac_vnode_setlabel_extattr()
/freebsd/sys/security/mac_stub/
H A Dmac_stub.c1667 struct label *vplabel, struct label *intlabel) in stub_vnode_setlabel_extattr() argument
/freebsd/sys/security/mac_test/
H A Dmac_test.c3015 struct label *vplabel, struct label *intlabel) in test_vnode_setlabel_extattr() argument
3020 LABEL_CHECK(intlabel, MAGIC_VNODE); in test_vnode_setlabel_extattr()
/freebsd/sys/security/mac_biba/
H A Dmac_biba.c3543 struct label *vplabel, struct label *intlabel) in biba_vnode_setlabel_extattr() argument
3552 source = SLOT(intlabel); in biba_vnode_setlabel_extattr()
/freebsd/sys/security/mac_mls/
H A Dmac_mls.c3173 struct label *vplabel, struct label *intlabel) in mls_vnode_setlabel_extattr() argument
3182 source = SLOT(intlabel); in mls_vnode_setlabel_extattr()