postinst: make sure file permissions aren't severely broken

notably the case right now where our shadow build broke things
This commit is contained in:
Harald Sitter
2026-05-21 17:18:18 +02:00
parent 8850fe8eea
commit 9c3e4f93f2

View File

@@ -6,6 +6,12 @@ set -ex
env
# Safety nets to prevent excessive breakage
## sudo should have sticky bit set
[ -u /usr/bin/sudo ] || exit 1
## newuidmap should have a capability set
[ "$(getcap /usr/bin/newuidmap)" != "" ] || exit 1
mkdir --mode 0700 /system # for the kde-linux-overlay.service
export SYSTEMD_ESP_PATH="$BOOT_MNT"