Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1672963

[PATCH 3/3] Enable security.selinux in user namespaces

From Stefan Berger <stefanb@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject [PATCH 3/3] Enable security.selinux in user namespaces
Date 2017-06-22 21:10 +0200
Message-ID <tVfEl-nS-13@gated-at.bofh.it> (permalink)
References <tVfEl-nS-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Before the current modifications, SELinux extended attributes were
visible inside the user namespace but changes in patch 1 hid them.
This patch enables security.selinux in user namespaces and allows
them to be written to in the same way as security.capability.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
---
 fs/xattr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/xattr.c b/fs/xattr.c
index 045be85..37686ee 100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
@@ -138,6 +138,7 @@ xattr_permission(struct inode *inode, const char *name, int mask)
  */
 static const char *const userns_xattrs[] = {
 	XATTR_NAME_CAPS,
+	XATTR_NAME_SELINUX,
 	NULL
 };
 
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 3/3] Enable security.selinux in user namespaces Stefan Berger <stefanb@linux.vnet.ibm.com> - 2017-06-22 21:10 +0200
  Re: [PATCH 3/3] Enable security.selinux in user namespaces Stephen Smalley <sds@tycho.nsa.gov> - 2017-06-23 22:30 +0200
    Re: [PATCH 3/3] Enable security.selinux in user namespaces Stefan Berger <stefanb@linux.vnet.ibm.com> - 2017-06-24 01:50 +0200

csiph-web