Home | History | Annotate | Download | only in policyrep

Lines Matching defs:Role

26     """Factory function for creating Role objects."""
28 if isinstance(name, Role):
32 return Role(qpol_policy, name)
35 return Role(qpol_policy, qpol.qpol_role_t(qpol_policy, str(name)))
37 raise exception.InvalidRole("{0} is not a valid role".format(name))
42 """Role/role attribute base class."""
51 class Role(BaseRole):
53 """A role."""
60 """Generator which yields the role's set of types."""
67 stmt = "role {0}".format(self)
79 """A role attribute."""