libsemanage: use semanage_bool_get_value to print a boolean

... and not semanage_bool_set_value.

This fixes "python2 pywrap-test.py -v -B -C"
This commit is contained in:
Nicolas Iooss 2014-06-14 18:58:26 +02:00 committed by Stephen Smalley
parent 49c738fc93
commit 2eba8aa1f5
1 changed files with 2 additions and 2 deletions

View File

@ -829,7 +829,7 @@ class Tests:
if self.verbose: print "SEBool name set: ", semanage.semanage_bool_get_name(pbool) if self.verbose: print "SEBool name set: ", semanage.semanage_bool_get_name(pbool)
semanage.semanage_bool_set_value(pbool, 0) semanage.semanage_bool_set_value(pbool, 0)
if self.verbose: print "SEbool value set: ", semanage.semanage_bool_set_value(pbool) if self.verbose: print "SEbool value set: ", semanage.semanage_bool_get_value(pbool)
(status,key) = semanage.semanage_bool_key_extract(sh, pbool) (status,key) = semanage.semanage_bool_key_extract(sh, pbool)
if status < 0: if status < 0:
@ -912,7 +912,7 @@ class Tests:
if self.verbose: print "SEBool name set: ", semanage.semanage_bool_get_name(abool) if self.verbose: print "SEBool name set: ", semanage.semanage_bool_get_name(abool)
semanage.semanage_bool_set_value(abool, 0) semanage.semanage_bool_set_value(abool, 0)
if self.verbose: print "SEbool value set: ", semanage.semanage_bool_set_value(abool) if self.verbose: print "SEbool value set: ", semanage.semanage_bool_get_value(abool)
print "Starting transaction..." print "Starting transaction..."
status = semanage.semanage_begin_transaction(sh) status = semanage.semanage_begin_transaction(sh)