2 Description=Verify integrity of password and group files
3 After=systemd-sysusers.service
6 CapabilityBoundingSet=CAP_DAC_READ_SEARCH
7 # Always run both checks, but fail the service if either fails
8 ExecStart=/bin/sh -c '/usr/bin/pwck -r || r=1; /usr/bin/grpck -r && exit $r'
10 IOSchedulingClass=best-effort
11 IOSchedulingPriority=7
14 MemoryDenyWriteExecute=yes
21 ProtectControlGroups=yes
25 ProtectKernelModules=yes
26 ProtectKernelTunables=yes
29 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
30 RestrictNamespaces=yes
33 SystemCallArchitectures=native
34 SystemCallFilter=@system-service
35 SystemCallFilter=~@resources
36 SystemCallFilter=~@privileged