diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2007-10-25 11:31:11 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2007-10-25 11:31:11 +0000 |
commit | 3f1a7a9086a59e93615bb9e5f6163372cee4d669 (patch) | |
tree | 61b4f64bfe3a4b94291e8d7bf90db127671545c7 /sys/security/mac_none | |
parent | ededffc06bbdd4352d3e959e7b99d59ba2410c9c (diff) | |
download | src-3f1a7a9086a59e93615bb9e5f6163372cee4d669.tar.gz src-3f1a7a9086a59e93615bb9e5f6163372cee4d669.zip |
Consistently name functions for mac_<policy> as <policy>_whatever rather
than mac_<policy>_whatever, as this shortens the names and makes the code
a bit easier to read.
When dealing with label structures, name variables 'mb', 'ml', 'mm rather
than the longer 'mac_biba', 'mac_lomac', and 'mac_mls', likewise making
the code a little easier to read.
Obtained from: TrustedBSD Project
Notes
Notes:
svn path=/head/; revision=172955
Diffstat (limited to 'sys/security/mac_none')
-rw-r--r-- | sys/security/mac_none/mac_none.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/mac_none/mac_none.c b/sys/security/mac_none/mac_none.c index d1036d870472..8577c730be30 100644 --- a/sys/security/mac_none/mac_none.c +++ b/sys/security/mac_none/mac_none.c @@ -48,9 +48,9 @@ #include <security/mac/mac_policy.h> -static struct mac_policy_ops mac_none_ops = +static struct mac_policy_ops none_ops = { }; -MAC_POLICY_SET(&mac_none_ops, mac_none, "TrustedBSD MAC/None", +MAC_POLICY_SET(&none_ops, mac_none, "TrustedBSD MAC/None", MPC_LOADTIME_FLAG_UNLOADOK, NULL); |