-
Notifications
You must be signed in to change notification settings - Fork 0
/
uksmd.service
46 lines (44 loc) · 1.24 KB
/
uksmd.service
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
42
43
44
45
46
[Unit]
Description=Userspace KSM helper daemon
Documentation=https://codeberg.org/pf-kernel/uksmd
ConditionPathExists=/sys/kernel/process_ksm/process_ksm_enable
ConditionPathExists=/sys/kernel/process_ksm/process_ksm_disable
ConditionPathExists=/sys/kernel/process_ksm/process_ksm_status
[Service]
Type=notify
DynamicUser=true
User=uksmd
Group=uksmd
CapabilityBoundingSet=CAP_SYS_PTRACE CAP_DAC_OVERRIDE CAP_SYS_NICE
AmbientCapabilities=CAP_SYS_PTRACE CAP_DAC_OVERRIDE CAP_SYS_NICE
PrivateNetwork=yes
RestrictAddressFamilies=AF_UNIX
RestrictNamespaces=true
PrivateDevices=true
NoNewPrivileges=true
PrivateTmp=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ReadWritePaths=/sys/kernel/mm/ksm/run
ProtectSystem=strict
RestrictSUIDSGID=true
SystemCallArchitectures=native
RestrictRealtime=true
LockPersonality=true
MemoryDenyWriteExecute=true
RemoveIPC=true
TasksMax=1
UMask=0066
ProtectHostname=true
IPAddressDeny=any
SystemCallFilter=~@clock @debug @module @mount @raw-io @reboot @swap @privileged @resources @cpu-emulation @obsolete
SystemCallFilter=setpriority set_mempolicy
WatchdogSec=30
Restart=on-failure
ExecStart=/usr/bin/uksmd
[Install]
WantedBy=multi-user.target