|
@@ -738,7 +738,7 @@ __setup("apparmor=", apparmor_enabled_setup);
|
|
|
/* set global flag turning off the ability to load policy */
|
|
|
static int param_set_aalockpolicy(const char *val, const struct kernel_param *kp)
|
|
|
{
|
|
|
- if (!policy_admin_capable())
|
|
|
+ if (!policy_admin_capable(NULL))
|
|
|
return -EPERM;
|
|
|
return param_set_bool(val, kp);
|
|
|
}
|
|
@@ -752,7 +752,7 @@ static int param_get_aalockpolicy(char *buffer, const struct kernel_param *kp)
|
|
|
|
|
|
static int param_set_aabool(const char *val, const struct kernel_param *kp)
|
|
|
{
|
|
|
- if (!policy_admin_capable())
|
|
|
+ if (!policy_admin_capable(NULL))
|
|
|
return -EPERM;
|
|
|
return param_set_bool(val, kp);
|
|
|
}
|
|
@@ -766,7 +766,7 @@ static int param_get_aabool(char *buffer, const struct kernel_param *kp)
|
|
|
|
|
|
static int param_set_aauint(const char *val, const struct kernel_param *kp)
|
|
|
{
|
|
|
- if (!policy_admin_capable())
|
|
|
+ if (!policy_admin_capable(NULL))
|
|
|
return -EPERM;
|
|
|
return param_set_uint(val, kp);
|
|
|
}
|
|
@@ -792,7 +792,7 @@ static int param_get_audit(char *buffer, struct kernel_param *kp)
|
|
|
static int param_set_audit(const char *val, struct kernel_param *kp)
|
|
|
{
|
|
|
int i;
|
|
|
- if (!policy_admin_capable())
|
|
|
+ if (!policy_admin_capable(NULL))
|
|
|
return -EPERM;
|
|
|
|
|
|
if (!apparmor_enabled)
|
|
@@ -813,7 +813,7 @@ static int param_set_audit(const char *val, struct kernel_param *kp)
|
|
|
|
|
|
static int param_get_mode(char *buffer, struct kernel_param *kp)
|
|
|
{
|
|
|
- if (!policy_admin_capable())
|
|
|
+ if (!policy_view_capable(NULL))
|
|
|
return -EPERM;
|
|
|
|
|
|
if (!apparmor_enabled)
|
|
@@ -825,7 +825,7 @@ static int param_get_mode(char *buffer, struct kernel_param *kp)
|
|
|
static int param_set_mode(const char *val, struct kernel_param *kp)
|
|
|
{
|
|
|
int i;
|
|
|
- if (!policy_admin_capable())
|
|
|
+ if (!policy_admin_capable(NULL))
|
|
|
return -EPERM;
|
|
|
|
|
|
if (!apparmor_enabled)
|