TT#110904 TT#76552 Fix systemd hardening for rand() access

We need readonly access to /dev/urandom, otherwise the rand()
calls might fail, as seen in kamailio-config-tests.

Change-Id: Id132191994ae5fe74ec3ebb7d34a4a5d50769dbc
Thanks: Victor Seva for reporting
mr9.3.1
Michael Prokop 5 years ago
parent fa565ef32c
commit 0cbeddf0a2

@ -75,6 +75,7 @@ PrivateNetwork=false
# Control access to specific device nodes by the executed processes
DevicePolicy=strict
DeviceAllow=/dev/null rw
DeviceAllow=/dev/urandom r
# Maximum number of bytes of memory that may be locked into RAM
LimitMEMLOCK=0

Loading…
Cancel
Save