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:
parent
068006ebd7
commit
c031f9aa5d
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue