Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76b01875 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by James Morris
Browse files

rootplug: Remove redundant initialization.



We don't need to explicitly initialize to cap_* because
it will be filled by security_fixup_ops().

Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: default avatarSerge Hallyn <serue@us.ibm.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 2c9e703c
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -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,
};