Bug 744453 - SELinux is preventing systemd-logind from 'write' accesses on the chr_file kmsg.
Summary: SELinux is preventing systemd-logind from 'write' accesses on the chr_file kmsg.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard: abrt_hash:fe4ec1285774bb671bd0c7bdaea...
: 744454 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-08 18:57 UTC by Yann Droneaud
Modified: 2011-10-19 04:32 UTC (History)
11 users (show)

Fixed In Version: selinux-policy-3.10.0-40.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-19 04:32:43 UTC
Type: ---


Attachments (Terms of Use)

Description Yann Droneaud 2011-10-08 18:57:48 UTC
libreport version: 2.0.5.982
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc6.git0.3.fc16.x86_64
reason:         SELinux is preventing systemd-logind from 'write' accesses on the chr_file kmsg.
time:           Sat Oct  8 14:57:01 2011

description:
:SELinux is preventing systemd-logind from 'write' accesses on the chr_file kmsg.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that systemd-logind should be allowed write access on the kmsg chr_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:object_r:kmsg_device_t:s0
:Target Objects                kmsg [ chr_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-32.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.1.0-0.rc6.git0.3.fc16.x86_64 #1 SMP Fri Sep 16
:                              12:26:22 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Sat 08 Oct 2011 02:05:25 PM EDT
:Last Seen                     Sat 08 Oct 2011 02:05:25 PM EDT
:Local ID                      a7aa28c9-a0ff-45c7-b5f0-975e4757085c
:
:Raw Audit Messages
:type=AVC msg=audit(1318097125.87:35): avc:  denied  { write } for  pid=842 comm="systemd-logind" name="kmsg" dev=devtmpfs ino=5291 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:kmsg_device_t:s0 tclass=chr_file
:
:
:Hash: systemd-logind,systemd_logind_t,kmsg_device_t,chr_file,write
:
:audit2allow
:
:#============= systemd_logind_t ==============
:allow systemd_logind_t kmsg_device_t:chr_file write;
:
:audit2allow -R
:
:#============= systemd_logind_t ==============
:allow systemd_logind_t kmsg_device_t:chr_file write;
:

Comment 1 Yann Droneaud 2011-10-08 19:00:52 UTC
Error appears just after booting Fedora 16 Beta Live LXDE.

See also bug 744454

Comment 2 Miroslav Grepl 2011-10-10 11:36:10 UTC
*** Bug 744454 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2011-10-10 11:40:03 UTC
Looks like also systemd-logind needs dev_write_kmsg()

Comment 4 Lennart Poettering 2011-10-11 01:06:38 UTC
Yupp.

Comment 5 Miroslav Grepl 2011-10-11 07:47:58 UTC
Fixed in selinux-policy-3.10.0-40.fc16

Comment 6 Fedora Update System 2011-10-14 16:19:27 UTC
selinux-policy-3.10.0-40.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-40.fc16

Comment 7 Fedora Update System 2011-10-15 14:33:04 UTC
Package selinux-policy-3.10.0-40.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-40.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14363
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-10-19 04:32:43 UTC
selinux-policy-3.10.0-40.fc16 has been pushed to the Fedora 16 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.