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

Commit bc055958 authored by James Morris's avatar James Morris
Browse files

selinux: remove unused bprm_check_security hook



Remove unused bprm_check_security hook from SELinux.   This
currently calls into the capabilities hook, which is a noop.

Acked-by: default avatarEric Paris <eparis@redhat.com>
Acked-by: default avatarSerge Hallyn <serue@us.ibm.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent cd89596f
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -2182,11 +2182,6 @@ static int selinux_bprm_set_creds(struct linux_binprm *bprm)
	return 0;
	return 0;
}
}


static int selinux_bprm_check_security(struct linux_binprm *bprm)
{
	return secondary_ops->bprm_check_security(bprm);
}

static int selinux_bprm_secureexec(struct linux_binprm *bprm)
static int selinux_bprm_secureexec(struct linux_binprm *bprm)
{
{
	const struct cred *cred = current_cred();
	const struct cred *cred = current_cred();
@@ -5608,7 +5603,6 @@ static struct security_operations selinux_ops = {
	.netlink_recv =			selinux_netlink_recv,
	.netlink_recv =			selinux_netlink_recv,


	.bprm_set_creds =		selinux_bprm_set_creds,
	.bprm_set_creds =		selinux_bprm_set_creds,
	.bprm_check_security =		selinux_bprm_check_security,
	.bprm_committing_creds =	selinux_bprm_committing_creds,
	.bprm_committing_creds =	selinux_bprm_committing_creds,
	.bprm_committed_creds =		selinux_bprm_committed_creds,
	.bprm_committed_creds =		selinux_bprm_committed_creds,
	.bprm_secureexec =		selinux_bprm_secureexec,
	.bprm_secureexec =		selinux_bprm_secureexec,