RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1480518 - Define nnp_nosuid_transition policy capability
Summary: Define nnp_nosuid_transition policy capability
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.5
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
Mirek Jahoda
Depends On:
Blocks: 1480519 1480521 1490330 1594111
TreeView+ depends on / blocked
Reported: 2017-08-11 09:57 UTC by Lukas Vrabec
Modified: 2018-06-22 06:52 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-3.13.1-175.el7
Doc Type: Enhancement
Doc Text:
SELinux now supports *systemd* `No New Privileges` This update introduces the `nnp_nosuid_transition` policy capability that enables SELinux domain transitions under `No New Privileges` (NNP) or `nosuid` if `nnp_nosuid_transition` is allowed between the old and new contexts. The _selinux-policy_ packages now contain a policy for *systemd* services that use the `NNP` security feature. The following rule describes allowing this capability for a service: allow source_domain target_type:process2 { nnp_transition nosuid_transition }; For example: allow init_t fprintd_t:process2 { nnp_transition nosuid_transition }; The distribution policy now also contains the m4 macro interface, which can be used in SELinux security policies for services that use the `init_nnp_daemon_domain()` function.
Clone Of:
: 1480519 1480521 1594111 (view as bug list)
Last Closed: 2018-04-10 12:36:40 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0763 0 None None None 2018-04-10 12:37:47 UTC

Description Lukas Vrabec 2017-08-11 09:57:25 UTC
Define the nnp_nosuid_transition policy capability used to enable SELinux domain transitions under NNP or nosuid if the nnp_transition permission or nosuid_transition permission is allowed between the old and new contexts. When this capability is not enabled, such transitions remain limited to bounded transitions as they were prior to the introduction of this capability.

This feature allows us to create SELinux security policy for systemd services with systemd security feature called: NoNewPrivileges. 

Affected RHEL components: kernel, libsepol, selinux-policy

Comment 2 Lukas Vrabec 2017-08-11 10:00:01 UTC
Following commits needs to be backported from Fedora Rawhide:
commit aba089a03c5bc225b4643142dbeca0fc4522c685
Author: Chris PeBenito <pebenito>
Date:   Sat Aug 5 12:22:05 2017 -0400

    init: Add NoNewPerms support for systemd.

commit ba9f3ac2bfe2e131a5bd7e8a75c0e70386cc5d43
Author: Chris PeBenito <pebenito>
Date:   Sat Aug 5 12:13:21 2017 -0400

    Add nnp_nosuid_transition policycap and related class/perm definitions.

Comment 9 errata-xmlrpc 2018-04-10 12:36:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.