util.policy_files
util.policy_files
A few methods for parsing policies.
get_actions_from_json_policy_file(file)
read the json policy file and return a list of actions
Source code in policy_sentry/util/policy_files.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
get_actions_from_policy(data)
Given a policy dictionary, create a list of the actions
Source code in policy_sentry/util/policy_files.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
get_actions_from_statement(statement)
Given a statement dictionary, create a list of the actions
Source code in policy_sentry/util/policy_files.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|