mgrepl [PATCH] Deleteall user customization fails if there is a user used

- for the default login. We do not want to fail on it and continue to delete
- customizations for users which are not used for default login.
This commit is contained in:
Dan Walsh 2014-03-26 09:15:58 -04:00
parent 69fae7632e
commit 60924625b8
2 changed files with 12 additions and 4 deletions

View File

@ -674990,10 +674990,10 @@ index f8d2243..0000000
- print "%-30s (%-5s,%5s) %s" % (k, on_off[selinux.security_get_boolean_active(k)], on_off[ddict[k][2]], self.get_desc(k))
diff --git a/policycoreutils/semanage/seobject/__init__.py b/policycoreutils/semanage/seobject/__init__.py
new file mode 100644
index 0000000..08bf736
index 0000000..653750f
--- /dev/null
+++ b/policycoreutils/semanage/seobject/__init__.py
@@ -0,0 +1,2237 @@
@@ -0,0 +1,2240 @@
+#! /usr/bin/python -Es
+# Copyright (C) 2005-2013 Red Hat
+# see file 'COPYING' for use and warranty information
@ -675931,7 +675931,10 @@ index 0000000..08bf736
+ try:
+ self.begin()
+ for u in ulist:
+ self.__delete(semanage_user_get_name(u))
+ try:
+ self.__delete(semanage_user_get_name(u))
+ except OSError:
+ continue
+ self.commit()
+ except ValueError as error:
+ self.mylog.commit(0)

View File

@ -7,7 +7,7 @@
Summary: SELinux policy core utilities
Name: policycoreutils
Version: 2.2.5
Release: 8%{?dist}
Release: 9%{?dist}
License: GPLv2
Group: System Environment/Base
# Based on git repository with tag 20101221
@ -383,6 +383,11 @@ The policycoreutils-restorecond package contains the restorecond service.
%systemd_postun_with_restart restorecond.service
%changelog
* Wed Mar 9 2014 Dan Walsh <dwalsh@redhat.com> - 2.2.5-9
- mgrepl [PATCH] Deleteall user customization fails if there is a user used
- for the default login. We do not want to fail on it and continue to delete
- customizations for users which are not used for default login.
* Mon Mar 24 2014 Dan Walsh <dwalsh@redhat.com> - 2.2.5-8
- Update Translations
- Make selinux-policy build working also on another architectures related to s