Skip to content

Commit

Permalink
rootplug: Remove redundant initialization.
Browse files Browse the repository at this point in the history
We don't need to explicitly initialize to cap_* because
it will be filled by security_fixup_ops().

Signed-off-by: Tetsuo Handa <[email protected]>
Acked-by: Serge Hallyn <[email protected]>
Signed-off-by: James Morris <[email protected]>
  • Loading branch information
Tetsuo Handa authored and James Morris committed May 27, 2009
1 parent 2c9e703 commit 76b0187
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions security/root_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,6 @@ static int rootplug_bprm_check_security (struct linux_binprm *bprm)
}

static struct security_operations rootplug_security_ops = {
/* Use the capability functions for some of the hooks */
.ptrace_may_access = cap_ptrace_may_access,
.ptrace_traceme = cap_ptrace_traceme,
.capget = cap_capget,
.capset = cap_capset,
.capable = cap_capable,

.bprm_set_creds = cap_bprm_set_creds,

.task_fix_setuid = cap_task_fix_setuid,
.task_prctl = cap_task_prctl,

.bprm_check_security = rootplug_bprm_check_security,
};

Expand Down

0 comments on commit 76b0187

Please sign in to comment.