From 094dbe390649a46a4d3936eea4f9181fecd55864 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Sat, 7 Feb 2015 11:47:07 -0500 Subject: [PATCH] Add additional options checking in sedta. --- sedta | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sedta b/sedta index e409b39..0ad7637 100755 --- a/sedta +++ b/sedta @@ -89,6 +89,9 @@ args = parser.parse_args() if not args.target and (args.shortest_path or args.all_paths): parser.error("The target type must be specified to determine a path.") +if args.target and not (args.shortest_path or args.all_paths): + parser.error("An algorithm must be specified to determine a path.") + try: p = setools.SELinuxPolicy(args.policy) g = setools.dta.DomainTransitionAnalysis(p)