mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
more permissions in mox.service to ease with upgrade to v0.0.2
- CAP_FSETID looks needed to make accessing setgid dirs work. - CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH are needed to access the existing config/mox.conf. - CAP_FOWNER seems needed to chmod the config/ and data/ files. - RestrictSUIDSGID=yes has to be off for chmod to work
This commit is contained in:
parent
cfa6554d03
commit
aed8360002
1 changed files with 4 additions and 2 deletions
|
@ -22,11 +22,10 @@ ReadWritePaths=/home/mox/config /home/mox/data
|
||||||
ProtectKernelTunables=yes
|
ProtectKernelTunables=yes
|
||||||
ProtectControlGroups=yes
|
ProtectControlGroups=yes
|
||||||
AmbientCapabilities=
|
AmbientCapabilities=
|
||||||
CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE CAP_CHOWN CAP_FSETID
|
CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE CAP_CHOWN CAP_FSETID CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
|
||||||
ProtectProc=invisible
|
ProtectProc=invisible
|
||||||
RestrictSUIDSGID=yes
|
|
||||||
RestrictNamespaces=yes
|
RestrictNamespaces=yes
|
||||||
RestrictRealtime=yes
|
RestrictRealtime=yes
|
||||||
RemoveIPC=yes
|
RemoveIPC=yes
|
||||||
|
@ -40,6 +39,9 @@ DevicePolicy=closed
|
||||||
SystemCallArchitectures=native
|
SystemCallArchitectures=native
|
||||||
SystemCallFilter=@system-service
|
SystemCallFilter=@system-service
|
||||||
|
|
||||||
|
# Cannot have RestrictSUIDSGID with setgid directories.
|
||||||
|
#RestrictSUIDSGID=yes
|
||||||
|
|
||||||
# prevents CAP_NET_BIND_SERVICE from working?
|
# prevents CAP_NET_BIND_SERVICE from working?
|
||||||
#PrivateUsers=yes
|
#PrivateUsers=yes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue