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.c110 partition_cred_check_relabel(struct ucred *cred, struct label *newlabel) in partition_cred_check_relabel() argument
123 if (SLOT(newlabel) != 0) { in partition_cred_check_relabel()
218 partition_cred_relabel(struct ucred *cred, struct label *newlabel) in partition_cred_relabel() argument
221 if (newlabel != NULL && SLOT(newlabel) != 0) in partition_cred_relabel()
222 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.c250 struct label *newlabel) in mac_socket_relabel() argument
256 newlabel); in mac_socket_relabel()
431 struct label *newlabel) in mac_socket_check_relabel() argument
438 so->so_label, newlabel); in mac_socket_check_relabel()
439 MAC_CHECK_PROBE3(socket_check_relabel, error, cred, so, newlabel); in mac_socket_check_relabel()
H A Dmac_policy.h141 struct label *newlabel);
174 struct label *newlabel);
204 struct label *newlabel);
222 struct label *ifplabel, struct label *newlabel);
328 struct label *newlabel);
344 struct label *oldlabel, struct label *newlabel);
441 struct label *newlabel);
465 struct label *oldlabel, struct label *newlabel);
628 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.h248 int mac_cred_check_relabel(struct ucred *cred, struct label *newlabel);
252 void mac_cred_relabel(struct ucred *cred, struct label *newlabel);
H A Dmac_framework.h713 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.c926 new = SLOT(newlabel); in lomac_cred_check_relabel()
1027 source = SLOT(newlabel); in lomac_cred_relabel()
1115 new = SLOT(newlabel); in lomac_ifnet_check_relabel()
1255 source = SLOT(newlabel); in lomac_ifnet_relabel()
1567 struct label *pplabel, struct label *newlabel) in lomac_pipe_check_relabel() argument
1572 new = SLOT(newlabel); in lomac_pipe_check_relabel()
1652 source = SLOT(newlabel); in lomac_pipe_relabel()
1953 new = SLOT(newlabel); in lomac_socket_check_relabel()
2070 source = SLOT(newlabel); in lomac_socket_relabel()
2494 new = SLOT(newlabel); in lomac_vnode_check_relabel()
[all …]
/freebsd/sys/security/mac_biba/
H A Dmac_biba.c831 new = SLOT(newlabel); in biba_cred_check_relabel()
932 source = SLOT(newlabel); in biba_cred_relabel()
1020 new = SLOT(newlabel); in biba_ifnet_check_relabel()
1130 source = SLOT(newlabel); in biba_ifnet_relabel()
1483 struct label *pplabel, struct label *newlabel) in biba_pipe_check_relabel() argument
1488 new = SLOT(newlabel); in biba_pipe_check_relabel()
1586 source = SLOT(newlabel); in biba_pipe_relabel()
2157 new = SLOT(newlabel); in biba_socket_check_relabel()
2274 source = SLOT(newlabel); in biba_socket_relabel()
3225 new = SLOT(newlabel); in biba_vnode_check_relabel()
[all …]
/freebsd/sys/security/mac_stub/
H A Dmac_stub.c200 stub_cred_check_relabel(struct ucred *cred, struct label *newlabel) in stub_cred_check_relabel() argument
313 stub_cred_relabel(struct ucred *cred, struct label *newlabel) in stub_cred_relabel() argument
373 struct label *ifplabel, struct label *newlabel) in stub_ifnet_check_relabel() argument
402 struct label *ifplabel, struct label *newlabel) in stub_ifnet_relabel() argument
647 struct label *pplabel, struct label *newlabel) in stub_pipe_check_relabel() argument
678 struct label *pplabel, struct label *newlabel) in stub_pipe_relabel() argument
982 struct label *solabel, struct label *newlabel) in stub_socket_check_relabel() argument
1071 struct label *solabel, struct label *newlabel) in stub_socket_relabel() argument
1527 struct label *vplabel, struct label *newlabel) in stub_vnode_check_relabel() argument
/freebsd/sys/security/mac_mls/
H A Dmac_mls.c796 new = SLOT(newlabel); in mls_cred_check_relabel()
896 source = SLOT(newlabel); in mls_cred_relabel()
986 new = SLOT(newlabel); in mls_ifnet_check_relabel()
1052 source = SLOT(newlabel); in mls_ifnet_relabel()
1379 struct label *pplabel, struct label *newlabel) in mls_pipe_check_relabel() argument
1384 new = SLOT(newlabel); in mls_pipe_check_relabel()
1478 struct label *pplabel, struct label *newlabel) in mls_pipe_relabel() argument
1482 source = SLOT(newlabel); in mls_pipe_relabel()
1865 new = SLOT(newlabel); in mls_socket_check_relabel()
1982 source = SLOT(newlabel); in mls_socket_relabel()
[all …]
/freebsd/sys/security/mac_test/
H A Dmac_test.c222 LABEL_CHECK(newlabel, MAGIC_CRED); in test_cred_check_relabel()
452 LABEL_CHECK(newlabel, MAGIC_CRED); in test_cred_relabel()
558 struct label *ifplabel, struct label *newlabel) in test_ifnet_check_relabel() argument
563 LABEL_CHECK(newlabel, MAGIC_IFNET); in test_ifnet_check_relabel()
662 LABEL_CHECK(newlabel, MAGIC_IFNET); in test_ifnet_relabel()
1170 struct label *pplabel, struct label *newlabel) in test_pipe_check_relabel() argument
1175 LABEL_CHECK(newlabel, MAGIC_PIPE); in test_pipe_check_relabel()
1278 LABEL_CHECK(newlabel, MAGIC_PIPE); in test_pipe_relabel()
1751 LABEL_CHECK(newlabel, MAGIC_SOCKET); in test_socket_check_relabel()
1909 LABEL_CHECK(newlabel, MAGIC_SOCKET); in test_socket_relabel()
[all …]