Merge pull request #3666 from lrusak/iwd

iwd: disable seccomp options for now as it breaks the service
This commit is contained in:
MilhouseVH 2019-07-08 00:52:46 +01:00 committed by GitHub
commit c7f2f6ab34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,20 @@ pre_configure_target() {
export LIBS="-lncurses"
}
post_makeinstall_target() {
# ProtectSystem et al seems to break the service when systemd isn't built with seccomp.
# investigate this more as it might be a systemd problem or kernel problem
sed -e 's|^\(PrivateTmp=.*\)$|#\1|g' \
-e 's|^\(NoNewPrivileges=.*\)$|#\1|g' \
-e 's|^\(PrivateDevices=.*\)$|#\1|g' \
-e 's|^\(ProtectHome=.*\)$|#\1|g' \
-e 's|^\(ProtectSystem=.*\)$|#\1|g' \
-e 's|^\(ReadWritePaths=.*\)$|#\1|g' \
-e 's|^\(ProtectControlGroups=.*\)$|#\1|g' \
-e 's|^\(ProtectKernelModules=.*\)$|#\1|g' \
-i $INSTALL/usr/lib/systemd/system/iwd.service
}
post_install() {
enable_service iwd.service
}