Rename mac_partition_enabled to partition_enabled to synchronize with
other policies that similarly now avoid the additional mac_ prefix on variables. MFC after: soon
This commit is contained in:
parent
4e9469a6c7
commit
7b3a18a595
@ -61,9 +61,9 @@ SYSCTL_DECL(_security_mac);
|
||||
SYSCTL_NODE(_security_mac, OID_AUTO, partition, CTLFLAG_RW, 0,
|
||||
"TrustedBSD mac_partition policy controls");
|
||||
|
||||
static int mac_partition_enabled = 1;
|
||||
static int partition_enabled = 1;
|
||||
SYSCTL_INT(_security_mac_partition, OID_AUTO, enabled, CTLFLAG_RW,
|
||||
&mac_partition_enabled, 0, "Enforce partition policy");
|
||||
&partition_enabled, 0, "Enforce partition policy");
|
||||
|
||||
static int partition_slot;
|
||||
#define SLOT(l) mac_label_get((l), partition_slot)
|
||||
@ -73,7 +73,7 @@ static int
|
||||
label_on_label(struct label *subject, struct label *object)
|
||||
{
|
||||
|
||||
if (mac_partition_enabled == 0)
|
||||
if (partition_enabled == 0)
|
||||
return (0);
|
||||
|
||||
if (SLOT(subject) == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user