iwd: disable seccomp options for now as it breaks the service

This commit is contained in:
Lukas Rusak 2019-07-07 09:35:28 -07:00
parent 027def8c89
commit 2f02cc83ad
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3

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
}