[xguest/f17] Remove Requirement for gdm
Daniel J Walsh
dwalsh at fedoraproject.org
Mon Jul 2 09:58:58 UTC 2012
commit aca77c5f494ded737d1530eae14067a62f2d32c3
Author: Dan Walsh <dwalsh at redhat.com>
Date: Mon Jul 2 05:58:56 2012 -0400
Remove Requirement for gdm
- Fix xguest entry in /etc/shadow so gdm lists it
xguest.spec | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/xguest.spec b/xguest.spec
index 06236d6..707b973 100644
--- a/xguest.spec
+++ b/xguest.spec
@@ -1,7 +1,7 @@
Summary: Creates xguest user as a locked down user
Name: xguest
Version: 1.0.10
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv2+
Group: System Environment/Base
BuildArch: noarch
@@ -12,12 +12,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(pre): pam >= 0.99.8.1-17 selinux-policy-targeted > 3.6.3-12
Requires(pre): policycoreutils-sandbox
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.
+SELinux is in enforcing mode. The user is only allowed to log in via graphical login program.
The home and temporary directories of the user will be polyinstantiated and
mounted on tmpfs.
@@ -41,6 +40,7 @@ install -m0644 xguest.conf %{buildroot}/%{_sysconfdir}/security/namespace.d/
if [ $1 -eq 1 ]; then
semanage user -a -S targeted -P xguest -R xguest_r xguest_u 2> /dev/null || :
(useradd -c "Guest" -Z xguest_u -d /var/lib/xguest/home/xguest xguest || semanage login -a -S targeted -s xguest_u xguest || semanage login -m -S targeted -s xguest_u xguest) 2>/dev/null || exit 1
+sed -i 's/^xguest:!!:/xguest:\*:/g' /etc/shadow
echo "xguest:exclusive" >> /etc/security/sepermit.conf
@@ -84,6 +84,10 @@ __eof
fi
%changelog
+* Mon Jul 2 2012 Dan Walsh <dwalsh at redhat.com> - 1.0.10-4
+- Remove Requirement for gdm
+- Fix xguest entry in /etc/shadow so gdm lists it
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list