Merge lp:~james-w/casper/polkit-1 into lp:casper

Proposed by James Westby
Status: Merged
Merged at revision: not available
Proposed branch: lp:~james-w/casper/polkit-1
Merge into: lp:casper
Diff against target: 34 lines
2 files modified
debian/changelog (+8/-0)
scripts/casper-bottom/44pk_allow_ubuntu (+10/-0)
To merge this branch: bzr merge lp:~james-w/casper/polkit-1
Reviewer Review Type Date Requested Status
Colin Watson Pending
Review via email: mp+13120@code.launchpad.net
To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

Update the polkit script to work for polkit-1 as well.

Thanks,

James

Revision history for this message
James Westby (james-w) wrote :

> Update the polkit script to work for polkit-1 as well.

Oh, I should say that I tested the polkit bits (you can create
the file on your system with $USERNAME set appropriately, and
then use something like "pkexec ls" to test, inotify is used
so you don't need to reload or anything). I'm requesting the
review more for the "casper" bits.

Thanks,

James

Revision history for this message
Colin Watson (cjwatson) wrote :

On Fri, Oct 09, 2009 at 12:49:04PM -0000, James Westby wrote:
> Oh, I should say that I tested the polkit bits (you can create
> the file on your system with $USERNAME set appropriately, and
> then use something like "pkexec ls" to test, inotify is used
> so you don't need to reload or anything). I'm requesting the
> review more for the "casper" bits.

Those look fine to me. I'll just add a couple of 'mkdir -p' calls for
safety (to both this new bit and the previous bit), I think.

Merged, thanks.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2009-10-09 03:29:58 +0000
3+++ debian/changelog 2009-10-09 12:46:10 +0000
4@@ -1,3 +1,11 @@
5+casper (1.200ubuntu1) karmic; urgency=low
6+
7+ * scripts/casper-bottom/44pk_allow_ubuntu: update to work for polkit-1
8+ as well. Allow the live cd user to perform any action when at the
9+ active console. (LP: #447141)
10+
11+ -- James Westby <james.westby@ubuntu.com> Fri, 09 Oct 2009 13:40:59 +0100
12+
13 casper (1.200) karmic; urgency=low
14
15 * scripts/casper-bottom/20xconfig:
16
17=== modified file 'scripts/casper-bottom/44pk_allow_ubuntu'
18--- scripts/casper-bottom/44pk_allow_ubuntu 2008-03-18 09:20:26 +0000
19+++ scripts/casper-bottom/44pk_allow_ubuntu 2009-10-09 12:46:10 +0000
20@@ -41,4 +41,14 @@
21 </config>
22 EOF
23
24+cat << EOF > /root/var/lib/polkit-1/localauthority/10-vendor.d/10-live-cd.pkla
25+# Policy to allow the livecd user to bypass policykit
26+[Live CD user permissions]
27+Identity=unix-user:$USERNAME
28+Action=*
29+ResultAny=no
30+ResultInactive=no
31+ResultActive=yes
32+EOF
33+
34 log_end_msg

Subscribers

People subscribed via source and target branches