Преглед изворни кода

SELinux: drop secondary_ops->sysctl

We are still calling secondary_ops->sysctl even though the capabilities
module does not define a sysctl operation.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by:  Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
Eric Paris пре 16 година
родитељ
комит
88c48db978
1 измењених фајлова са 0 додато и 4 уклоњено
  1. 0 4
      security/selinux/hooks.c

+ 0 - 4
security/selinux/hooks.c

@@ -1980,10 +1980,6 @@ static int selinux_sysctl(ctl_table *table, int op)
 	u32 tsid, sid;
 	u32 tsid, sid;
 	int rc;
 	int rc;
 
 
-	rc = secondary_ops->sysctl(table, op);
-	if (rc)
-		return rc;
-
 	sid = current_sid();
 	sid = current_sid();
 
 
 	rc = selinux_sysctl_get_sid(table, (op == 0001) ?
 	rc = selinux_sysctl_get_sid(table, (op == 0001) ?