Lines Matching refs:avc_rule
49 def expand_avc_rule(policy, avc_rule): argument
53 source_types = avc_rule['source_types']['set']
55 if(avc_rule['source_types']['flags']['complement']):
61 print avc_rule['source_types']['set']
65 target_types = avc_rule['target_types']['set']
67 if(avc_rule['target_types']['flags']['complement']):
73 print avc_rule['target_types']['set']
77 rule_classes = avc_rule['classes']['set']
81 print avc_rule['source_types']['set']
82 print avc_rule['target_types']['set']
84 print avc_rule['permissions']['set']
91 permissions = avc_rule['permissions']['set']
104 if(avc_rule['permissions']['flags']['complement']):
109 print avc_rule['permissions']['set']
125 def expand_avc_rule_to_xml(policy, avc_rule, rule_name, rule_type): argument
131 source_types = avc_rule['source_types']['set']
133 if(avc_rule['source_types']['flags']['complement']):
139 print avc_rule['source_types']['set']
147 target_types = avc_rule['target_types']['set']
149 if(avc_rule['target_types']['flags']['complement']):
155 print avc_rule['target_types']['set']
163 rule_classes = avc_rule['classes']['set']
170 permissions = avc_rule['permissions']['set']
184 if(avc_rule['permissions']['flags']['complement']):
189 print avc_rule['permissions']['set']