All of lore.kernel.org
 help / color / mirror / Atom feed
* Fix boolean handling in semanage
@ 2009-09-30 18:23 Daniel J Walsh
  2009-11-10 22:58 ` Chad Sellers
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel J Walsh @ 2009-09-30 18:23 UTC (permalink / raw)
  To: SE Linux

[-- Attachment #1: Type: text/plain, Size: 62 bytes --]

Also fix error message triggered by broken boolean handling.


[-- Attachment #2: booleans.patch --]
[-- Type: text/plain, Size: 708 bytes --]

diff --git a/policycoreutils/semanage/semanage b/policycoreutils/semanage/semanage
index ffaca5b..437eca3 100644
--- a/policycoreutils/semanage/semanage
+++ b/policycoreutils/semanage/semanage
@@ -315,6 +315,7 @@ Object-specific Options (see above):
 		
 		if object == "boolean":
 			OBJECT = seobject.booleanRecords(store)
+                        modify = True
 		
 		if object == "permissive":
 			OBJECT = seobject.permissiveRecords(store)
@@ -404,7 +405,7 @@ Object-specific Options (see above):
 
                         return
 
-                raise ValueError(_("Invalid command") % " ".join(argv))
+                raise ValueError(_("Invalid command: semanage %s") % " ".join(argv))
 
 	#
 	# 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-10 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 18:23 Fix boolean handling in semanage Daniel J Walsh
2009-11-10 22:58 ` Chad Sellers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.