provide polkit localauthority file to allow remote connection to sysadmin group
require netcat-openbsd for remote connection [release 1.2.10-2mamba;Thu Dec 11 2014]
This commit is contained in:
parent
31aa0e9fae
commit
0c9241334c
19
libvirt.spec
19
libvirt.spec
@ -3,7 +3,7 @@
|
||||
|
||||
Name: libvirt
|
||||
Version: 1.2.10
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: Virtualization API
|
||||
Group: Development/Libraries
|
||||
Vendor: openmamba
|
||||
@ -57,6 +57,7 @@ BuildRequires: libxen-devel
|
||||
%endif
|
||||
Requires: dnsmasq
|
||||
Requires: ebtables
|
||||
Requires: netcat-openbsd
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
@ -113,6 +114,17 @@ install -D -m644 %{S:1} %{buildroot}%{_sysconfdir}/sysconfig/libvirtd
|
||||
|
||||
install -d %{buildroot}%{_localstatedir}/log/libvirt/{lxc,uml,qemu}
|
||||
|
||||
install -d %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d/50-org.libvirt.unix.manage.pkla << _EOF
|
||||
[Allow group libvirt management permissions]
|
||||
Identity=unix-group:sysadmin
|
||||
Action=org.libvirt.unix.manage
|
||||
ResultAny=yes
|
||||
ResultInactive=yes
|
||||
ResultActive=yes
|
||||
_EOF
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
rm -fr %{buildroot}%{_datadir}/doc/libvirt-%{version}
|
||||
@ -170,6 +182,7 @@ fi
|
||||
%dir %{_sysconfdir}/libvirt/qemu/networks/autostart
|
||||
%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
|
||||
%{_sysconfdir}/libvirt/nwfilter
|
||||
%{_sysconfdir}/polkit-1/localauthority/50-local.d/50-org.libvirt.unix.manage.pkla
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
|
||||
%config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
|
||||
%config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
|
||||
@ -284,6 +297,10 @@ fi
|
||||
#%doc ChangeLog NEWS README TODO
|
||||
|
||||
%changelog
|
||||
* Thu Dec 11 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.10-2mamba
|
||||
- provide polkit localauthority file to allow remote connection to sysadmin group
|
||||
- require netcat-openbsd for remote connection
|
||||
|
||||
* Mon Nov 03 2014 Automatic Build System <autodist@mambasoft.it> 1.2.10-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user