From b9a9e6c03fb4804c41766a79a6e7fc1102522a0c Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Wed, 20 Mar 2024 08:26:42 -0400 Subject: [PATCH] seinfo: Fix port range issue uncovered by policyrep stub fixes. Signed-off-by: Chris PeBenito --- seinfo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seinfo b/seinfo index 70de43a7..13e5b36d 100755 --- a/seinfo +++ b/seinfo @@ -196,7 +196,7 @@ try: parser.error("Enter a pkey number or range, e.g. 0x22 or 0x6000-0x6020") if len(pkeys) == 2: - ibpkq.pkeys = setools.IbpkeyconRange(pkeys) + ibpkq.pkeys = setools.IbpkeyconRange(*pkeys) elif len(pkeys) == 1: ibpkq.pkeys = setools.IbpkeyconRange(pkeys[0], pkeys[0]) else: @@ -248,7 +248,7 @@ try: parser.error("Enter a port number or range, e.g. 22 or 6000-6020") if len(ports) == 2: - pcq.ports = setools.PortconRange(ports) + pcq.ports = setools.PortconRange(*ports) elif len(ports) == 1: pcq.ports = setools.PortconRange(ports[0], ports[0]) else: