| 1 | # SPDX-License-Identifier: CC0-1.0 |
| 2 | # SPDX-FileCopyrightText: 2023-2024 Bartosz Golaszewski <[email protected]> |
| 3 | |
| 4 | [Unit] |
| 5 | Description=Centralized GPIO manager daemon |
| 6 | |
| 7 | [Service] |
| 8 | Type=dbus |
| 9 | BusName=io.gpiod1 |
| 10 | ExecStart=/usr/bin/gpio-manager |
| 11 | Restart=always |
| 12 | User=gpio-manager |
| 13 | |
| 14 | CapabilityBoundingSet= |
| 15 | ReadOnlyDirectories=/ |
| 16 | NoNewPrivileges=yes |
| 17 | RemoveIPC=yes |
| 18 | PrivateTmp=yes |
| 19 | PrivateUsers=yes |
| 20 | ProtectControlGroups=yes |
| 21 | ProtectHome=yes |
| 22 | ProtectKernelModules=yes |
| 23 | ProtectKernelTunables=yes |
| 24 | ProtectSystem=strict |
| 25 | ProtectClock=yes |
| 26 | Delegate=no |
| 27 | IPAddressDeny=any |
| 28 | KeyringMode=private |
| 29 | LockPersonality=yes |
| 30 | MemoryDenyWriteExecute=yes |
| 31 | NotifyAccess=main |
| 32 | PrivateMounts=no |
| 33 | PrivateNetwork=no |
| 34 | ProtectHostname=yes |
| 35 | RestrictNamespaces=yes |
| 36 | RestrictRealtime=yes |
| 37 | RestrictSUIDSGID=yes |
| 38 | SystemCallFilter=~@clock |
| 39 | SystemCallFilter=~@cpu-emulation |
| 40 | SystemCallFilter=~@debug |
| 41 | SystemCallFilter=~@module |
| 42 | SystemCallFilter=~@mount |
| 43 | SystemCallFilter=~@obsolete |
| 44 | SystemCallFilter=~@privileged |
| 45 | SystemCallFilter=~@raw-io |
| 46 | SystemCallFilter=~@reboot |
| 47 | SystemCallFilter=~@swap |
| 48 | |
| 49 | [Install] |
| 50 | WantedBy=multi-user.target |