Keep RestrictAddressFamilies on amd64

This option and libseccomp currently work on amd64 at least, so let's make sure
it does not break there as well, and benefit from the additional protection at
least on this architecture.
This commit is contained in:
Martin Pitt 2016-12-14 10:53:18 +01:00
parent dbda116b25
commit 2bcde0323f

2
debian/rules vendored
View File

@ -271,7 +271,7 @@ override_dh_install:
rm -f debian/install/*/lib/systemd/system/*sysusers*.service debian/install/*/lib/systemd/system/*/*sysusers*.service
# FIXME: RestrictAddressFamilies= is broken on several architectures,
# see https://github.com/systemd/systemd/issues/4575 (#843160)
sed --follow-symlinks -i '/RestrictAddressFamilies/d' debian/install/*/lib/systemd/system/*.service
[ "$(DEB_HOST_ARCH)" = amd64 ] || sed --follow-symlinks -i '/RestrictAddressFamilies/d' debian/install/*/lib/systemd/system/*.service
ifeq (, $(filter noudeb, $(DEB_BUILD_PROFILES)))
dh_install -pudev-udeb -plibudev1-udeb --sourcedir=debian/install/udeb
endif