Hello community, here is the log from the commit of package lightdm for openSUSE:Factory checked in at 2013-01-17 15:11:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lightdm (Old) and /work/SRC/openSUSE:Factory/.lightdm.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lightdm", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/lightdm/lightdm.changes 2012-11-12 11:42:38.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.lightdm.new/lightdm.changes 2013-01-17 15:11:59.000000000 +0100 @@ -1,0 +2,9 @@ +Wed Jan 16 13:00:36 UTC 2013 - [email protected] + +- add polkit rules which unconditionally allow the lightdm user to + access to relevant upower/ConsoleKit DBus interfaces for + suspend/hibernate/reboot/shutdown as access to these methods is + being denied for unknown reasons since the systemd transition + (bnc#798769) + +------------------------------------------------------------------- New: ---- lightdm.rules ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lightdm.spec ++++++ --- /var/tmp/diff_new_pack.cqMVXf/_old 2013-01-17 15:12:01.000000000 +0100 +++ /var/tmp/diff_new_pack.cqMVXf/_new 2013-01-17 15:12:01.000000000 +0100 @@ -32,6 +32,8 @@ Source0: %{name}-%{version}.tar.gz Source1: %{name}-greeter.pamd Source2: X11-displaymanagers-%{name} +# workaround for bnc#798769 +Source3: %{name}.rules Source100: %{name}-rpmlintrc # PATCH-FEATURE-OPENSUSE lightdm-sysconfig-support.patch [email protected] -- Adds support for reading configuration options from /etc/sysconfig/displaymanager and /etc/sysconfig/windowmanager Patch0: lightdm-sysconfig-support.patch @@ -62,6 +64,7 @@ %else BuildRequires: xdm %endif +BuildRequires: polkit BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-unix-2.0) @@ -85,6 +88,7 @@ Requires: xdm %endif Requires: ConsoleKit-x11 +Requires: polkit Requires: gdmflexiserver Recommends: upower Recommends: %{name}-lang @@ -169,8 +173,12 @@ ln -sf %{_sysconfdir}/pam.d/xdm %{buildroot}%{_sysconfdir}/pam.d/lightdm ln -sf %{_sysconfdir}/pam.d/xdm-np %{buildroot}%{_sysconfdir}/pam.d/lightdm-autologin -install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/lightdm-greeter -install -D -m 644 %{SOURCE2} %{buildroot}%{_libexecdir}/X11/displaymanagers/lightdm +install -D -m 644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/lightdm-greeter +install -D -m 644 -p %{SOURCE2} %{buildroot}%{_libexecdir}/X11/displaymanagers/lightdm + +%if 0%{?suse_version} >= 1230 +install -D -m 644 -p %{SOURCE3} %{buildroot}%{_datadir}/polkit-1/rules.d/lightdm.rules +%endif install -d %{buildroot}%{_localstatedir}/log/lightdm install -d %{buildroot}%{_localstatedir}/run/lightdm @@ -217,6 +225,9 @@ %dir %{_libexecdir}/X11/displaymanagers/ %{_libexecdir}/X11/displaymanagers/lightdm %dir %{_datadir}/xgreeters/ +%if 0%{?suse_version} >= 1230 +%{_datadir}/polkit-1/rules.d/lightdm.rules +%endif %ghost %attr(751,lightdm,lightdm) %dir %{_localstatedir}/run/lightdm %attr(750,lightdm,lightdm) %dir %{_localstatedir}/log/lightdm %attr(750,lightdm,lightdm) %dir %{_localstatedir}/lib/lightdm ++++++ lightdm.rules ++++++ polkit.addRule(function(action, subject) { if (subject.user == "lightdm") { polkit.log("action=" + action); polkit.log("subject=" + subject); if (action.id.indexOf("org.freedesktop.consolekit.system.") == 0) { return polkit.Result.YES; } if (action.id.indexOf("org.freedesktop.upower.") == 0) { return polkit.Result.YES; } } }); -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
