Merge lp:~achiang/ubuntu/quantal/casper/bug-855556 into lp:ubuntu/quantal/casper

Proposed by Alex Chiang on 2012-05-18
Status: Merged
Merged at revision: 1043
Proposed branch: lp:~achiang/ubuntu/quantal/casper/bug-855556
Merge into: lp:ubuntu/quantal/casper
Diff against target: 28 lines (+9/-1)
2 files modified
debian/changelog (+8/-0)
scripts/casper-bottom/44pk_allow_ubuntu (+1/-1)
To merge this branch: bzr merge lp:~achiang/ubuntu/quantal/casper/bug-855556
Reviewer Review Type Date Requested Status
Ubuntu branches 2012-05-18 Pending
Review via email: mp+106476@code.launchpad.net

Description of the change

Grant admin polkit privileges to lightdm user (LP: #855556)

  During a live session, the 'ubuntu' user is logged in on every VT. However,
  we have:

  /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy

        org.freedesktop.consolekit.system.restart-multiple-users
                <allow_active>auth_admin_keep</allow_active>
        org.freedesktop.consolekit.system.stop-multiple-users
                <allow_active>auth_admin_keep</allow_active>

  Thus, the shutdown and restart items from the Unity greeter's session
  indicator are inhibited.

  Those items should work, and we can do so by granting admin privileges to
  lightdm / unity-greeter, which allows restart and shutdown from the greeter
  screen.

  We already grant admin privileges to the default user in the live session,
  so allowing the user to shutdown from the live session's greeter screen
  should be considered conceptually similar.

To post a comment you must log in.

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 2012-04-30 13:39:46 +0000
3+++ debian/changelog 2012-05-18 22:34:18 +0000
4@@ -1,3 +1,11 @@
5+casper (1.317) UNRELEASED; urgency=low
6+
7+ * scripts/casper-bottom/44pk_allow_ubuntu: grant admin polkit privileges
8+ to lightdm user, which enables restart and shutdown from the greeter
9+ (LP: #855556)
10+
11+ -- Alex Chiang <achiang@canonical.com> Fri, 18 May 2012 15:51:20 -0600
12+
13 casper (1.316) quantal; urgency=low
14
15 * Add dependency on cifs-utils for cifs NETBOOT support of desktop images.
16
17=== modified file 'scripts/casper-bottom/44pk_allow_ubuntu'
18--- scripts/casper-bottom/44pk_allow_ubuntu 2011-09-07 10:25:59 +0000
19+++ scripts/casper-bottom/44pk_allow_ubuntu 2012-05-18 22:34:18 +0000
20@@ -25,7 +25,7 @@
21 cat << EOF > /root/var/lib/polkit-1/localauthority/10-vendor.d/10-live-cd.pkla
22 # Policy to allow the livecd user to bypass policykit
23 [Live CD user permissions]
24-Identity=unix-user:$USERNAME
25+Identity=unix-user:$USERNAME;unix-user:lightdm
26 Action=*
27 ResultAny=no
28 ResultInactive=yes

Subscribers

People subscribed via source and target branches

to all changes: