Hello community,

here is the log from the commit of package kvm for openSUSE:Factory
checked in at Fri Jul 1 16:49:50 CEST 2011.



--------
--- kvm/kvm.changes     2011-05-19 17:11:28.000000000 +0200
+++ /mounts/work_src_done/STABLE/kvm/kvm.changes        2011-06-07 
17:21:43.000000000 +0200
@@ -0,0 +1,6 @@
+-------------------------------------------------------------------
+Tue Jun  7 15:19:50 UTC 2011 - [email protected]
+
+- added creation of user/group qemu/qemu for use by libvirt (and
+  potentially others) to avoid running as root
+

calling whatdependson for head-i586


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

Other differences:
------------------
++++++ kvm.spec ++++++
--- /var/tmp/diff_new_pack.FqGtiV/_old  2011-07-01 16:44:58.000000000 +0200
+++ /var/tmp/diff_new_pack.FqGtiV/_new  2011-07-01 16:44:58.000000000 +0200
@@ -83,12 +83,13 @@
 %if 0%{?suse_version} < 1110
 Requires:       kvm-kmp
 %endif
+Requires(pre):  pwdutils
 License:        BSD3c ; GPLv2 ; GPLv2+ ; LGPLv2.1+ ; MIT
 Group:          System/Kernel
 Summary:        Kernel-based Virtual Machine
 Url:            http://kvm.qumranet.com/
 Version:        %{package_base_version}%{package_extra_version} 
-Release:        3
+Release:        5
 Source0:        qemu-%{name}-%{package_base_version}.tar.bz2
 Source1:        60-kvm.rules
 Source2:        qemu-ifup
@@ -503,7 +504,11 @@
 rm -rf $RPM_BUILD_ROOT
 
 %pre
-/usr/sbin/groupadd -r kvm 2>/dev/null || :
+%{_bindir}/getent group kvm >/dev/null || %{_sbindir}/groupadd -r kvm 
2>/dev/null
+%{_bindir}/getent group qemu >/dev/null || %{_sbindir}/groupadd -r qemu 
2>/dev/null
+%{_bindir}/getent passwd qemu >/dev/null || \
+  %{_sbindir}/useradd -r -g qemu -G kvm -d / -s /sbin/nologin \
+  -c "qemu user" qemu
 
 %files
 %defattr(-,root,root)




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



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to