summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-10-28 19:17:39 +0000
committerrwatson <rwatson@FreeBSD.org>2002-10-28 19:17:39 +0000
commit9c894a8e1c2903197c3972e32d0eb325aaa69931 (patch)
tree142c016259db2921edb778e755f02023b05d26c0 /sys
parent1295b8ff0f61705610f25234b7b937a3b71c9a85 (diff)
downloadFreeBSD-src-9c894a8e1c2903197c3972e32d0eb325aaa69931.zip
FreeBSD-src-9c894a8e1c2903197c3972e32d0eb325aaa69931.tar.gz
Rename mac_biba_subject_equal_ok() to mac_biba_subject_privileged()
to evolve the notion of Biba privilege a bit. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys')
-rw-r--r--sys/security/mac_biba/mac_biba.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c
index 5005843..5262825 100644
--- a/sys/security/mac_biba/mac_biba.c
+++ b/sys/security/mac_biba/mac_biba.c
@@ -312,12 +312,12 @@ mac_biba_contains_equal(struct mac_biba *mac_biba)
}
static int
-mac_biba_subject_equal_ok(struct mac_biba *mac_biba)
+mac_biba_subject_privileged(struct mac_biba *mac_biba)
{
KASSERT((mac_biba->mb_flags & MAC_BIBA_FLAGS_BOTH) ==
MAC_BIBA_FLAGS_BOTH,
- ("mac_biba_subject_equal_ok: subject doesn't have both labels"));
+ ("mac_biba_subject_privileged: subject doesn't have both labels"));
/* If the single is EQUAL, it's ok. */
if (mac_biba->mb_single.mbe_type == MAC_BIBA_TYPE_EQUAL)
@@ -1476,7 +1476,7 @@ mac_biba_check_cred_relabel(struct ucred *cred, struct label *newlabel)
* their label.
*/
if (mac_biba_contains_equal(new)) {
- error = mac_biba_subject_equal_ok(subj);
+ error = mac_biba_subject_privileged(subj);
if (error)
return (error);
}
@@ -1673,7 +1673,7 @@ mac_biba_check_pipe_relabel(struct ucred *cred, struct pipe *pipe,
* subject must have appropriate privilege.
*/
if (mac_biba_contains_equal(new)) {
- error = mac_biba_subject_equal_ok(subj);
+ error = mac_biba_subject_privileged(subj);
if (error)
return (error);
}
@@ -1835,7 +1835,7 @@ mac_biba_check_socket_relabel(struct ucred *cred, struct socket *socket,
* the subject must have appropriate privilege.
*/
if (mac_biba_contains_equal(new)) {
- error = mac_biba_subject_equal_ok(subj);
+ error = mac_biba_subject_privileged(subj);
if (error)
return (error);
}
@@ -2221,7 +2221,7 @@ mac_biba_check_vnode_relabel(struct ucred *cred, struct vnode *vp,
* the subject must have appropriate privilege.
*/
if (mac_biba_contains_equal(new)) {
- error = mac_biba_subject_equal_ok(subj);
+ error = mac_biba_subject_privileged(subj);
if (error)
return (error);
}
OpenPOWER on IntegriCloud