Bug 570210
Summary: | SELinux is preventing /bin/ps "read" access on stat. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matt Castelein <matt.castelein> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 12 | CC: | dwalsh, eparis, jfrieben, jmorris, linux, mgrepl, sdsmall |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | setroubleshoot_trace_hash:591d4aa829ba67618f7dd6de5c7b4176163a4c0f393aa82e83b2eec82d2028f4 | ||
Fixed In Version: | selinux-policy-3.6.32-99.fc12 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-03-12 04:24:35 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matt Castelein
2010-03-03 16:13:24 UTC
In enforcing mode this would not happen since the listing would have been blocked. But Miroslav add domain_dontaudit_read_all_domains_state(ipsec_mgmt_t) Fixed in selinux-policy-3.6.32-98.fc12 selinux-policy-3.6.32-99.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-99.fc12 selinux-policy-3.6.32-99.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-99.fc12 selinux-policy-3.6.32-99.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. What about: SELinux is preventing /bin/ps "sys_ptrace" access . Detailed Description: [SELinux is in permissive mode. This access was not denied.] SELinux denied access requested by ps. It is not expected that this access is required by ps and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access. Allowing Access: You can generate a local policy module to allow this access - see FAQ (http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug report. Additional Information: Source Context unconfined_u:system_r:ipsec_mgmt_t:s0 Target Context unconfined_u:system_r:ipsec_mgmt_t:s0 Target Objects None [ capability ] Source ps Source Path /bin/ps Port <Unknown> Host (removed) Source RPM Packages procps-3.2.8-3.fc12 Target RPM Packages Policy RPM selinux-policy-3.6.32-99.fc12 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Plugin Name catchall Host Name (removed) Platform Linux (removed) 2.6.32.9-70.fc12.x86_64 #1 SMP Wed Mar 3 04:40:41 UTC 2010 x86_64 x86_64 Alert Count 2 First Seen Fri 12 Mar 2010 02:07:52 PM EST Last Seen Fri 12 Mar 2010 02:07:52 PM EST Local ID d6d71105-044a-4bc2-8410-25b858699f6b Line Numbers Raw Audit Messages node=(removed) type=AVC msg=audit(1268420872.140:240): avc: denied { sys_ptrace } for pid=11555 comm="ps" capability=19 scontext=unconfined_u:system_r:ipsec_mgmt_t:s0 tcontext=unconfined_u:system_r:ipsec_mgmt_t:s0 tclass=capability node=(removed) type=SYSCALL msg=audit(1268420872.140:240): arch=c000003e syscall=0 success=yes exit=230 a0=5 a1=3884e118a0 a2=3ff a3=fffffffc items=0 ppid=11550 pid=11555 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=27 comm="ps" exe="/bin/ps" subj=unconfined_u:system_r:ipsec_mgmt_t:s0 key=(null) Kernel guys, is there any reason ps should be able to trigger this on F12? Is this caused because ps hit /proc/self/mem? ps can still trigger sys_ptrace / CAP_SYS_PTRACE whenever it tries to read various files under /proc/pid for a process with a different uid/gid/capabilities or non-dumpable. That's a DAC check and hasn't changed. What has changed is that SELinux is back to only checking :file read to the /proc/pid inode for /proc/pid files other than /proc/pid/mem, and only checks :process ptrace permission for /proc/pid/mem and for actual ptrace_attach. SO this should be dontaudited, since ipsec_mgmt should not be looking as files other then its uid? Yes, I believe so. Seems to be generated by ps -C pluto in /usr/libexec/ipsec/_realsetup. |