lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ