Lines Matching defs:User
27 """Factory function for creating User objects."""
29 if isinstance(name, User):
33 return User(qpol_policy, name)
36 return User(qpol_policy, qpol.qpol_user_t(qpol_policy, str(name)))
38 raise exception.InvalidUser("{0} is not a valid user".format(name))
41 class User(symbol.PolicySymbol):
43 """A user."""
47 """The user's set of roles."""
57 # will confuse, especially for role set equality user queries.
65 """The user's default MLS level."""
70 """The user's MLS range."""
75 stmt = "user {0} roles ".format(self)