From f34b9289435b8702dd8ec0b39bd47a4f0eebdf4e Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 3 Nov 2016 10:25:20 +0100 Subject: [PATCH] override dh_fixperms to fix lxc-user-nic permissions It's supposed to be setuid root and is required for unprivileged users to directly use lxc-start. --- debian/rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index d6b5408..d64428f 100755 --- a/debian/rules +++ b/debian/rules @@ -3,6 +3,8 @@ # output every command that modifies files on the build system. #DH_VERBOSE = 1 +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk @@ -29,7 +31,8 @@ override_dh_auto_configure: override_dh_strip: dh_strip --dbg-package=lxc-pve-dbg - +override_dh_fixperms: + dh_fixperms -Xusr/lib/$(DEB_HOST_MULTIARCH)/lxc/lxc-user-nic override_dh_install: dh_apparmor -p lxc-pve --profile-name=usr.bin.lxc-start