mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-31 15:56:22 +00:00
Change to ternary for MLS enabled/disabled display in seinfo.
For style consistency in seinfo.
This commit is contained in:
parent
7a9915f34a
commit
a809d3c557
5
seinfo
5
seinfo
@ -176,10 +176,7 @@ try:
|
||||
components.append(("Users", q))
|
||||
|
||||
if (not components or args.all) and not args.flat:
|
||||
if p.mls:
|
||||
mls = "enabled"
|
||||
else:
|
||||
mls = "disabled"
|
||||
mls = "enabled" if p.mls else "disabled"
|
||||
|
||||
print("Statistics for policy file: {0}".format(args.policy))
|
||||
print("Policy Version: {0} (MLS {1})".format(p.version, mls))
|
||||
|
Loading…
Reference in New Issue
Block a user