From b6d5045b2f84bcd2b0694f00c5ddcaa9b85042c3 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 11 Nov 2009 14:03:52 +0000 Subject: [PATCH] Use fixed UID:GID 112:112 (RHBZ#534109). --- vhostmd.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vhostmd.spec b/vhostmd.spec index c3548b9..c862823 100644 --- a/vhostmd.spec +++ b/vhostmd.spec @@ -8,7 +8,7 @@ Summary: Virtualization host metrics daemon Name: vhostmd Version: 0.4 -Release: 0.7.gite9db007b%{?dist} +Release: 0.8.gite9db007b%{?dist} License: GPLv2+ Group: System Environment/Daemons BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root @@ -137,9 +137,10 @@ fi %pre -getent group vhostmd >/dev/null || groupadd -r vhostmd +# UID:GID 112:112 reserved, see RHBZ#534109. +getent group vhostmd >/dev/null || groupadd -g 112 -r vhostmd getent passwd vhostmd >/dev/null || \ -useradd -r -g vhostmd -d %{_datadir}/vhostmd -s /sbin/nologin \ +useradd -u 112 -r -g vhostmd -d %{_datadir}/vhostmd -s /sbin/nologin \ -c "Virtual Host Metrics Daemon" vhostmd exit 0 @@ -183,6 +184,9 @@ exit 0 %changelog +* Wed Nov 11 2009 Richard W.M. Jones - 0.4-0.8.gite9db007b +- Use fixed UID:GID 112:112 (RHBZ#534109). + * Tue Nov 10 2009 Richard W.M. Jones - 0.4-0.7.gite9db007b - vm-dump-metrics-devel package should require version and release of base package.