Blame SOURCES/0026-python-semanage-Do-not-use-default-s0-range-in-seman.patch

9bbebd
From c2e942fc452bff06cc5ed9017afe169c6941f4e4 Mon Sep 17 00:00:00 2001
9bbebd
From: Petr Lautrbach <plautrba@redhat.com>
9bbebd
Date: Tue, 3 Sep 2019 15:17:27 +0200
9bbebd
Subject: [PATCH] python/semanage: Do not use default s0 range in "semanage
9bbebd
 login -a"
9bbebd
9bbebd
Using the "s0" default means that new login mappings are always added with "s0"
9bbebd
range instead of the range of SELinux user.
9bbebd
9bbebd
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
9bbebd
---
9bbebd
 python/semanage/semanage | 2 +-
9bbebd
 1 file changed, 1 insertion(+), 1 deletion(-)
9bbebd
9bbebd
diff --git a/python/semanage/semanage b/python/semanage/semanage
9bbebd
index 4c766ae3..fa78afce 100644
9bbebd
--- a/python/semanage/semanage
9bbebd
+++ b/python/semanage/semanage
9bbebd
@@ -221,7 +221,7 @@ def parser_add_level(parser, name):
9bbebd
 
9bbebd
 
9bbebd
 def parser_add_range(parser, name):
9bbebd
-    parser.add_argument('-r', '--range', default="s0",
9bbebd
+    parser.add_argument('-r', '--range', default='',
9bbebd
                         help=_('''
9bbebd
 MLS/MCS Security Range (MLS/MCS Systems only)
9bbebd
 SELinux Range  for SELinux login mapping
9bbebd
-- 
9bbebd
2.21.0
9bbebd