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:
parent
69fae7632e
commit
60924625b8
@ -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))
|
- 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
|
diff --git a/policycoreutils/semanage/seobject/__init__.py b/policycoreutils/semanage/seobject/__init__.py
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..08bf736
|
index 0000000..653750f
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/policycoreutils/semanage/seobject/__init__.py
|
+++ b/policycoreutils/semanage/seobject/__init__.py
|
||||||
@@ -0,0 +1,2237 @@
|
@@ -0,0 +1,2240 @@
|
||||||
+#! /usr/bin/python -Es
|
+#! /usr/bin/python -Es
|
||||||
+# Copyright (C) 2005-2013 Red Hat
|
+# Copyright (C) 2005-2013 Red Hat
|
||||||
+# see file 'COPYING' for use and warranty information
|
+# see file 'COPYING' for use and warranty information
|
||||||
@ -675931,7 +675931,10 @@ index 0000000..08bf736
|
|||||||
+ try:
|
+ try:
|
||||||
+ self.begin()
|
+ self.begin()
|
||||||
+ for u in ulist:
|
+ for u in ulist:
|
||||||
+ self.__delete(semanage_user_get_name(u))
|
+ try:
|
||||||
|
+ self.__delete(semanage_user_get_name(u))
|
||||||
|
+ except OSError:
|
||||||
|
+ continue
|
||||||
+ self.commit()
|
+ self.commit()
|
||||||
+ except ValueError as error:
|
+ except ValueError as error:
|
||||||
+ self.mylog.commit(0)
|
+ self.mylog.commit(0)
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
Summary: SELinux policy core utilities
|
Summary: SELinux policy core utilities
|
||||||
Name: policycoreutils
|
Name: policycoreutils
|
||||||
Version: 2.2.5
|
Version: 2.2.5
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
# Based on git repository with tag 20101221
|
# 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
|
%systemd_postun_with_restart restorecond.service
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Mar 24 2014 Dan Walsh <dwalsh@redhat.com> - 2.2.5-8
|
||||||
- Update Translations
|
- Update Translations
|
||||||
- Make selinux-policy build working also on another architectures related to s
|
- Make selinux-policy build working also on another architectures related to s
|
||||||
|
Loading…
Reference in New Issue
Block a user