Bug 869813
| Summary: | SELinux is preventing /usr/sbin/rngd from 'search' accesses on the directory kernel. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michael S. <misc> | ||||||
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 18 | CC: | dominick.grift, dwalsh, mgrepl | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:b26587bf5abfffe59bf6b6bc9920c3ffc2e592a07dd34be67870db6cf8d10bc5 | ||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-10-24 20:51:52 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: | |||||||||
| Attachments: |
|
||||||||
Created attachment 633025 [details]
File: type
Created attachment 633026 [details]
File: hashmarkername
*** This bug has been marked as a duplicate of bug 869810 *** |
Description of problem: just tried to start rngd with systemctl Additional info: libreport version: 2.0.16 kernel: 3.6.3-3.fc18.x86_64 description: :SELinux is preventing /usr/sbin/rngd from 'search' accesses on the directory kernel. : :***** Plugin catchall (100. confidence) suggests *************************** : :If vous pensez que rngd devrait être autorisé à accéder search sur kernel directory par défaut. :Then vous devriez rapporter ceci en tant qu'anomalie. :Vous pouvez générer un module de stratégie local pour autoriser cet accès. :Do :autoriser cet accès pour le moment en exécutant : :# grep rngd /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:rngd_t:s0 :Target Context system_u:object_r:sysctl_kernel_t:s0 :Target Objects kernel [ dir ] :Source rngd :Source Path /usr/sbin/rngd :Port <Inconnu> :Host (removed) :Source RPM Packages rng-tools-4-2.fc18.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.11.1-43.fc18.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.3-3.fc18.x86_64 #1 SMP Tue Oct : 23 14:55:06 UTC 2012 x86_64 x86_64 :Alert Count 1 :First Seen 2012-10-24 22:42:30 CEST :Last Seen 2012-10-24 22:42:30 CEST :Local ID 978b0739-6e84-44e1-a477-2b98e19d037a : :Raw Audit Messages :type=AVC msg=audit(1351111350.73:504): avc: denied { search } for pid=2986 comm="rngd" name="kernel" dev="proc" ino=13451 scontext=system_u:system_r:rngd_t:s0 tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=dir : : :type=AVC msg=audit(1351111350.73:504): avc: denied { read } for pid=2986 comm="rngd" name="poolsize" dev="proc" ino=13453 scontext=system_u:system_r:rngd_t:s0 tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=file : : :type=AVC msg=audit(1351111350.73:504): avc: denied { open } for pid=2986 comm="rngd" path="/proc/sys/kernel/random/poolsize" dev="proc" ino=13453 scontext=system_u:system_r:rngd_t:s0 tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=file : : :type=SYSCALL msg=audit(1351111350.73:504): arch=x86_64 syscall=open success=yes exit=ESRCH a0=4037f8 a1=0 a2=1b6 a3=238 items=0 ppid=1 pid=2986 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rngd exe=/usr/sbin/rngd subj=system_u:system_r:rngd_t:s0 key=(null) : :Hash: rngd,rngd_t,sysctl_kernel_t,dir,search : :audit2allow : :#============= rngd_t ============== :allow rngd_t sysctl_kernel_t:dir search; :allow rngd_t sysctl_kernel_t:file { read open }; : :audit2allow -R : :#============= rngd_t ============== :allow rngd_t sysctl_kernel_t:dir search; :allow rngd_t sysctl_kernel_t:file { read open }; :