[xguest] - Fix semanage boolean line to use -i -

Daniel J Walsh dwalsh at fedoraproject.org
Thu Jan 6 19:46:53 UTC 2011


commit 8a02e288d1b547e742647f230b525113c277187f
Author: Dan Walsh <dwalsh at redhat.com>
Date:   Thu Jan 6 14:46:39 2011 -0500

    - Fix semanage boolean line to use -i -

 xguest.spec |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/xguest.spec b/xguest.spec
index 372871d..1d81446 100644
--- a/xguest.spec
+++ b/xguest.spec
@@ -1,12 +1,11 @@
 Summary: Creates xguest user as a locked down user 
 Name: xguest
-Version: 1.0.8
-Release: 3%{?dist}
+Version: 1.0.9
+Release: 2%{?dist}
 License: GPLv2+
 Group: System Environment/Base
 BuildArch: noarch
 Source: http://people.fedoraproject.org/~dwalsh/xguest/%{name}-%{version}.tar.bz2
-patch: xguest-namespace.patch
 URL: http://people.fedoraproject.org/~dwalsh/xguest/
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -24,7 +23,6 @@ mounted on tmpfs.
 
 %prep
 %setup -q
-%patch -p1 -b .namespace
 
 %build
 
@@ -33,9 +31,9 @@ mounted on tmpfs.
 
 %install
 %{__rm} -fR %{buildroot}
-%{__mkdir} -p %{buildroot}/%{_sysconfdir}/sabayon
+%{__mkdir} -p %{buildroot}/%{_sysconfdir}/sabayon/profiles
 %{__mkdir} -p %{buildroot}/%{_sysconfdir}/security/namespace.d/ls
-install -m0644 xguest.zip %{buildroot}/%{_sysconfdir}/sabayon/
+install -m0644 xguest.zip %{buildroot}/%{_sysconfdir}/sabayon/profiles/
 install -m0644 xguest.conf %{buildroot}/%{_sysconfdir}/security/namespace.d/
 
 %pre
@@ -45,7 +43,7 @@ semanage user -a  -S targeted -P xguest -R xguest_r xguest_u  2> /dev/null  || :
 
 echo "xguest:exclusive" >> /etc/security/sepermit.conf
 
-semanage  boolean -m -S targeted -F /dev/stdin  << _EOF
+semanage  boolean -m -S targeted -i - << _EOF
 allow_polyinstantiation=1
 xguest_connect_network=1
 xguest_mount_media=1
@@ -71,7 +69,7 @@ fi
 
 %files
 %defattr(-,root,root)
-%config(noreplace) %{_sysconfdir}/sabayon/xguest.zip
+%config(noreplace) %{_sysconfdir}/sabayon/profiles/xguest.zip
 %{_sysconfdir}/security/namespace.d/
 %doc README LICENSE
 
@@ -88,6 +86,12 @@ __eof
 fi
 
 %changelog
+* Wed Jan 5 2011 Dan Walsh <dwalsh at redhat.com> - 1.0.9-2
+- Fix semanage boolean line to use -i -
+
+* Tue Oct 6 2010 Dan Walsh <dwalsh at redhat.com> - 1.0.9-1
+- Fix placement of xguest.zip file
+
 * Tue Feb 9 2010 Dan Walsh <dwalsh at redhat.com> - 1.0.8-3
 - Fix sabayon remove
 


More information about the scm-commits mailing list