1
0
mirror of https://github.com/SELinuxProject/refpolicy synced 2025-04-01 22:58:20 +00:00
selinux-refpolicy/policy/modules
Nicolas Iooss 58189f4965
entropyd: haveged service uses PrivateDevices=yes
On Debian, haveged fails to start with "haveged: Couldn't open random
device: Permission denied". strace shows:

    openat(AT_FDCWD, "/dev/random", O_RDWR) = -1 EACCES (Permission denied)

audit.log has:

    type=AVC msg=audit(1566048720.132:1338): avc:  denied  { search }
    for  pid=20235 comm="haveged" name="/" dev="tmpfs" ino=76666
    scontext=system_u:system_r:entropyd_t
    tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=0

With systemd, /dev is a temporary filesystem (tmpfs_t), so haveged needs
the search permission to it in order to open /dev/random. Use the
newly-added interface to allow this access.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2019-09-01 13:47:45 +02:00
..
admin rpm, selinux, sysadm, init: Module version bump. 2019-07-13 14:07:11 -04:00
apps various: Module version bump. 2019-08-27 00:28:34 -04:00
kernel files: Module version bump. 2019-08-28 19:22:27 -04:00
roles rpm, selinux, sysadm, init: Module version bump. 2019-07-13 14:07:11 -04:00
services entropyd: haveged service uses PrivateDevices=yes 2019-09-01 13:47:45 +02:00
system systemd: introduce an interface for services using PrivateDevices=yes 2019-08-29 20:05:29 +02:00