Bug 1442387 - SELinux is preventing groupadd from 'write' accesses on the sock_file system_bus_socket.
Summary: SELinux is preventing groupadd from 'write' accesses on the sock_file system_...
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:60453175b0e3e7bf6c41535a7cd...
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-14 13:10 UTC by Jackneill
Modified: 2017-10-31 15:34 UTC (History)
7 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2017-10-31 15:34:56 UTC


Attachments (Terms of Use)

Description Jackneill 2017-04-14 13:10:46 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 'write' accesses on the sock_file system_bus_socket.

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

If you believe that groupadd should be allowed write access on the system_bus_socket sock_file 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                system_u:object_r:system_dbusd_var_run_t:s0
Target Objects                system_bus_socket [ sock_file ]
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                   4
First Seen                    2017-04-14 14:52:13 CEST
Last Seen                     2017-04-14 15:06:32 CEST
Local ID                      f3475643-2f76-46a0-8abe-6fd794efbd6b

Raw Audit Messages
type=AVC msg=audit(1492175192.264:410): avc:  denied  { write } for  pid=7845 comm="groupadd" name="system_bus_socket" dev="tmpfs" ino=790 scontext=unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:system_dbusd_var_run_t:s0 tclass=sock_file permissive=0


Hash: groupadd,groupadd_t,system_dbusd_var_run_t,sock_file,write

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 1416963

Comment 1 Jackneill 2017-04-14 13:36:13 UTC
Description of problem:
install cinnamon and kde desktop environments on a fresh rawhide install.

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

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

Comment 2 Jackneill 2017-04-14 13:55:40 UTC
Description of problem:
tried to add a user

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

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

Comment 3 Jan Kurik 2017-08-15 08:52:11 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 4 Fedora Update System 2017-10-25 10:12:01 UTC
selinux-policy-3.13.1-283.13.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b5e9ce60d2

Comment 5 Fedora Update System 2017-10-27 18:45:12 UTC
selinux-policy-3.13.1-283.14.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-b5e9ce60d2

Comment 6 Fedora Update System 2017-10-31 15:34:56 UTC
selinux-policy-3.13.1-283.14.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


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