| Summary: | SELinux is preventing /bin/systemd-tty-ask-password-agent from read access on the fifo_file 136:1 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Nayden Isapov <nisapov> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.9.16-44.fc15 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-21 14:03:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Fixed in selinux-policy-3.9.16-44.fc15 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 Just building a new package. |
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: