1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/osjs_ynh.git synced 2024-09-03 19:56:11 +02:00

Fix sandboxing: disable @privileged

This commit is contained in:
Salamandar 2024-02-06 10:24:48 +01:00
parent f541a94c00
commit 1f9cffdf50

View file

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=OS.js: web-desktop. Description=OS.js: web-desktop.
After=network.target After=network.target
[Service] [Service]
@ -33,7 +33,8 @@ ProtectKernelModules=yes
ProtectKernelTunables=yes ProtectKernelTunables=yes
LockPersonality=yes LockPersonality=yes
SystemCallArchitectures=native SystemCallArchitectures=native
SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap @cpu-emulation @privileged SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap @cpu-emulation
# @privileged
# Denying access to capabilities that should not be relevant for webapps # Denying access to capabilities that should not be relevant for webapps
# Doc: https://man7.org/linux/man-pages/man7/capabilities.7.html # Doc: https://man7.org/linux/man-pages/man7/capabilities.7.html