/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/diff/ |
bounds.py | 68 if rule.ruletype == "typebounds": 72 format(rule.ruletype)) 76 if rule.ruletype == "typebounds": 80 format(rule.ruletype)) 99 self.ruletype = rule.ruletype 111 return self.ruletype == other.ruletype and \
|
terules.py | 37 def av_diff_template(ruletype): 43 ruletype The rule type, e.g. "allow". 51 format(ruletype, self)) 57 self._expand_generator(self._left_te_rules[ruletype], AVRuleWrapper), 58 self._expand_generator(self._right_te_rules[ruletype], AVRuleWrapper)) 76 setattr(self, "added_{0}s".format(ruletype), added) 77 setattr(self, "removed_{0}s".format(ruletype), removed) 78 setattr(self, "modified_{0}s".format(ruletype), modified) 83 def avx_diff_template(ruletype): 89 ruletype The rule type, e.g. "allowxperm" [all...] |
constraints.py | 31 constraints with the same ruletype, object class, and permission 132 if rule.ruletype == "constrain": 134 elif rule.ruletype == "mlsconstrain": 136 elif rule.ruletype == "validatetrans": 138 elif rule.ruletype == "mlsvalidatetrans": 142 format(rule.ruletype)) 149 if rule.ruletype == "constrain": 151 elif rule.ruletype == "mlsconstrain": 153 elif rule.ruletype == "validatetrans": 155 elif rule.ruletype == "mlsvalidatetrans" [all...] |
fsuse.py | 77 self.ruletype = rule.ruletype 89 return self.ruletype == other.ruletype and self.fs == other.fs
|
rbacrules.py | 97 self._left_rbac_rules[rule.ruletype].append(rule) 101 self._right_rbac_rules[rule.ruletype].append(rule) 126 self.ruletype = rule.ruletype 138 # because RBACRuleDifference groups rules by ruletype, 139 # the ruletype always matches. 149 self.ruletype = rule.ruletype 162 # because RBACRuleDifference groups rules by ruletype, 163 # the ruletype always matches [all...] |
default.py | 101 self.ruletype = default.ruletype 112 return self.ruletype == other.ruletype and \
|
mlsrules.py | 80 self._left_mls_rules[rule.ruletype].append(rule) 84 self._right_mls_rules[rule.ruletype].append(rule) 106 self.ruletype = rule.ruletype 119 # because MLSRuleDifference groups rules by ruletype, 120 # the ruletype always matches.
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/ |
boundsquery.py | 36 ruletype The rule type(s) to match. 39 ruletype = CriteriaSetDescriptor(lookup_function="validate_bounds_ruletype") variable in class:BoundsQuery 52 self.log.debug("Ruletypes: {0.ruletype}".format(self)) 57 if self.ruletype and b.ruletype not in self.ruletype:
|
defaultquery.py | 36 ruletype The rule type(s) to match. 45 ruletype = CriteriaSetDescriptor(lookup_function="validate_default_ruletype") variable in class:DefaultQuery 56 self.log.debug("Ruletypes: {0.ruletype}".format(self)) 62 if self.ruletype and d.ruletype not in self.ruletype:
|
fsusequery.py | 37 ruletype The rule type(s) to match. 61 ruletype = CriteriaSetDescriptor(lookup_function="validate_fs_use_ruletype") variable in class:FSUseQuery 72 self.log.debug("Ruletypes: {0.ruletype}".format(self)) 77 if self.ruletype and fsu.ruletype not in self.ruletype:
|
mlsrulequery.py | 36 ruletype The list of rule type(s) to match. 48 ruletype = CriteriaSetDescriptor(lookup_function="validate_mls_ruletype") variable in class:MLSRuleQuery 70 self.log.debug("Ruletypes: {0.ruletype}".format(self)) 84 if self.ruletype: 85 if rule.ruletype not in self.ruletype:
|
constraintquery.py | 38 ruletype The list of rule type(s) to match. 67 ruletype = CriteriaSetDescriptor(lookup_function="validate_constraint_ruletype") variable in class:ConstraintQuery 105 self.log.debug("Ruletypes: {0.ruletype}".format(self)) 113 if self.ruletype: 114 if c.ruletype not in self.ruletype:
|
rbacrulequery.py | 37 ruletype The list of rule type(s) to match. 58 ruletype = CriteriaSetDescriptor(lookup_function="validate_rbac_ruletype") variable in class:RBACRuleQuery 93 self.log.debug("Ruletypes: {0.ruletype}".format(self)) 105 if self.ruletype: 106 if rule.ruletype not in self.ruletype:
|
terulequery.py | 38 ruletype The list of rule type(s) to match. 85 ruletype = CriteriaSetDescriptor(lookup_function="validate_te_ruletype") variable in class:TERuleQuery 132 self.log.debug("Ruletypes: {0.ruletype}".format(self)) 148 if self.ruletype: 149 if rule.ruletype not in self.ruletype:
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/policyrep/ |
default.py | 73 obj.ruletype = "default_user" 79 obj.ruletype = "default_role" 85 obj.ruletype = "default_type" 93 obj.ruletype = "default_range" 103 ruletype = None variable in class:Default 107 return "{0.ruletype} {0.tclass} {0.default};".format(self) 110 return hash("{0.ruletype}|{0.tclass}".format(self)) 128 return "{0.ruletype} {0.tclass} {0.default} {0.default_range};".format(self)
|
bounds.py | 47 return "{0.ruletype} {0.parent} {0.child};".format(self) 50 return hash("{0.ruletype}|{0.child};".format(self)) 52 ruletype = "typebounds" variable in class:Bounds
|
rule.py | 41 return hash("{0.ruletype}|{0.source}|{0.target}|{0.tclass}|{1}|{2}".format( 45 def ruletype(self): member in class:PolicyRule
|
terule.py | 126 self._rule_string = "{0.ruletype} {0.source} {0.target}:{0.tclass} ".format(self) 151 raise exception.RuleUseError("{0} rules do not have a default type.".format(self.ruletype)) 155 raise exception.RuleUseError("{0} rules do not have file names".format(self.ruletype)) 219 return hash("{0.ruletype}|{0.source}|{0.target}|{0.tclass}|{0.xperm_type}".format(self)) 225 self._rule_string = "{0.ruletype} {0.source} {0.target}:{0.tclass} {0.xperm_type} ". \ 256 self._rule_string = "{0.ruletype} {0.source} {0.target}:{0.tclass} {0.default}".format( 285 return hash("{0.ruletype}|{0.source}|{0.target}|{0.tclass}|{1}|{2}|{3}".format( 292 "{0} rules do not have a permission set.".format(self.ruletype)) 305 if self.ruletype == "type_transition": 309 format(self.ruletype)) [all...] |
rbacrule.py | 76 return "{0.ruletype} {0.source} {0.target};".format(self) 79 return hash("{0.ruletype}|{0.source}|{0.target}".format(self)) 81 ruletype = "allow" variable in class:RoleAllow 114 return "{0.ruletype} {0.source} {0.target}:{0.tclass} {0.default};".format(self) 116 ruletype = "role_transition" variable in class:RoleTransition
|
constraint.py | 84 def __init__(self, policy, qpol_symbol, ruletype): 86 self.ruletype = ruletype 316 rule_string = "{0.ruletype} {0.tclass} ".format(self) 340 return "{0.ruletype} {0.tclass} ({1});".format(self, 345 raise ConstraintUseError("{0} rules do not have permissions.".format(self.ruletype))
|
mlsrule.py | 71 return "{0.ruletype} {0.source} {0.target}:{0.tclass} {0.default};".format(self) 73 ruletype = "range_transition" variable in class:MLSRule
|
fscontext.py | 146 return "{0.ruletype} {0.fs} {0.context};".format(self) 149 return hash("{0.ruletype}|{0.fs}".format(self)) 152 def ruletype(self): member in class:FSUse
|
__init__.py | 232 return sum(1 for c in self.constraints() if c.ruletype == "constrain") 287 return sum(1 for c in self.constraints() if c.ruletype == "mlsconstrain") 292 return sum(1 for v in self.constraints() if v.ruletype == "mlsvalidatetrans") 392 return sum(1 for b in self.bounds() if b.ruletype == "typebounds") 402 return sum(1 for v in self.constraints() if v.ruletype == "validatetrans")
|
/external/selinux/prebuilts/bin/ |
sesearch.py | 146 ruletype=args.tertypes, variable 197 ruletype=args.rbacrtypes, variable 221 ruletype=args.mlsrtypes, variable
|
/external/selinux/python/sepolicy/sepolicy/ |
__init__.py | 269 'type': str(rule.ruletype), 340 ruletype=tertypes, 353 ruletype=rtypes, 366 ruletype=ratypes, 675 ruletype=[ALLOW], 694 ruletype=["type_transition"], 709 ruletype=["type_transition"], 791 q = setools.RBACRuleQuery(_pol, ruletype=[ALLOW]) [all...] |