Bug 869813 - SELinux is preventing /usr/sbin/rngd from 'search' accesses on the directory kernel.
Summary: SELinux is preventing /usr/sbin/rngd from 'search' accesses on the directory ...
Keywords:
Status: CLOSED DUPLICATE of bug 869810
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b26587bf5abfffe59bf6b6bc992...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-24 20:47 UTC by Michael S.
Modified: 2014-11-05 13:37 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-24 20:51:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-24 20:47 UTC, Michael S.
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-24 20:47 UTC, Michael S.
no flags Details

Description Michael S. 2012-10-24 20:47:44 UTC
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 };
:

Comment 1 Michael S. 2012-10-24 20:47:46 UTC
Created attachment 633025 [details]
File: type

Comment 2 Michael S. 2012-10-24 20:47:49 UTC
Created attachment 633026 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-10-24 20:51:52 UTC

*** This bug has been marked as a duplicate of bug 869810 ***


Note You need to log in before you can comment on or make changes to this bug.