Hello community,

here is the log from the commit of package openstack-nova for openSUSE:Factory 
checked in at 2013-02-28 07:12:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openstack-nova (Old)
 and      /work/SRC/openSUSE:Factory/.openstack-nova.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openstack-nova", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/openstack-nova/openstack-nova.changes    
2013-02-22 16:56:06.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.openstack-nova.new/openstack-nova.changes       
2013-02-28 10:19:31.000000000 +0100
@@ -0,0 +1,8 @@
+-------------------------------------------------------------------
+Mon Feb 25 15:43:09 UTC 2013 - [email protected]
+
+- Add openstack-nova-polkit.rules: polkit rules for the new polkit
+  that uses javascript. On openSUSE 12.3 and later, we install this
+  file in /etc/polkit-1/rules.d/ instead of installing the pkla
+  file which is of no use with the new polkit.
+

New:
----
  openstack-nova-polkit.rules

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ openstack-nova.spec ++++++
--- /var/tmp/diff_new_pack.DQdxzK/_old  2013-02-28 10:19:33.000000000 +0100
+++ /var/tmp/diff_new_pack.DQdxzK/_new  2013-02-28 10:19:33.000000000 +0100
@@ -40,6 +40,7 @@
 Source9:        org.openstack.nova.compute.pkla
 Source10:       openstack-nova-novncproxy.init
 Source11:       sysconfig.openstack-novncproxy
+Source12:       openstack-nova-polkit.rules
 # This adds support for using /dev/rdb? devices for ceph volumes.  It's need
 # because our qemu and libvirt don't have librados support yet. (Not sure yet 
if
 # this is worth upstreaming, we would at least have to make in configurable)
@@ -295,10 +296,13 @@
 
 install -p -D -m 644 %{SOURCE11} 
%{buildroot}%{_var}/adm/fillup-templates/sysconfig.openstack-nova-novncproxy
 
-%if 0%{?suse_version} > 1110
+%if 0%{?suse_version} > 1110 && 0%{?suse_version} < 1230
   mkdir -p 
%{buildroot}%{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d/
   cp -a %{SOURCE9} 
%{buildroot}%{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d/
 %endif
+%if 0%{?suse_version} >= 1230
+  install -D -m 644 %{SOURCE12} 
%{buildroot}%{_sysconfdir}/polkit-1/rules.d/50-openstack-nova-compute.rules
+%endif
 
 %pre
 getent group %{groupname} >/dev/null || groupadd -r %{groupname}
@@ -495,9 +499,12 @@
 %{_sbindir}/rc%{name}-compute
 %{_bindir}/nova-compute
 %{_mandir}/man1/nova-compute.1%{?ext_man}
-%if 0%{?suse_version} > 1110
+%if 0%{?suse_version} > 1110 && 0%{?suse_version} < 1230
 
%{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d/org.openstack.nova.compute.pkla
 %endif
+%if 0%{?suse_version} >= 1230
+%config %{_sysconfdir}/polkit-1/rules.d/50-openstack-nova-compute.rules
+%endif
 
 %files network
 %defattr(-,root,root,-)

++++++ openstack-nova-polkit.rules ++++++
// grant nova-compute libvirt management permissions

polkit.addRule(function(action, subject) {
    if (action.id == "org.libvirt.unix.manage" &&
        subject.user == "openstack-nova") {
        return polkit.Result.YES;
    }
});
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to