| 1 | [Unit] |
| 2 | Description=Restart the Hexagon DSP sensors daemon on resume |
| 3 | Documentation=file:///usr/share/doc/hexagonrpcd/README.Debian |
| 4 | ConditionFirmware=device-tree-compatible(qcom,sdm670) |
| 5 | After=suspend.target |
| 6 | |
| 7 | [Service] |
| 8 | Type=simple |
| 9 | NoNewPrivileges=yes |
| 10 | PrivateTmp=yes |
| 11 | PrivateDevices=yes |
| 12 | DevicePolicy=closed |
| 13 | ProtectSystem=strict |
| 14 | ProtectHome=read-only |
| 15 | ProtectControlGroups=yes |
| 16 | ProtectKernelModules=yes |
| 17 | ProtectKernelTunables=yes |
| 18 | PrivateNetwork=yes |
| 19 | RestrictAddressFamilies=AF_UNIX |
| 20 | RestrictNamespaces=yes |
| 21 | RestrictRealtime=yes |
| 22 | RestrictSUIDSGID=yes |
| 23 | MemoryDenyWriteExecute=yes |
| 24 | LockPersonality=yes |
| 25 | CapabilityBoundingSet= |
| 26 | ExecStart=/usr/bin/systemctl restart hexagonrpcd.service |
| 27 | |
| 28 | [Install] |
| 29 | WantedBy=suspend.target |