systemnd: configure LimitMEMLOCK for io_uring
The io_uring buffer is allocated as memlocked memory, as MPD needs to be able to lock memory.
This commit is contained in:
@@ -16,6 +16,9 @@ ExecStart=@prefix@/bin/mpd --no-daemon
|
|||||||
LimitRTPRIO=40
|
LimitRTPRIO=40
|
||||||
LimitRTTIME=infinity
|
LimitRTTIME=infinity
|
||||||
|
|
||||||
|
# for io_uring
|
||||||
|
LimitMEMLOCK=64M
|
||||||
|
|
||||||
# disallow writing to /usr, /bin, /sbin, ...
|
# disallow writing to /usr, /bin, /sbin, ...
|
||||||
ProtectSystem=yes
|
ProtectSystem=yes
|
||||||
|
|
||||||
|
@@ -16,6 +16,9 @@ ExecStart=@prefix@/bin/mpd --no-daemon
|
|||||||
LimitRTPRIO=40
|
LimitRTPRIO=40
|
||||||
LimitRTTIME=infinity
|
LimitRTTIME=infinity
|
||||||
|
|
||||||
|
# for io_uring
|
||||||
|
LimitMEMLOCK=64M
|
||||||
|
|
||||||
# disallow writing to /usr, /bin, /sbin, ...
|
# disallow writing to /usr, /bin, /sbin, ...
|
||||||
ProtectSystem=yes
|
ProtectSystem=yes
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user