[pve-devel] [PATCH lxc 2/2] override dh_fixperms to fix lxc-user-nic permissions
Wolfgang Bumiller
w.bumiller at proxmox.com
Wed Nov 9 11:22:45 CET 2016
It's supposed to be setuid root and is required for
unprivileged users to directly use lxc-start.
---
(Debian's upstream package does this, too, though actually using lxc-start
as a user is a bit tricky, still...)
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
--
2.1.4
More information about the pve-devel
mailing list