| Summary: | enforcing MLS -- avc: denied { syslog_read } for ... comm="dmesg" scontext=user_u:user_r:user_t:s0 tcontext=system_u:system_r:kernel_t:s15:c0.c1023 tclass=system | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Milos Malik <mmalik> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Milos Malik <mmalik> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.1 | CC: | dwalsh |
| 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: | 2011-01-14 14:20:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
The second step should look this way: 2. go to runlevel 3 and switch SELinux to enforcing mode We allow it for staff and admin SELinux users. I believe we don't want to allow it for guest_u and xguest_u users. But we could consider to allow it for user_u SELinux user. user_t should not be allowed to look at the dmesg output. Ok, I agree. But I should dontaudit it. No, I want to know if my users are trying to read the syslog content. They should be told not to do this. Dmesg output could be considered an information leak. ok, i understand. I just thought $ dmesg klogctl: Permission denied is enough. But of course we want to know about that. |
Description of problem: Version-Release number of selected component (if applicable): selinux-policy-mls-3.7.19-63.el6.noarch selinux-policy-3.7.19-63.el6.noarch selinux-policy-minimum-3.7.19-63.el6.noarch selinux-policy-targeted-3.7.19-63.el6.noarch selinux-policy-doc-3.7.19-63.el6.noarch How reproducible: always Steps to Reproduce: 1. set up a RHEL-6 machine with MLS policy installed in permissive mode 2. go to runlevel 3 3. create an user 4. set up a password for the user 5. log in as the user $ id -Z user_u:user_r:user_t:s0 $ dmesg klogctl: Permission denied $ echo $? 1 Actual results: ---- time->Fri Jan 14 05:02:37 2011 type=SYSCALL msg=audit(1294999357.430:72): arch=80000015 syscall=103 success=no exit=-13 a0=3 a1=10017071030 a2=4008 a3=fefefefefefefeff items=0 ppid=1686 pid=1718 auid=501 uid=501 gid=502 euid=501 suid=501 fsuid=501 egid=502 sgid=502 fsgid=502 tty=pts0 ses=4 comm="dmesg" exe="/bin/dmesg" subj=user_u:user_r:user_t:s0 key=(null) type=AVC msg=audit(1294999357.430:72): avc: denied { syslog_read } for pid=1718 comm="dmesg" scontext=user_u:user_r:user_t:s0 tcontext=system_u:system_r:kernel_t:s15:c0.c1023 tclass=system ---- Expected results: no AVC