summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-10-21 17:05:48 +0000
committerrwatson <rwatson@FreeBSD.org>2002-10-21 17:05:48 +0000
commit25b8d9a4ba7701e48768e7915b5db5e2e616a9ea (patch)
treecea6358d269e4bdf119ec729a6947a5c9282e1a6 /sys/security
parent92611f31b9203b68125838ed88e8dba6eeff9f5a (diff)
downloadFreeBSD-src-25b8d9a4ba7701e48768e7915b5db5e2e616a9ea.zip
FreeBSD-src-25b8d9a4ba7701e48768e7915b5db5e2e616a9ea.tar.gz
Synchonize variable spelling with the MAC tree: we shortened some of
the names. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/mac_biba/mac_biba.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c
index 17c61df..e2a2ec3 100644
--- a/sys/security/mac_biba/mac_biba.c
+++ b/sys/security/mac_biba/mac_biba.c
@@ -107,11 +107,10 @@ SYSCTL_INT(_security_mac_biba, OID_AUTO, ptys_equal, CTLFLAG_RW,
&ptys_equal, 0, "Label pty devices as biba/equal on create");
TUNABLE_INT("security.mac.biba.ptys_equal", &ptys_equal);
-static int mac_biba_revocation_enabled = 0;
+static int revocation_enabled = 0;
SYSCTL_INT(_security_mac_biba, OID_AUTO, revocation_enabled, CTLFLAG_RW,
- &mac_biba_revocation_enabled, 0, "Revoke access to objects on relabel");
-TUNABLE_INT("security.mac.biba.revocation_enabled",
- &mac_biba_revocation_enabled);
+ &revocation_enabled, 0, "Revoke access to objects on relabel");
+TUNABLE_INT("security.mac.biba.revocation_enabled", &revocation_enabled);
static int mac_biba_slot;
#define SLOT(l) ((struct mac_biba *)LABEL_TO_SLOT((l), mac_biba_slot).l_ptr)
@@ -267,7 +266,7 @@ mac_biba_contains_equal(struct mac_biba *mac_biba)
if (mac_biba->mb_rangelow.mbe_type == MAC_BIBA_TYPE_EQUAL)
return (1);
if (mac_biba->mb_rangehigh.mbe_type == MAC_BIBA_TYPE_EQUAL)
- return (1);
+ return (1);
}
return (0);
@@ -1703,7 +1702,7 @@ mac_biba_check_vnode_mmap(struct ucred *cred, struct vnode *vp,
* Rely on the use of open()-time protections to handle
* non-revocation cases.
*/
- if (!mac_biba_enabled || !mac_biba_revocation_enabled)
+ if (!mac_biba_enabled || !revocation_enabled)
return (0);
subj = SLOT(&cred->cr_label);
@@ -1752,7 +1751,7 @@ mac_biba_check_vnode_poll(struct ucred *active_cred, struct ucred *file_cred,
{
struct mac_biba *subj, *obj;
- if (!mac_biba_enabled || !mac_biba_revocation_enabled)
+ if (!mac_biba_enabled || !revocation_enabled)
return (0);
subj = SLOT(&active_cred->cr_label);
@@ -1770,7 +1769,7 @@ mac_biba_check_vnode_read(struct ucred *active_cred, struct ucred *file_cred,
{
struct mac_biba *subj, *obj;
- if (!mac_biba_enabled || !mac_biba_revocation_enabled)
+ if (!mac_biba_enabled || !revocation_enabled)
return (0);
subj = SLOT(&active_cred->cr_label);
@@ -2072,7 +2071,7 @@ mac_biba_check_vnode_write(struct ucred *active_cred,
{
struct mac_biba *subj, *obj;
- if (!mac_biba_enabled || !mac_biba_revocation_enabled)
+ if (!mac_biba_enabled || !revocation_enabled)
return (0);
subj = SLOT(&active_cred->cr_label);
OpenPOWER on IntegriCloud