[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#583533: live-initramfs: policykit grants all permissions even with nosudo



Package: live-initramfs
Version: 1.236.2-1
Tags: patch

When booting with nosudo, you can still do virtually anything you want
on the system, because PolicyKit will grant all permissions to the live
user.

Attached patch fixes the bug.

Cheers,
-- 
 .''`.      Josselin Mouette
: :' :
`. `'   “A handshake with whitnesses is the same
  `-     as a signed contact.”  -- Jörg Schilling
--- /tmp/pouet2/usr/share/initramfs-tools/scripts/live-bottom/44pk_allow	2010-05-18 06:53:40.000000000 +0200
+++ 44pk_allow	2010-05-27 23:05:27.000000000 +0200
@@ -22,6 +22,9 @@
 
 . /scripts/live-functions
 
+if [ -z "${NOSUDO}" ]
+then
+
 log_begin_msg "Grant administrative PolicyKit pivilieges to default user"
 
 # live-initramfs script
@@ -69,3 +72,5 @@
 EOF
 
 log_end_msg
+
+fi

Reply to: