Bug 706667
Summary: | SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'getattr' accesses on the chr_file /dev/ati/card0. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tommy He <lovenemesis> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 15 | CC: | dominick.grift, dwalsh, evfirerob, mgrepl, my_linux, r0m1.bl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | setroubleshoot_trace_hash:d834ebc58c4950d00b8feb58c443a13f1251c106119b2cbc7f665c51b023d4c0 | ||
Fixed In Version: | selinux-policy-3.9.16-26.fc15 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-06-03 05:30: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: | |
Embargoed: |
Description
Tommy He
2011-05-22 06:47:50 UTC
This is an example why I am worry about adding dontaudit domain device_t:chr_file { read open }; Yes this is a concern. The label is fixed in selinux-policy-3.9.16-26.fc15 selinux-policy-3.9.16-26.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-26.fc15 Package selinux-policy-3.9.16-26.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-26.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-26.fc15 then log in and leave karma (feedback). I tried the command proposed in last reply (su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-26.fc15') but even after a re-flag of files I still have the problem. I noticed that the SElinux Rule is '/dev/ati/card.*' instead of 'dev/ati/card*' as stated here : https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-26.fc15. Is it significant ? SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from getattr access on the chr_file /dev/ati/card0. ***** Plugin device (91.4 confiance) suggéré********************************* Sivous souhaitez autoriser gnome-session-check-accelerated-helper à accéder à getattr sur card0 chr_file Alorsyou need to change the label on /dev/ati/card0 to a type of a similar device. Faire # semanage fcontext -a -t SIMILAR_TYPE '/dev/ati/card0' # restorecon -v '/dev/ati/card0' ***** Plugin catchall (9.59 confiance) suggéré******************************* Siyou believe that gnome-session-check-accelerated-helper should be allowed getattr access on the card0 chr_file by default. Alorsyou should report this as a bug. You can generate a local policy module to allow this access. Faire allow this access for now by executing: # grep gnome-session-c /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Contexte source system_u:system_r:xdm_t:s0-s0:c0.c1023 Contexte cible system_u:object_r:device_t:s0 Objets du contexte /dev/ati/card0 [ chr_file ] Source gnome-session-c Chemin de la source /usr/libexec/gnome-session-check-accelerated- helper Port <Inconnu> Hôte romain-portable Paquetages RPM source gnome-session-3.0.1-2.fc15 Paquetages RPM cible RPM de la statégie selinux-policy-3.9.16-26.fc15 Selinux activé True Type de stratégie targeted Mode strict Enforcing Nom de l'hôte romain-portable Plateforme Linux romain-portable 2.6.38.6-27.fc15.x86_64 #1 SMP Sun May 15 17:23:28 UTC 2011 x86_64 x86_64 Compteur d'alertes 14 Première alerte lun. 30 mai 2011 22:09:21 CEST Dernière alerte mer. 01 juin 2011 13:19:49 CEST ID local cfc402a5-0114-4db3-bd52-24728a437343 Messages d'audit bruts type=AVC msg=audit(1306927189.101:51): avc: denied { getattr } for pid=2103 comm="gnome-session-c" path="/dev/ati/card0" dev=devtmpfs ino=21770 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file type=SYSCALL msg=audit(1306927189.101:51): arch=x86_64 syscall=stat success=no exit=EACCES a0=7fffa701fe50 a1=7fffa701fdc0 a2=7fffa701fdc0 a3=0 items=0 ppid=2085 pid=2103 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=4294967295 comm=gnome-session-c exe=/usr/libexec/gnome-session-check-accelerated-helper subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null) Hash: gnome-session-c,xdm_t,device_t,chr_file,getattr audit2allow #============= xdm_t ============== allow xdm_t device_t:chr_file getattr; audit2allow -R #============= xdm_t ============== allow xdm_t device_t:chr_file getattr; Second error that seems linked to this one SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'read, write' accesses on the chr_file card0. ***** Plugin device (91.4 confiance) suggéré********************************* Sivous souhaitez autoriser gnome-session-check-accelerated-helper à accéder à read write sur card0 chr_file Alorsyou need to change the label on card0 to a type of a similar device. Faire # semanage fcontext -a -t SIMILAR_TYPE 'card0' # restorecon -v 'card0' ***** Plugin catchall (9.59 confiance) suggéré******************************* Siyou believe that gnome-session-check-accelerated-helper should be allowed read write access on the card0 chr_file by default. Alorsyou should report this as a bug. You can generate a local policy module to allow this access. Faire allow this access for now by executing: # grep gnome-session-c /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Contexte source system_u:system_r:xdm_t:s0-s0:c0.c1023 Contexte cible system_u:object_r:device_t:s0 Objets du contexte card0 [ chr_file ] Source gnome-session-c Chemin de la source /usr/libexec/gnome-session-check-accelerated- helper Port <Inconnu> Hôte romain-portable Paquetages RPM source gnome-session-3.0.1-2.fc15 Paquetages RPM cible RPM de la statégie selinux-policy-3.9.16-26.fc15 Selinux activé True Type de stratégie targeted Mode strict Enforcing Nom de l'hôte romain-portable Plateforme Linux romain-portable 2.6.38.6-27.fc15.x86_64 #1 SMP Sun May 15 17:23:28 UTC 2011 x86_64 x86_64 Compteur d'alertes 28 Première alerte lun. 30 mai 2011 22:09:21 CEST Dernière alerte mer. 01 juin 2011 13:19:49 CEST ID local fc1de5d5-8d7e-4a55-8c1b-942ff06d4c04 Messages d'audit bruts type=AVC msg=audit(1306927189.19:50): avc: denied { read write } for pid=2103 comm="gnome-session-c" name="card0" dev=devtmpfs ino=21770 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file type=SYSCALL msg=audit(1306927189.19:50): arch=x86_64 syscall=open success=no exit=EACCES a0=7f5d6df9d61d a1=2 a2=0 a3=8 items=0 ppid=2085 pid=2103 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=4294967295 comm=gnome-session-c exe=/usr/libexec/gnome-session-check-accelerated-helper subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null) Hash: gnome-session-c,xdm_t,device_t,chr_file,read,write audit2allow #============= xdm_t ============== allow xdm_t device_t:chr_file { read write }; audit2allow -R #============= xdm_t ============== allow xdm_t device_t:chr_file { read write }; selinux-policy-3.9.16-26.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. Execute restorecon -R -v /dev/ati/card0 |