seinfo: Fix incorrect target platform check.

Incorrectly checks if policy is Xen.

Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
This commit is contained in:
Chris PeBenito 2024-04-15 16:26:39 -04:00
parent 7f1eaf4f68
commit 67e979ce4f
1 changed files with 1 additions and 1 deletions

2
seinfo
View File

@ -308,7 +308,7 @@ try:
components.append(("Validatetrans", vtq, lambda x: x.statement()))
if p.target_platform == "xen":
if p.target_platform == setools.PolicyTarget.xen:
if args.ioportconquery or args.all:
xiopq = setools.IoportconQuery(p)
components.append(("Ioportcon", xiopq, lambda x: x.statement()))