Bug 747847 - SELinux is preventing /bin/systemd-tty-ask-password-agent from read access on the fifo_file 136:1
Summary: SELinux is preventing /bin/systemd-tty-ask-password-agent from read access on...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i686
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-21 06:28 UTC by Nayden Isapov
Modified: 2011-10-21 14:03 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.9.16-44.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-21 14:03:40 UTC
Type: ---


Attachments (Terms of Use)

Description Nayden Isapov 2011-10-21 06:28:40 UTC
Description of problem:

If you believe that systemd-tty-ask-password-agent should be allowed read access on the 136:1 fifo_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                unconfined_u:system_r:systemd_passwd_agent_t:s0
Target Context                unconfined_u:object_r:init_var_run_t:s0
Target Objects                136:1 [ fifo_file ]
Source                        systemd-tty-ask
Source Path                   /bin/systemd-tty-ask-password-agent
Port                          <Unknown>
Host                          NeoLaptop
Source RPM Packages           systemd-26-10.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-39.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     NeoLaptop
Platform                      Linux NeoLaptop 2.6.40.6-0.fc15.i686 #1 SMP Tue
                              Oct 4 00:51:19 UTC 2011 i686 i686
Alert Count                   8
First Seen                    Thu 20 Oct 2011 03:50:30 PM EEST
Last Seen                     Fri 21 Oct 2011 09:15:38 AM EEST
Local ID                      4860c938-8a0e-4054-bfdd-a64c37c355ba

Raw Audit Messages
type=AVC msg=audit(1319177738.116:1000): avc:  denied  { read } for  pid=22664 comm="systemd-tty-ask" name="136:1" dev=tmpfs ino=1135720 scontext=unconfined_u:system_r:systemd_passwd_agent_t:s0 tcontext=unconfined_u:object_r:init_var_run_t:s0 tclass=fifo_file


type=AVC msg=audit(1319177738.116:1000): avc:  denied  { open } for  pid=22664 comm="systemd-tty-ask" name="136:1" dev=tmpfs ino=1135720 scontext=unconfined_u:system_r:systemd_passwd_agent_t:s0 tcontext=unconfined_u:object_r:init_var_run_t:s0 tclass=fifo_file


type=SYSCALL msg=audit(1319177738.116:1000): arch=i386 syscall=open success=yes exit=ESRCH a0=9fc6080 a1=88900 a2=0 a3=bfbdbe44 items=0 ppid=22663 pid=22664 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=1 comm=systemd-tty-ask exe=/bin/systemd-tty-ask-password-agent subj=unconfined_u:system_r:systemd_passwd_agent_t:s0 key=(null)

Hash: systemd-tty-ask,systemd_passwd_agent_t,init_var_run_t,fifo_file,read

audit2allow

#============= systemd_passwd_agent_t ==============
allow systemd_passwd_agent_t init_var_run_t:fifo_file { read open };

audit2allow -R

#============= systemd_passwd_agent_t ==============
allow systemd_passwd_agent_t init_var_run_t:fifo_file { read open };




Version-Release number of selected component (if applicable):
selinux-policy-3.9.16-39.fc15.noarch


How reproducible:
restart cups


Steps to Reproduce:
1.sudo service cups restart
  
Actual results:


Expected results:


Additional info:

Comment 1 Miroslav Grepl 2011-10-21 09:23:58 UTC
Fixed in selinux-policy-3.9.16-44.fc15

Comment 2 Nayden Isapov 2011-10-21 10:15:05 UTC
Which repository is this version from. selinux-policy-3.9.16-39 is the latest version from the imported repositories by default + atrpms.

$ sudo yum list *selinux-policy*

Loaded plugins: langpacks, presto, refresh-packagekit
Installed Packages
selinux-policy.noarch                       3.9.16-39.fc15              @updates
selinux-policy-targeted.noarch              3.9.16-39.fc15              @updates
Available Packages
selinux-policy-doc.noarch                   3.9.16-39.fc15              updates 
selinux-policy-minimum.noarch               3.9.16-39.fc15              updates 
selinux-policy-mls.noarch                   3.9.16-39.fc15              updates

Comment 3 Miroslav Grepl 2011-10-21 12:25:18 UTC
Just building a new package.


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