| Summary: | SELinux prevents nslcd access to sysfs_t files | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Ondrej Moriš <omoris> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Milos Malik <mmalik> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.5 | CC: | dwalsh, mmalik |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-13 11:16:49 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
I believe this bug is a duplicate of bz#1005250. You're right Milos, thanks. *** This bug has been marked as a duplicate of bug 1005250 *** |
Description of problem: This problems occurs on i386 architecture only. Tool nslcd from nss-pam-ldapd tries to access /sys/devices/system/cpu/online which has secontext system_u:object_r:sysfs_t:s0 and the access is forbidden. Version-Release number of selected component (if applicable): selinux-policy-3.7.19-212.el6.noarch How reproducible: 100% (on i386 only) Steps to Reproduce: 1. Start nslcd (service nslcd start) 2. See /v/r/a/audit.log Actual results: type=AVC msg=audit(1379070099.317:54): avc: denied { search } for pid=3409 comm="nslcd" name="/" dev=sysfs ino=1 scontext=unconfined_u:system_r:nslcd_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir type=AVC msg=audit(1379070099.317:56): avc: denied { search } for pid=3411 comm="nslcd" name="/" dev=sysfs ino=1 scontext=unconfined_u:system_r:nslcd_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir type=AVC msg=audit(1379070099.317:55): avc: denied { search } for pid=3410 comm="nslcd" name="/" dev=sysfs ino=1 scontext=unconfined_u:system_r:nslcd_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir type=SYSCALL msg=audit(1379070099.317:54): arch=40000003 syscall=5 success=no exit=-13 a0=b22c00 a1=80000 a2=0 a3=15c items=0 ppid=1 pid=3409 auid=0 uid=65 gid=55 euid=65 suid=65 fsuid=65 egid=55 sgid=55 fsgid=55 tty=(none) ses=1 comm="nslcd" exe="/usr/sbin/nslcd" subj=unconfined_u:system_r:nslcd_t:s0 key=(null) type=SYSCALL msg=audit(1379070099.317:56): arch=40000003 syscall=5 success=no exit=-13 a0=b22c00 a1=80000 a2=0 a3=15c items=0 ppid=1 pid=3411 auid=0 uid=65 gid=55 euid=65 suid=65 fsuid=65 egid=55 sgid=55 fsgid=55 tty=(none) ses=1 comm="nslcd" exe="/usr/sbin/nslcd" subj=unconfined_u:system_r:nslcd_t:s0 key=(null) type=SYSCALL msg=audit(1379070099.317:55): arch=40000003 syscall=5 success=no exit=-13 a0=b22c00 a1=80000 a2=0 a3=15c items=0 ppid=1 pid=3410 auid=0 uid=65 gid=55 euid=65 suid=65 fsuid=65 egid=55 sgid=55 fsgid=55 tty=(none) ses=1 comm="nslcd" exe="/usr/sbin/nslcd" subj=unconfined_u:system_r:nslcd_t:s0 key=(null) But nslcd is started successfully (and works fine). Expected results: No AVC. Additional info: Audit2allow says: allow nslcd_t sysfs_t:dir search; I am not sure if nslcd does not access aforementioned file on other architectures or if selinux-policy somehow handles it there.