Home | History | Annotate | Download | only in policyrep

Lines Matching defs:Common

25     """Factory function for creating common permission set objects."""
27 if isinstance(name, Common):
31 return Common(policy, name)
34 return Common(policy, qpol.qpol_common_t(policy, str(name)))
36 raise exception.InvalidCommon("{0} is not a valid common".format(name))
54 class Common(symbol.PolicySymbol):
56 """A common permission set."""
63 """The list of the common's permissions."""
67 return "common {0}\n{{\n\t{1}\n}}".format(self, '\n\t'.join(self.perms))
70 class ObjClass(Common):
76 if other in self.common.perms:
84 def common(self):
86 The common that the object class inherits.
89 NoCommon The object class does not inherit a common.
93 return common_factory(self.policy, self.qpol_symbol.common(self.policy))
95 raise exception.NoCommon("{0} does not inherit a common.".format(self))
101 stmt += "inherits {0}\n".format(self.common)