Description of problem: SELinux is preventing /usr/bin/updatedb from 'getattr' accesses on the chr_file . ***** Plugin catchall (100. confidence) suggests ************************** If sie denken, dass es updatedb standardmässig erlaubt sein sollte, getattr Zugriff auf chr_file zu erhalten. Then sie sollten dies als Fehler melden. Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen. Do zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen: # grep updatedb /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:locate_t:s0-s0:c0.c1023 Target Context unconfined_u:object_r:var_t:s0 Target Objects [ chr_file ] Source updatedb Source Path /usr/bin/updatedb Port <Unknown> Host (removed) Source RPM Packages mlocate-0.26-4.fc20.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-182.fc20.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 3.15.10-201.fc20.x86_64 #1 SMP Wed Aug 27 21:10:06 UTC 2014 x86_64 x86_64 Alert Count 1 First Seen 2014-09-08 21:08:42 CEST Last Seen 2014-09-08 21:08:42 CEST Local ID 3d779c68-3df3-47c1-ae03-0166fe47288e Raw Audit Messages type=AVC msg=audit(1410203322.617:453): avc: denied { getattr } for pid=364 comm="updatedb" path="/var/cache/lxc/centos/x86_64/6/rootfs/dev/null" dev="sdb1" ino=657548863 scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_t:s0 tclass=chr_file type=SYSCALL msg=audit(1410203322.617:453): arch=x86_64 syscall=lstat success=yes exit=0 a0=7fd53a687c69 a1=7fff245d2920 a2=7fff245d2920 a3=7fd53a68a883 items=0 ppid=358 pid=364 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm=updatedb exe=/usr/bin/updatedb subj=system_u:system_r:locate_t:s0-s0:c0.c1023 key=(null) Hash: updatedb,locate_t,var_t,chr_file,getattr Additional info: reporter: libreport-2.2.3 hashmarkername: setroubleshoot kernel: 3.16.2-200.fc20.x86_64 type: libreport
396bc544bad712588ee6a2c387df1d51a7f6ba8f and 818a75202ff57e152bdc2a1a0f70a0684395cc73 Fix this in git. We should not be blocking locate from looking at blkfiles and chr files on random directories.
commit 1a91fe0879ca5fbddf2bc02fced1fcab7a4bd690 Author: Dan Walsh <dwalsh> Date: Sat Sep 13 06:53:37 2014 -0400 Allow locate to look at files/directories without labels, and chr_file and blk_file on non dev file systems https://github.com/selinux-policy/selinux-policy/commit/1a91fe0879ca5fbddf2bc02fced1fcab7a4bd690 commit 03039ae94b580acf9aaa8b375e52d2490048d8c3 Author: Dan Walsh <dwalsh> Date: Sat Sep 13 06:53:48 2014 -0400 Allow locate to look at files/directories without labels, and chr_file and blk_file on non dev file systems https://github.com/selinux-policy/selinux-policy/commit/03039ae94b580acf9aaa8b375e52d2490048d8c3
selinux-policy-3.12.1-186.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-186.fc20
Package selinux-policy-3.12.1-186.fc20: * should fix your issue, * was pushed to the Fedora 20 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.12.1-186.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-11479/selinux-policy-3.12.1-186.fc20 then log in and leave karma (feedback).
selinux-policy-3.12.1-187.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-187.fc20
selinux-policy-3.12.1-188.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-188.fc20
This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.