summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-12-19 16:21:01 +0100
committerYves-Alexis Perez <corsac@corsac.net>2016-12-21 11:31:23 +0100
commit9e71a10822db1d8ce399ac85c1d6c13863987be0 (patch)
treed824f1bf39eaaf164880d854a29cdb95daed19fe /debian/rules
parent821cb0af7404c56c04d511b02a98be96fa446104 (diff)
downloadvyos-strongswan-9e71a10822db1d8ce399ac85c1d6c13863987be0.tar.gz
vyos-strongswan-9e71a10822db1d8ce399ac85c1d6c13863987be0.zip
* add and install apparmor profiles
- d/rules install AppArmor profiles - d/control add dh-apparmor build-dep - d/usr.lib.ipsec.{charon, lookip, stroke} add latest AppArmor profiles for charon, lookip and stroke Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 3eeadf7fb..00aed577c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -176,6 +176,11 @@ endif
-Xlibstrongswan-af-alg.so -X af-alg.conf \
-Xstrongswan.service
+ # AppArmor.
+ dh_apparmor --profile-name=usr.lib.ipsec.charon -p strongswan-charon
+ dh_apparmor --profile-name=usr.lib.ipsec.lookip -p libcharon-extra-plugins
+ dh_apparmor --profile-name=usr.lib.ipsec.stroke -p strongswan-starter
+
# add additional files not covered by upstream makefile...
install --mode=0600 $(CURDIR)/debian/ipsec.secrets.proto $(CURDIR)/debian/strongswan-starter/etc/ipsec.secrets
# also "patch" ipsec.conf to include the debconf-managed file