[lightdm] %post: setsebool -P xdm_write_home on (#963238)
Rex Dieter
rdieter at fedoraproject.org
Thu May 16 14:33:34 UTC 2013
commit ec6f257812f981d4327e598b663293bfd5f84bc4
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Thu May 16 09:33:32 2013 -0500
%post: setsebool -P xdm_write_home on (#963238)
lightdm.spec | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/lightdm.spec b/lightdm.spec
index eb2e9b2..bfbdebe 100644
--- a/lightdm.spec
+++ b/lightdm.spec
@@ -9,7 +9,7 @@
Name: lightdm
Summary: Lightweight Display Manager
Version: 1.7.0
-Release: 1%{?dist}
+Release: 2%{?dist}
# library/bindings are LGPLv2 or LGPLv3, the rest GPLv3+
License: (LGPLv2 or LGPLv3) and GPLv3+
@@ -193,8 +193,14 @@ getent passwd lightdm >/dev/null || \
## and couldn't create account with the current adduser.
exit 0
-%if 0%{?systemd}
%post
+# tweak selinux to work out-of-the-box
+# see also: http://bugzilla.redhat.com/963238
+if [ "`getsebool xdm_write_home 2>/dev/null`" == 'xdm_write_home --> off' ] ; then
+ setsebool -P xdm_write_home on &> /dev/null ||:
+fi
+%endif
+%if 0%{?systemd}
%systemd_post lightdm.service
%preun
@@ -262,6 +268,9 @@ exit 0
%changelog
+* Thu May 16 2013 Rex Dieter <rdieter at fedoraproject.org> 1.7.0-2
+- %%post: setsebool -P xdm_write_home on (#963238)
+
* Mon May 06 2013 Rex Dieter <rdieter at fedoraproject.org> 1.7.0-1
- lightdm-1.7.0 (#958473)
More information about the scm-commits
mailing list