Skip to contentSkip to conversation

SELinux patches for 4.2

GIT PULL Applied Paul Moore 2 participants 4 messages Jun 4, 2015 – Jun 9, 2015 SELinux security module

lore
Share & tools
lore

Paul Moore

author
#0 lore raw

Hi James,

Six SELinux patches for 4.2: two to add better labeling support for three pseudo filesystems, one netlink update, a __flush_signals() removal/fix, and a couple of minor cleanup patches. Nothing too scary or large this time.

All patches pass the SELinux testsuite and the selinux#upstream branch is based on your linux-security#next branch as of about an hour ago.

Enjoy,
-Paul

---
The following changes since commit e6e29a4eae335059d2cc44ac543de7556ff7ac09:

Merge branch 'smack-for-4.2-stacked' of
https://github.com/cschaufler/smack-next into next (2015-06-03 19:10:29 +1000)

are available in the git repository at:

git://git.infradead.org/users/pcmoore/selinux upstream

for you to fetch changes up to 42a9699a9fa179c0054ea3cf5ad3cc67104a6162:

selinux: Remove unused permission definitions (2015-06-04 16:22:17 -0400)

----------------------------------------------------------------
Marek Milkovic (1):
selinux: Print 'sclass' as string when unrecognized netlink message
occurs

Oleg Nesterov (1):
signals: don't abuse __flush_signals() in selinux_bprm_committed_creds()

Stephen Smalley (4):
selinux: update netlink socket classes
selinux: enable per-file labeling for debugfs files.
selinux: enable genfscon labeling for sysfs and pstore files
selinux: Remove unused permission definitions

 include/linux/sched.h               |  1 -
 kernel/signal.c                     | 13 ++-----
 security/selinux/hooks.c            | 76 +++++++++++++++++++++--------------
 security/selinux/include/classmap.h | 44 +++++++++++----------
 security/selinux/include/security.h |  1 +
 5 files changed, 75 insertions(+), 60 deletions(-)
Signature · 2 lines
paul moore
security @ redhat
#1 lore raw
Quoted 9 lines · Paul Moore

Hi James,

Six SELinux patches for 4.2: two to add better labeling support for three pseudo filesystems, one netlink update, a __flush_signals() removal/fix, and a couple of minor cleanup patches. Nothing too scary or large this time.

All patches pass the SELinux testsuite and the selinux#upstream branch is based on your linux-security#next branch as of about an hour ago.

Thanks, pulled.

Signature · 2 lines
James Morris
<[email protected]>
author
#2 lore raw
Quoted 8 lines · James Morris
Quoted 7 lines · Paul Moore

Hi James,

Six SELinux patches for 4.2: two to add better labeling support for three pseudo filesystems, one netlink update, a __flush_signals() removal/fix, and a couple of minor cleanup patches. Nothing too scary or large this time.

Quoted 4 lines
Quoted 2 lines

All patches pass the SELinux testsuite and the selinux#upstream branch is based on your linux-security#next branch as of about an hour ago.

Thanks, pulled.

Hi James,

My apologies, but one more last minute patch that really should go in for v4.2 as it fixes a labeled NFS regression.

-Paul

---
The following changes since commit 42a9699a9fa179c0054ea3cf5ad3cc67104a6162:

selinux: Remove unused permission definitions (2015-06-04 16:22:17 -0400)

are available in the git repository at:

git://git.infradead.org/users/pcmoore/selinux upstream

for you to fetch changes up to 9fc2b4b436cff7d8403034676014f1be9d534942:

selinux: fix setting of security labels on NFS (2015-06-05 14:21:48 -0400)

----------------------------------------------------------------
J. Bruce Fields (1):
selinux: fix setting of security labels on NFS

 security/selinux/hooks.c | 1 +
 1 file changed, 1 insertion(+)
security/selinux/hooks.c +1 -0
index daf59b4..312537d 100644
@@ -403,6 +403,7 @@ static int selinux_is_sblabel_mnt(struct super_block *sb)
        return sbsec->behavior == SECURITY_FS_USE_XATTR ||
                sbsec->behavior == SECURITY_FS_USE_TRANS ||
                sbsec->behavior == SECURITY_FS_USE_TASK ||
+               sbsec->behavior == SECURITY_FS_USE_NATIVE ||
                /* Special handling. Genfs but also in-core setxattr handler 

*/

                !strcmp(sb->s_type->name, "sysfs") ||
                !strcmp(sb->s_type->name, "pstore") ||
Signature · 2 lines
paul moore
security @ redhat
Applied
#3 lore raw
Quoted 12 lines · Paul Moore
Quoted 11 lines · James Morris
Quoted 9 lines · Paul Moore

Hi James,

Six SELinux patches for 4.2: two to add better labeling support for three pseudo filesystems, one netlink update, a __flush_signals() removal/fix, and a couple of minor cleanup patches. Nothing too scary or large this time.

All patches pass the SELinux testsuite and the selinux#upstream branch is based on your linux-security#next branch as of about an hour ago.

Quoted 7 lines
Quoted 1 line

Thanks, pulled.

Hi James,

My apologies, but one more last minute patch that really should go in for v4.2 as it fixes a labeled NFS regression.

Applied.

Quoted 37 lines

-Paul

---
The following changes since commit 42a9699a9fa179c0054ea3cf5ad3cc67104a6162:

selinux: Remove unused permission definitions (2015-06-04 16:22:17 -0400)

are available in the git repository at:

git://git.infradead.org/users/pcmoore/selinux upstream

for you to fetch changes up to 9fc2b4b436cff7d8403034676014f1be9d534942:

selinux: fix setting of security labels on NFS (2015-06-05 14:21:48 -0400)

----------------------------------------------------------------
J. Bruce Fields (1):
selinux: fix setting of security labels on NFS

 security/selinux/hooks.c | 1 +
 1 file changed, 1 insertion(+)
security/selinux/hooks.c +1 -0
index daf59b4..312537d 100644
@@ -403,6 +403,7 @@ static int selinux_is_sblabel_mnt(struct super_block *sb)
        return sbsec->behavior == SECURITY_FS_USE_XATTR ||
                sbsec->behavior == SECURITY_FS_USE_TRANS ||
                sbsec->behavior == SECURITY_FS_USE_TASK ||
+               sbsec->behavior == SECURITY_FS_USE_NATIVE ||
                /* Special handling. Genfs but also in-core setxattr handler 
 */
                !strcmp(sb->s_type->name, "sysfs") ||
                !strcmp(sb->s_type->name, "pstore") ||
Signature · 2 lines
James Morris
<[email protected]>