Bug 787220

Summary: SELinux is preventing systemd-logind from 'open' accesses on the file sessionid.
Product: [Fedora] Fedora Reporter: eric
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, ehud.kaldor, mgrepl, redhat
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f15c486d8e0511db84b75b72a7d8b4e445a7d065b674a57eda00b17bdecc47f7
Fixed In Version: selinux-policy-3.10.0-80.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-24 00:39:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description eric 2012-02-03 15:35:13 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.x86_64
reason:         SELinux is preventing systemd-logind from 'open' accesses on the file sessionid.
time:           Fri 03 Feb 2012 10:34:49 AM EST

description:
:SELinux is preventing systemd-logind from 'open' accesses on the file sessionid.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that systemd-logind should be allowed open access on the sessionid 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:
:# grep systemd-logind /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:systemd_logind_t:s0
:Target Context                system_u:system_r:system_cronjob_t:s0-s0:c0.c1023
:Target Objects                sessionid [ file ]
:Source                        systemd-logind
:Source Path                   systemd-logind
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-74.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.2.2-1.fc16.x86_64 #1 SMP Thu Jan 26 03:21:58 UTC
:                              2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Fri 03 Feb 2012 10:34:04 AM EST
:Last Seen                     Fri 03 Feb 2012 10:34:04 AM EST
:Local ID                      e12197f4-2314-4f9d-b4d2-384154289d9e
:
:Raw Audit Messages
:type=AVC msg=audit(1328283244.558:237): avc:  denied  { open } for  pid=1098 comm="systemd-logind" name="sessionid" dev=proc ino=371793 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 tclass=file
:
:
:Hash: systemd-logind,systemd_logind_t,system_cronjob_t,file,open
:
:audit2allow
:
:#============= systemd_logind_t ==============
:allow systemd_logind_t system_cronjob_t:file open;
:
:audit2allow -R
:
:#============= systemd_logind_t ==============
:allow systemd_logind_t system_cronjob_t:file open;
:

Comment 1 eric 2012-02-03 15:38:50 UTC
I don't know if this should be allowed or not...

Comment 2 Daniel Walsh 2012-02-03 16:08:46 UTC
I would guess that systemd_logind is running through the list of all processes reading their sessionid, so I think we should allow it.

Comment 3 Fedora Update System 2012-02-29 09:34:21 UTC
selinux-policy-3.10.0-78.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-78.fc16

Comment 4 Fedora Update System 2012-03-01 09:25:20 UTC
Package selinux-policy-3.10.0-78.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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.10.0-78.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2733/selinux-policy-3.10.0-78.fc16
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-03-21 02:27:11 UTC
Package selinux-policy-3.10.0-80.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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.10.0-80.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2733/selinux-policy-3.10.0-80.fc16
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-03-24 00:39:25 UTC
selinux-policy-3.10.0-80.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.