Bug 955386 - SELinux is preventing /usr/bin/systemd-tty-ask-password-agent from 'write' accesses on the chr_file kmsg.
Summary: SELinux is preventing /usr/bin/systemd-tty-ask-password-agent from 'write' ac...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:bab4b185544b294a9f38de1d141...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-22 23:46 UTC by Moez Roy
Modified: 2013-04-27 23:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-27 23:53:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Moez Roy 2013-04-22 23:46:38 UTC
Description of problem:
SELinux is preventing /usr/bin/systemd-tty-ask-password-agent from 'write' accesses on the chr_file kmsg.

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

If you believe that systemd-tty-ask-password-agent 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-tty-ask /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:systemd_passwd_agent_t:s0
Target Context                system_u:object_r:kmsg_device_t:s0
Target Objects                kmsg [ chr_file ]
Source                        systemd-tty-ask
Source Path                   /usr/bin/systemd-tty-ask-password-agent
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-201-2.fc18.5.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-91.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.8-202.fc18.x86_64 #1 SMP Wed
                              Apr 17 23:25:17 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-04-22 16:22:00 PDT
Last Seen                     2013-04-22 16:22:00 PDT
Local ID                      443c7ed8-6bbf-4fbe-9ed7-389105498717

Raw Audit Messages
type=AVC msg=audit(1366672920.857:181): avc:  denied  { write } for  pid=907 comm="systemd-tty-ask" name="kmsg" dev="devtmpfs" ino=1034 scontext=system_u:system_r:systemd_passwd_agent_t:s0 tcontext=system_u:object_r:kmsg_device_t:s0 tclass=chr_file


type=SYSCALL msg=audit(1366672920.857:181): arch=x86_64 syscall=open success=no exit=EACCES a0=7f40a46e5134 a1=80101 a2=1d a3=7fff339e03c8 items=0 ppid=1 pid=907 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=systemd-tty-ask exe=/usr/bin/systemd-tty-ask-password-agent subj=system_u:system_r:systemd_passwd_agent_t:s0 key=(null)

Hash: systemd-tty-ask,systemd_passwd_agent_t,kmsg_device_t,chr_file,write

audit2allow

#============= systemd_passwd_agent_t ==============
allow systemd_passwd_agent_t kmsg_device_t:chr_file write;

audit2allow -R
require {
	type systemd_passwd_agent_t;
}

#============= systemd_passwd_agent_t ==============
dev_write_kmsg(systemd_passwd_agent_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.8-202.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-04-23 08:24:25 UTC
Fixed in  selinux-policy-3.11.1-92.fc18.noarch

Comment 2 Fedora Update System 2013-04-26 13:06:11 UTC
selinux-policy-3.11.1-92.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-92.fc18

Comment 3 Fedora Update System 2013-04-27 00:16:42 UTC
Package selinux-policy-3.11.1-92.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-92.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-6769/selinux-policy-3.11.1-92.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-04-27 23:53:32 UTC
selinux-policy-3.11.1-92.fc18 has been pushed to the Fedora 18 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.