forked from openSUSE/snapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openSUSE#646 from aschnell/master
added systemd sandboxing for services
- Loading branch information
Showing
7 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
Notes about systemd sandboxing | ||
------------------------------ | ||
|
||
CapabilityBoundingSet=CAP_SYS_ADMIN is needed to get the btrfs default | ||
subvolume id. | ||
|
||
ProtectClock=true breaks LVM - strange. | ||
|
||
CAP_SYS_MODULE is needed for LVM (creating snapshots, loads | ||
dm_snapshot). | ||
|
||
ProtectKernelModules=true breaks LVM. | ||
|
||
CapabilityBoundingSet=CAP_SYS_NICE is also needed by LVM. | ||
|
||
ProtectHome=true breaks diff for LVM. | ||
|
||
SystemCallFilter=@mount breaks almost everything with older systemd, | ||
e.g. on SLE15 SP1. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
------------------------------------------------------------------- | ||
Wed Apr 28 10:17:14 CEST 2021 - [email protected] | ||
|
||
- added systemd sandboxing for services | ||
|
||
------------------------------------------------------------------- | ||
Mon Apr 19 09:56:40 CEST 2021 - [email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -360,7 +360,6 @@ namespace snapper | |
|
||
if (!umount(info_dir, "snapshot")) | ||
throw UmountSnapshotFailedException(); | ||
|
||
} | ||
|
||
try | ||
|