File: memlockd.service

package info (click to toggle)
memlockd 1.3.1-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104 kB
  • sloc: cpp: 451; sh: 83; makefile: 11
file content (41 lines) | stat: -rw-r--r-- 1,124 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[Unit]
Description=memlockd

[Service]
ExecStart=/usr/sbin/memlockd -f -u memlockd
ExecReload=/bin/kill -HUP $MAINPID
Type=simple
Restart=always

# CAP_IPC_LOCK is needed to lock RAM
# CAP_SYS_PTRACE is needed to run ldd
# CAP_SETGID and CAP_SETUID are needed to run ldd as a different user
# CAP_DAC_OVERRIDE is needed to map files without Unix permissions granting read
CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_SETUID CAP_SETGID CAP_SYS_PTRACE CAP_IPC_LOCK

RestrictNamespaces=true
SystemCallFilter=~@mount @cpu-emulation @debug @raw-io @reboot @resources @swap @module @obsolete @clock
ProtectSystem=strict
ProtectProc=invisible
SystemCallArchitectures=native
UMask=077
NoNewPrivileges=true
ProtectKernelLogs=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectHome=true
PrivateTmp=true
MemoryDenyWriteExecute=true
ProtectHostname=true
LockPersonality=true
RestrictRealtime=true
DevicePolicy=closed
ProtectClock=true
RestrictSUIDSGID=true
ProtectKernelTunables=true
PrivateDevices=true
RestrictAddressFamilies=~AF_INET AF_INET6 AF_PACKET AF_NETLINK
PrivateNetwork=true

[Install]
WantedBy=multi-user.target