Path prep prepared
This commit is contained in:
+1
-2
@@ -502,8 +502,7 @@ def menu_prepare_to_enforce():
|
|||||||
utils.policyfunctions.addHash(allowlist_child_id, allowlist_childhashlist)
|
utils.policyfunctions.addHash(allowlist_child_id, allowlist_childhashlist)
|
||||||
|
|
||||||
ct.locked()
|
ct.locked()
|
||||||
print(repr(processed_paths))
|
|
||||||
print(processed_paths)
|
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -20,11 +20,14 @@ import utils.pretty as ct
|
|||||||
|
|
||||||
def addHash(policy, hash):
|
def addHash(policy, hash):
|
||||||
print(f"Adding the following hashes to {policy}:")
|
print(f"Adding the following hashes to {policy}:")
|
||||||
print(hash)
|
for p in hash:
|
||||||
|
print(p)
|
||||||
|
|
||||||
|
|
||||||
def addPath(policy, hash):
|
def addPath(policy, hash):
|
||||||
print(f"Adding the following Path Exclusions to {policy}:")
|
print(f"Adding the following Path Exclusions to {policy}:")
|
||||||
print(hash)
|
for p in hash:
|
||||||
|
print(p)
|
||||||
|
|
||||||
def addHashReal(url, allowlistID, hashlist):
|
def addHashReal(url, allowlistID, hashlist):
|
||||||
endpoint = url + '/v1/hash/application/add'
|
endpoint = url + '/v1/hash/application/add'
|
||||||
|
|||||||
Reference in New Issue
Block a user