Bug 1046918 - SELinux is preventing /usr/lib/systemd/systemd-sysctl from using the 'sys_admin' capabilities.
Summary: SELinux is preventing /usr/lib/systemd/systemd-sysctl from using the 'sys_adm...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b00fadefac5ba31a26efbd892db...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-27 11:42 UTC by Thomas Meyer
Modified: 2014-01-16 07:11 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-116.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-16 07:11:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thomas Meyer 2013-12-27 11:42:19 UTC
Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-sysctl from using the 'sys_admin' capabilities.

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

If sie denken, dass systemd-sysctl standardmäßig sys_admin Berechtigung haben sollten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# grep systemd-sysctl /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:systemd_sysctl_t:s0
Target Context                system_u:system_r:systemd_sysctl_t:s0
Target Objects                 [ capability ]
Source                        systemd-sysctl
Source Path                   /usr/lib/systemd/systemd-sysctl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-208-9.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.6 #11 PREEMPT Fri Dec 20
                              21:18:57 CET 2013 x86_64 x86_64
Alert Count                   49
First Seen                    2013-12-22 16:26:36 CET
Last Seen                     2013-12-27 12:17:21 CET
Local ID                      aba76320-05ef-424d-963e-578d174ab808

Raw Audit Messages
type=AVC msg=audit(1388143041.901:1159): avc:  denied  { sys_admin } for  pid=3435 comm="systemd-sysctl" capability=21  scontext=system_u:system_r:systemd_sysctl_t:s0 tcontext=system_u:system_r:systemd_sysctl_t:s0 tclass=capability


type=SYSCALL msg=audit(1388143041.901:1159): arch=x86_64 syscall=write success=no exit=EPERM a0=4 a1=7f169972a000 a2=2 a3=22 items=0 ppid=1 pid=3435 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=systemd-sysctl exe=/usr/lib/systemd/systemd-sysctl subj=system_u:system_r:systemd_sysctl_t:s0 key=(null)

Hash: systemd-sysctl,systemd_sysctl_t,systemd_sysctl_t,capability,sys_admin

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.6
type:           libreport

Comment 1 Daniel Walsh 2014-01-03 19:33:35 UTC
b7452dafd05630cd61644ee8b4a9b83e0d3e8f9f fixes this in git.

Comment 2 Lukas Vrabec 2014-01-04 00:08:05 UTC
back ported.

Comment 3 Fedora Update System 2014-01-13 22:57:15 UTC
selinux-policy-3.12.1-116.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-116.fc20

Comment 4 Fedora Update System 2014-01-15 05:58:46 UTC
Package selinux-policy-3.12.1-116.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-116.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0806/selinux-policy-3.12.1-116.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-01-16 07:11:47 UTC
selinux-policy-3.12.1-116.fc20 has been pushed to the Fedora 20 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.