Skip to content

Commit

Permalink
Merge pull request openSUSE#647 from aschnell/master
Browse files Browse the repository at this point in the history
- fixed systemd sandboxing (bsc#1185596)
  • Loading branch information
aschnell authored May 4, 2021
2 parents 04fcc5f + b3c308d commit 4f10920
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/boot.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ConditionPathExists=/etc/snapper/configs/root
Type=oneshot
ExecStart=/usr/bin/snapper --config root create --cleanup-algorithm number --description "boot"

CapabilityBoundingSet=CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_SYS_ADMIN CAP_SYS_MODULE CAP_IPC_LOCK CAP_SYS_NICE
CapabilityBoundingSet=CAP_FOWNER CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_SYS_ADMIN CAP_SYS_MODULE CAP_IPC_LOCK CAP_SYS_NICE
LockPersonality=true
NoNewPrivileges=false
PrivateNetwork=true
Expand Down
2 changes: 1 addition & 1 deletion data/cleanup.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ExecStart=/usr/lib/snapper/systemd-helper --cleanup
IOSchedulingClass=idle
CPUSchedulingPolicy=idle

CapabilityBoundingSet=CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_SYS_ADMIN CAP_SYS_MODULE CAP_IPC_LOCK CAP_SYS_NICE
CapabilityBoundingSet=CAP_FOWNER CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_SYS_ADMIN CAP_SYS_MODULE CAP_IPC_LOCK CAP_SYS_NICE
LockPersonality=true
NoNewPrivileges=false
PrivateNetwork=true
Expand Down
2 changes: 1 addition & 1 deletion data/snapperd.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Type=dbus
BusName=org.opensuse.Snapper
ExecStart=/usr/sbin/snapperd

CapabilityBoundingSet=CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_SYS_ADMIN CAP_SYS_MODULE CAP_IPC_LOCK CAP_SYS_NICE
CapabilityBoundingSet=CAP_FOWNER CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_SYS_ADMIN CAP_SYS_MODULE CAP_IPC_LOCK CAP_SYS_NICE
LockPersonality=true
NoNewPrivileges=false
PrivateNetwork=true
Expand Down
2 changes: 2 additions & 0 deletions data/systemd-sandboxing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ ProtectHome=true breaks diff for LVM.
SystemCallFilter=@mount breaks almost everything with older systemd,
e.g. on SLE15 SP1.

CapabilityBoundingSet=CAP_FOWNER is needed if for home directories.

2 changes: 1 addition & 1 deletion data/timeline.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Documentation=man:snapper(8) man:snapper-configs(5)
Type=simple
ExecStart=/usr/lib/snapper/systemd-helper --timeline

CapabilityBoundingSet=CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_SYS_ADMIN CAP_SYS_MODULE CAP_IPC_LOCK CAP_SYS_NICE
CapabilityBoundingSet=CAP_FOWNER CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_SYS_ADMIN CAP_SYS_MODULE CAP_IPC_LOCK CAP_SYS_NICE
LockPersonality=true
NoNewPrivileges=false
PrivateNetwork=true
Expand Down
5 changes: 5 additions & 0 deletions package/snapper.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 04 08:35:28 CEST 2021 - [email protected]

- fixed systemd sandboxing (bsc#1185596)

-------------------------------------------------------------------
Wed Apr 28 10:17:14 CEST 2021 - [email protected]

Expand Down

0 comments on commit 4f10920

Please sign in to comment.