Skip to contentSkip to conversation

Make setsebool be less verbose.

PATCH In review Daniel J Walsh 1 participant 1 message Oct 24, 2013 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 66/74 Make setsebool be less verbose.

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

These two patches cleanup setsebool error reporting.

This is what we currently get if user mispells boolean name.

# setsebool -P spacewalk_nfs_mountpointttt on
Actual results:
libsemanage.dbase_llist_set: record not found in the database (No such file or
directory).
libsemanage.dbase_llist_set: could not set record value (No such file or
directory).
Could not change boolean spacewalk_nfs_mountpointttt
Could not change policy booleans

Now we get

# setsebool -P spacewalk_nfs_mountpointttt on
Boolean spacewalk_nfs_mountpointttt is not defined

This patch looks good to me. acked.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJpOFgACgkQrlYvE4MpobP5uACgrFgNyhHvGYPFlJ/ZFQZKG4B5 TngAnAzC6zN3zsJPmVDcGqlXhHwdpHZF
=3lSr
-----END PGP SIGNATURE-----