[selinux-policy/f16] Make users_extra and seusers.final into config(noreplace) so semanage users and login does not get o

Daniel J Walsh dwalsh at fedoraproject.org
Tue Aug 23 17:59:14 UTC 2011


commit 2c6a4d39b2f6853750e569cc12f3b725088cdad0
Author: Dan Walsh <dwalsh at redhat.com>
Date:   Tue Aug 23 13:59:00 2011 -0400

    Make users_extra and seusers.final into config(noreplace) so semanage users and login does not get overwritten

 selinux-policy.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/selinux-policy.spec b/selinux-policy.spec
index e1f66d7..4ea9766 100644
--- a/selinux-policy.spec
+++ b/selinux-policy.spec
@@ -17,7 +17,7 @@
 Summary: SELinux policy configuration
 Name: selinux-policy
 Version: 3.10.0
-Release: 19%{?dist}
+Release: 20%{?dist}
 License: GPLv2+
 Group: System Environment/Base
 Source: serefpolicy-%{version}.tgz
@@ -141,9 +141,9 @@ rm -rf %{buildroot}%{_sysconfdir}/selinux/%1/contexts/netfilter_contexts
 %verify(not mtime) %{_sysconfdir}/selinux/%1/modules/active/file_contexts \
 %verify(not mtime) %{_sysconfdir}/selinux/%1/modules/active/file_contexts.homedirs \
 %verify(not mtime) %{_sysconfdir}/selinux/%1/modules/active/file_contexts.template \
-%verify(not mtime) %{_sysconfdir}/selinux/%1/modules/active/seusers.final \
+%config(noreplace) %verify(not mtime) %{_sysconfdir}/selinux/%1/modules/active/seusers.final \
 %verify(not mtime) %{_sysconfdir}/selinux/%1/modules/active/netfilter_contexts \
-%verify(not mtime) %{_sysconfdir}/selinux/%1/modules/active/users_extra \
+%config(noreplace) %verify(not mtime) %{_sysconfdir}/selinux/%1/modules/active/users_extra \
 %verify(not mtime) %{_sysconfdir}/selinux/%1/modules/active/homedir_template \
 %verify(not mtime) %{_sysconfdir}/selinux/%1/modules/active/modules/*.pp \
 %ghost %{_sysconfdir}/selinux/%1/modules/active/*.local \
@@ -466,6 +466,9 @@ SELinux Reference policy mls base module.
 %endif
 
 %changelog
+* Tue Aug 23 2011 Dan Walsh <dwalsh at redhat.com> 3.10.0-20
+- Make users_extra and seusers.final into config(noreplace) so semanage users and login does not get overwritten
+
 * Tue Aug 23 2011 Miroslav Grepl <mgrepl at redhat.com> 3.10.0-19
 - Add policy for sa-update being run out of cron jobs
 - Add create perms to postgresql_manage_db


More information about the scm-commits mailing list