Home
last modified time | relevance | path

Searched refs:newlabel (Results 1 – 14 of 14) sorted by relevance

/freebsd/sys/security/mac_partition/
H A Dmac_partition.c108 partition_cred_check_relabel(struct ucred *cred, struct label *newlabel) in partition_cred_check_relabel() argument
121 if (SLOT(newlabel) != 0) { in partition_cred_check_relabel()
216 partition_cred_relabel(struct ucred *cred, struct label *newlabel) in partition_cred_relabel() argument
219 if (newlabel != NULL && SLOT(newlabel) != 0) in partition_cred_relabel()
220 SLOT_SET(cred->cr_label, SLOT(newlabel)); in partition_cred_relabel()
/freebsd/sys/security/mac/
H A Dmac_pipe.c135 struct label *newlabel) in mac_pipe_relabel() argument
139 newlabel); in mac_pipe_relabel()
197 struct label *newlabel) in mac_pipe_check_relabel() argument
204 newlabel); in mac_pipe_check_relabel()
205 MAC_CHECK_PROBE3(pipe_check_relabel, error, cred, pp, newlabel); in mac_pipe_check_relabel()
H A Dmac_cred.c192 mac_cred_relabel(struct ucred *cred, struct label *newlabel) in mac_cred_relabel() argument
195 MAC_POLICY_PERFORM_NOSLEEP(cred_relabel, cred, newlabel); in mac_cred_relabel()
202 mac_cred_check_relabel(struct ucred *cred, struct label *newlabel) in mac_cred_check_relabel() argument
206 MAC_POLICY_CHECK_NOSLEEP(cred_check_relabel, cred, newlabel); in mac_cred_check_relabel()
207 MAC_CHECK_PROBE2(cred_check_relabel, error, cred, newlabel); in mac_cred_check_relabel()
H A Dmac_socket.c252 struct label *newlabel) in mac_socket_relabel() argument
258 newlabel); in mac_socket_relabel()
433 struct label *newlabel) in mac_socket_check_relabel() argument
440 so->so_label, newlabel); in mac_socket_check_relabel()
441 MAC_CHECK_PROBE3(socket_check_relabel, error, cred, so, newlabel); in mac_socket_check_relabel()
H A Dmac_policy.h141 struct label *newlabel);
178 struct label *newlabel);
208 struct label *newlabel);
226 struct label *ifplabel, struct label *newlabel);
332 struct label *newlabel);
348 struct label *oldlabel, struct label *newlabel);
445 struct label *newlabel);
469 struct label *oldlabel, struct label *newlabel);
632 struct label *newlabel);
H A Dmac_vfs.c719 struct label *newlabel) in mac_vnode_check_relabel() argument
725 MAC_POLICY_CHECK(vnode_check_relabel, cred, vp, vp->v_label, newlabel); in mac_vnode_check_relabel()
726 MAC_CHECK_PROBE3(vnode_check_relabel, error, cred, vp, newlabel); in mac_vnode_check_relabel()
947 struct label *newlabel) in mac_vnode_relabel() argument
950 MAC_POLICY_PERFORM(vnode_relabel, cred, vp, vp->v_label, newlabel); in mac_vnode_relabel()
H A Dmac_internal.h242 int mac_cred_check_relabel(struct ucred *cred, struct label *newlabel);
246 void mac_cred_relabel(struct ucred *cred, struct label *newlabel);
H A Dmac_framework.h717 struct label *newlabel);
/freebsd/usr.bin/diff/
H A Ddiffreg_new.c119 char *newlabel; in format_label() local
136 newlabel = calloc(newlabellen, sizeof(char)); in format_label()
138 snprintf(newlabel, newlabellen ,"%s\t%s.%.9d %s\n", in format_label()
141 return newlabel; in format_label()
/freebsd/sys/security/mac_lomac/
H A Dmac_lomac.c919 lomac_cred_check_relabel(struct ucred *cred, struct label *newlabel) in lomac_cred_check_relabel() argument
925 new = SLOT(newlabel); in lomac_cred_check_relabel()
1022 lomac_cred_relabel(struct ucred *cred, struct label *newlabel) in lomac_cred_relabel() argument
1026 source = SLOT(newlabel); in lomac_cred_relabel()
1108 struct label *ifplabel, struct label *newlabel) in lomac_ifnet_check_relabel() argument
1114 new = SLOT(newlabel); in lomac_ifnet_check_relabel()
1250 struct label *ifplabel, struct label *newlabel) in lomac_ifnet_relabel() argument
1254 source = SLOT(newlabel); in lomac_ifnet_relabel()
1566 struct label *pplabel, struct label *newlabel) in lomac_pipe_check_relabel() argument
1571 new = SLOT(newlabel); in lomac_pipe_check_relabel()
[all …]
/freebsd/sys/security/mac_biba/
H A Dmac_biba.c824 biba_cred_check_relabel(struct ucred *cred, struct label *newlabel) in biba_cred_check_relabel() argument
830 new = SLOT(newlabel); in biba_cred_check_relabel()
927 biba_cred_relabel(struct ucred *cred, struct label *newlabel) in biba_cred_relabel() argument
931 source = SLOT(newlabel); in biba_cred_relabel()
1013 struct label *ifplabel, struct label *newlabel) in biba_ifnet_check_relabel() argument
1019 new = SLOT(newlabel); in biba_ifnet_check_relabel()
1125 struct label *ifplabel, struct label *newlabel) in biba_ifnet_relabel() argument
1129 source = SLOT(newlabel); in biba_ifnet_relabel()
1482 struct label *pplabel, struct label *newlabel) in biba_pipe_check_relabel() argument
1487 new = SLOT(newlabel); in biba_pipe_check_relabel()
[all …]
/freebsd/sys/security/mac_stub/
H A Dmac_stub.c198 stub_cred_check_relabel(struct ucred *cred, struct label *newlabel) in stub_cred_check_relabel() argument
328 stub_cred_relabel(struct ucred *cred, struct label *newlabel) in stub_cred_relabel() argument
388 struct label *ifplabel, struct label *newlabel) in stub_ifnet_check_relabel() argument
417 struct label *ifplabel, struct label *newlabel) in stub_ifnet_relabel() argument
662 struct label *pplabel, struct label *newlabel) in stub_pipe_check_relabel() argument
693 struct label *pplabel, struct label *newlabel) in stub_pipe_relabel() argument
997 struct label *solabel, struct label *newlabel) in stub_socket_check_relabel() argument
1086 struct label *solabel, struct label *newlabel) in stub_socket_relabel() argument
1542 struct label *vplabel, struct label *newlabel) in stub_vnode_check_relabel() argument
/freebsd/sys/security/mac_mls/
H A Dmac_mls.c788 mls_cred_check_relabel(struct ucred *cred, struct label *newlabel) in mls_cred_check_relabel() argument
794 new = SLOT(newlabel); in mls_cred_check_relabel()
890 mls_cred_relabel(struct ucred *cred, struct label *newlabel) in mls_cred_relabel() argument
894 source = SLOT(newlabel); in mls_cred_relabel()
978 struct label *ifplabel, struct label *newlabel) in mls_ifnet_check_relabel() argument
984 new = SLOT(newlabel); in mls_ifnet_check_relabel()
1046 struct label *ifplabel, struct label *newlabel) in mls_ifnet_relabel() argument
1050 source = SLOT(newlabel); in mls_ifnet_relabel()
1377 struct label *pplabel, struct label *newlabel) in mls_pipe_check_relabel() argument
1382 new = SLOT(newlabel); in mls_pipe_check_relabel()
[all …]
/freebsd/sys/security/mac_test/
H A Dmac_test.c216 test_cred_check_relabel(struct ucred *cred, struct label *newlabel) in test_cred_check_relabel() argument
220 LABEL_CHECK(newlabel, MAGIC_CRED); in test_cred_check_relabel()
472 test_cred_relabel(struct ucred *cred, struct label *newlabel) in test_cred_relabel() argument
476 LABEL_CHECK(newlabel, MAGIC_CRED); in test_cred_relabel()
582 struct label *ifplabel, struct label *newlabel) in test_ifnet_check_relabel() argument
587 LABEL_CHECK(newlabel, MAGIC_IFNET); in test_ifnet_check_relabel()
681 struct label *ifplabel, struct label *newlabel) in test_ifnet_relabel() argument
686 LABEL_CHECK(newlabel, MAGIC_IFNET); in test_ifnet_relabel()
1194 struct label *pplabel, struct label *newlabel) in test_pipe_check_relabel() argument
1199 LABEL_CHECK(newlabel, MAGIC_PIPE); in test_pipe_check_relabel()
[all …]