Browse Source

Install clevis-luks-udisks2 setuid root. Closes: #902447

If there's a way to do this using POSIX capabilities, let me know.
Christoph Biedl 3 years ago
parent
commit
3ee8e33a90
2 changed files with 10 additions and 0 deletions
  1. 5 0
      debian/clevis-udisks2.lintian-overrides
  2. 5 0
      debian/rules

+ 5 - 0
debian/clevis-udisks2.lintian-overrides

@@ -0,0 +1,5 @@
+
+# This program requires root,
+# see https://github.com/martinezjavier/clevis/commit/68427763f47132a21e3fee066f20500a187c3662
+# If there's a way to do this using POSIX capabilities, let me know.
+clevis-udisks2: setuid-binary usr/lib/*/clevis-luks-udisks2 4755 root/root

+ 5 - 0
debian/rules

@@ -9,3 +9,8 @@ include /usr/share/dpkg/buildflags.mk
 
 override_dh_missing:
 	dh_missing --fail-missing
+
+override_dh_fixperms:
+	dh_fixperms
+	chmod u+s \
+		debian/clevis-udisks2/usr/lib/*/clevis-luks-udisks2