Skip to contentSkip to conversation

selinux_current_policy_path will return none on a disabled SELinux system

PATCH In review Dan Walsh 2 participants 5 messages Nov 13, 2013 SELinux security module

lore
Share & tools
lore

Dan Walsh

author
#0 lore raw

PATCH 3/5 selinux_current_policy_path will return none on a disabled SELinux system

---
 policycoreutils/audit2allow/sepolgen-ifgen | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
policycoreutils/audit2allow/sepolgen-ifgen +1 -1
index 3967ba5..83c7ecf 100644
@@ -63,7 +63,7 @@ def parse_options():
 
 def get_policy():
     p = selinux.selinux_current_policy_path()
-    if os.path.exists(p):
+    if p and os.path.exists(p):
         return p
     i = selinux.security_policyvers()
     p = selinux.selinux_binary_policy_path() + "." + str(i)
Signature · 7 lines
1.8.4.2


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#1 lore raw

PATCH 4/5 Add -P semodule option to man page

---
 policycoreutils/semodule/semodule.8 | 3 +++
 1 file changed, 3 insertions(+)
policycoreutils/semodule/semodule.8 +3 -0
index 35277e9..2a91697 100644
@@ -59,6 +59,9 @@ do not reload policy after commit
 .B  \-h,\-\-help        
 prints help message and quit
 .TP
+.B \-P,\-\-preserve_tunables
+Preserve tunables in policy
+.TP
 .B  \-v,\-\-verbose     
 be verbose
 
Signature · 7 lines
1.8.4.2


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw

Re: [PATCH 04/05] Add -P semodule option to man page

Quoted 3 lines · Dan Walsh
---
 policycoreutils/semodule/semodule.8 | 3 +++
 1 file changed, 3 insertions(+)

patch 1 applied to #master and pushed as policycoreutils 2.2.3. patches 2-4 applied to #next.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

author
#3 lore raw

PATCH 5/5 Verify type being passed into semanage permissive is a valid domain.

In reply to Dan Walsh

Fix semanage login -a ... To default to the range of the selinux user if the range is not specified.

---
 policycoreutils/semanage/semanage             |    2 +-
 policycoreutils/semanage/seobject/__init__.py | 2243 +++++++++++++++++++++++++
 2 files changed, 2244 insertions(+), 1 deletion(-)
 create mode 100644 policycoreutils/semanage/seobject/__init__.py
policycoreutils/semanage/semanage +1 -1
index 36b41cd..99ca575 100644
@@ -229,7 +229,7 @@ def parser_add_type(parser, name):
 def parser_add_level(parser, name):
     parser.add_argument('-L', '--level', default='s0', help=_('Default SELinux Level for SELinux user, s0 Default. (MLS/MCS Systems only)'))
 def parser_add_range(parser, name):
-    parser.add_argument('-r', '--range', default="s0",
+    parser.add_argument('-r', '--range', default=None,
                              help=_('''
 MLS/MCS Security Range (MLS/MCS Systems only)
 SELinux Range  for SELinux login mapping
policycoreutils/semanage/seobject/__init__.py new file +2243 -0

2,243 lines not on this page · raw message

Signature · 7 lines
1.8.4.2


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw

Re: [PATCH 05/05] Verify type being passed into semanage permissive is a valid domain.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ignore patch 05/05. It includes stuff it should not. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlKDnpkACgkQrlYvE4MpobPQvQCfX2z2T6lEoRrcjB7lxIDbgkn/ +NkAnRiAKAcBqOA1LCDsYlfc5PqlUVvb
=ggDD
-----END PGP SIGNATURE-----

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.