rpms/xguest/devel xguest.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Daniel J Walsh (dwalsh) fedora-extras-commits at redhat.com
Fri Dec 21 17:26:09 UTC 2007


Author: dwalsh

Update of /cvs/extras/rpms/xguest/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7904/devel

Modified Files:
	.cvsignore sources 
Added Files:
	xguest.spec 
Log Message:
Initial Fedora Release of xguest



--- NEW FILE xguest.spec ---
Summary: Creates xguest user as a locked down user 
Name: xguest
Version: 1.0.6
Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Base
BuildArch: noarch
Source: http://people.fedoraproject.org/~dwalsh/xguest/%{name}-%{version}.tar.bz2
URL: http://people.fedoraproject.org/~dwalsh/xguest/

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(post): pam >= 0.99.8.1-9.fc8 selinux-policy > 3.0.8-60.fc8
Requires(post): policycoreutils
Requires(post): sabayon-apply
Requires: gdm >= 1:2.20.0-15.fc8

%description
Installing this package sets up the xguest user to be used as a temporary
account to switch to or as a kiosk user account. The account is disabled unless
SELinux is in enforcing mode. The user is only allowed to log in via gdm.
The home and temporary directories of the user will be polyinstantiated and
mounted on tmpfs.

%prep
%setup -q

%build

%clean
%{__rm} -fR %{buildroot}

%install
%{__rm} -fR %{buildroot}
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/desktop-profiles
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/rc.d/init.d
install -m0644 xguest.zip %{buildroot}/%{_sysconfdir}/desktop-profiles/
install -m0755 xguest.init %{buildroot}/%{_sysconfdir}/rc.d/init.d/xguest

%post
if [ $1 = 1 ]; then

echo -n \
'
# xguest begin
# Inserted by the xguest package.
/tmp    tmpfs   tmpfs   ~xguest
/var/tmp        tmpfs   tmpfs   ~xguest
$HOME           tmpfs   tmpfs   ~xguest
# xguest end
' >> /etc/security/namespace.conf 

echo xguest >> /etc/security/sepermit.conf

semanage user -a -P xguest -R xguest_r xguest_u  2> /dev/null
useradd -c "X Guest User" -Z xguest_u xguest 2> /dev/null

/sbin/chkconfig xguest --add

/usr/bin/python << __eof
from sabayon import userdb
db = userdb.get_database()
db.set_profile("xguest", "xguest.zip")
__eof
setsebool -P allow_polyinstantiation=1 browser_confine_xguest=1 browser_write_xguest_data=1 xguest_connect_network=1 xguest_mount_media=1 xguest_use_bluetooth=1
fi

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/desktop-profiles/xguest.zip
%{_sysconfdir}/rc.d/init.d/xguest
%doc README LICENSE

%preun
if [ $1 = 0 ]; then
sed -i '/^xguest$/d' /etc/security/sepermit.conf
semanage login -d xguest 2> /dev/null
sed -i '/^# xguest begin/,/^# xguest end/d' /etc/security/namespace.conf 

/usr/bin/python << __eof
from sabayon import userdb
db = userdb.get_database()
db.set_profile("xguest", "")
__eof

/sbin/chkconfig --del xguest 
fi

%changelog
* Tue Dec 18 2007 Dan Walsh <dwalsh at redhat.com> - 1.0.6-2
- Remove lines from namespace.init on package removal

* Mon Dec 17 2007 Dan Walsh <dwalsh at redhat.com> - 1.0.6-1
- Remove xguest init.d script on uninstall
- Fix description


* Fri Dec 7 2007 Dan Walsh <dwalsh at redhat.com> - 1.0.5-2
- Turn on the xguest booleans

* Fri Dec 7 2007 Dan Walsh <dwalsh at redhat.com> - 1.0.5-1
- Allow xguest to run nm-applet

* Tue Nov 27 2007 Dan Walsh <dwalsh at redhat.com> - 1.0.4-2
- Fix permissions on /etc/init.d/xguest

* Wed Nov 21 2007 Dan Walsh <dwalsh at redhat.com> - 1.0.4-1
- Add mount code to allow sharing of file system so hal and automount will work.
- I have added an initscript to set the / as shared and /tmp, /var/tmp and /home/xguest as private

* Fri Oct 26 2007 Dan Walsh <dwalsh at redhat.com> - 1.0.3-1
- Remove exit lines
- Add LICENSE

* Mon Oct 22 2007 Dan Walsh <dwalsh at redhat.com> - 1.0.2-1
- Cleanup spec file

* Mon Oct 22 2007 Dan Walsh <dwalsh at redhat.com> - 1.0.1-2
- Turn on allow_polyinstantiation boolean

* Fri Oct 12 2007 Dan Walsh <dwalsh at redhat.com> - 1.0.1-1
- Add sabayon support

* Thu Sep 13 2007 Dan Walsh <dwalsh at redhat.com> - 1.0.0-1
- Initial version


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/xguest/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	20 Dec 2007 19:01:50 -0000	1.1
+++ .cvsignore	21 Dec 2007 17:25:35 -0000	1.2
@@ -0,0 +1 @@
+xguest-1.0.6.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/xguest/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	20 Dec 2007 19:01:50 -0000	1.1
+++ sources	21 Dec 2007 17:25:35 -0000	1.2
@@ -0,0 +1 @@
+b69683dc4e29e451921bf6a57174516d  xguest-1.0.6.tar.bz2




More information about the fedora-extras-commits mailing list