[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20170125151654.02960975@canb.auug.org.au>
Date: Wed, 25 Jan 2017 15:16:54 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: "Eric W. Biederman" <ebiederm@...ssion.com>,
Paul Moore <paul@...l-moore.com>
Cc: linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
Stephen Smalley <sds@...ho.nsa.gov>
Subject: linux-next: manual merge of the userns tree with the selinux tree
Hi Eric,
Today's linux-next merge of the userns tree got a conflict in:
security/selinux/hooks.c
between commit:
be0554c9bf9f ("selinux: clean up cred usage and simplify")
from the selinux tree and commit:
9227dd2a84a7 ("exec: Remove LSM_UNSAFE_PTRACE_CAP")
from the userns tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
--
Cheers,
Stephen Rothwell
diff --cc security/selinux/hooks.c
index 0d24eb2325d2,cece6fe55f02..000000000000
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@@ -2397,9 -2404,8 +2397,8 @@@ static int selinux_bprm_set_creds(struc
/* Make sure that anyone attempting to ptrace over a task that
* changes its SID has the appropriate permit */
- if (bprm->unsafe &
- (LSM_UNSAFE_PTRACE | LSM_UNSAFE_PTRACE_CAP)) {
+ if (bprm->unsafe & LSM_UNSAFE_PTRACE) {
- u32 ptsid = ptrace_parent_sid(current);
+ u32 ptsid = ptrace_parent_sid();
if (ptsid != 0) {
rc = avc_has_perm(ptsid, new_tsec->sid,
SECCLASS_PROCESS,
Powered by blists - more mailing lists