mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-20 18:16:41 +00:00
Throw error in seinfoflow when target is specified but not used.
This commit is contained in:
parent
e7ec9ccb60
commit
eec812b997
@ -57,6 +57,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("A target type is not used for flows in/out of a type.")
|
||||
|
||||
if args.limit_flows < 0:
|
||||
parser.error("Limit on information flows cannot be negative.")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user