Bug 1442388 - SELinux is preventing groupadd from using the 'net_admin' capabilities.
Summary: SELinux is preventing groupadd from using the 'net_admin' capabilities.
Keywords:
Status: CLOSED DUPLICATE of bug 1416964
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f04853284d36368a5ea00115b9a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-14 13:12 UTC by Jackneill
Modified: 2017-04-17 18:34 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-04-17 18:34:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jackneill 2017-04-14 13:12:52 UTC
Description of problem:
sudo dnf install @cinnamon-desktop-environment
and
sudo dnf install @kde-desktop-envionment
on a fresh rawhide install.
SELinux is preventing groupadd from using the 'net_admin' capabilities.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that groupadd should have the net_admin capability by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'groupadd' --raw | audit2allow -M my-groupadd
# semodule -X 300 -i my-groupadd.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c102
                              3
Target Context                unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c102
                              3
Target Objects                Unknown [ capability ]
Source                        groupadd
Source Path                   groupadd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-249.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.0-0.rc6.git2.1.fc27.x86_64 #1
                              SMP Wed Apr 12 14:45:06 UTC 2017 x86_64 x86_64
Alert Count                   6
First Seen                    2017-04-14 14:52:13 CEST
Last Seen                     2017-04-14 15:06:32 CEST
Local ID                      dcfc2817-68d0-4142-ab97-5c4ed83c1430

Raw Audit Messages
type=AVC msg=audit(1492175192.264:409): avc:  denied  { net_admin } for  pid=7845 comm="groupadd" capability=12  scontext=unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c1023 tclass=capability permissive=0


Hash: groupadd,groupadd_t,groupadd_t,capability,net_admin

Version-Release number of selected component:
selinux-policy-3.13.1-249.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.0-0.rc6.git2.1.fc27.x86_64
type:           libreport

Potential duplicate: bug 1416964

Comment 1 Lukas Vrabec 2017-04-17 18:34:32 UTC

*** This bug has been marked as a duplicate of bug 1416964 ***


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