Skip to content

Commit

Permalink
SELinux: drop secondary_ops->sysctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Paris authored and James Morris committed Apr 29, 2009
1 parent 19e4529 commit 88c48db
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1980,10 +1980,6 @@ static int selinux_sysctl(ctl_table *table, int op)
u32 tsid, sid;
int rc;

rc = secondary_ops->sysctl(table, op);
if (rc)
return rc;

sid = current_sid();

rc = selinux_sysctl_get_sid(table, (op == 0001) ?
Expand Down

0 comments on commit 88c48db

Please sign in to comment.