Lines Matching refs:isattr
252 static int create_role(uint32_t scope, unsigned char isattr, role_datum_t **role, char **key) in create_role() argument
261 isattr = isattr ? ROLE_ATTRIB : ROLE_ROLE; in create_role()
276 datum->flavor = isattr; in create_role()
295 if (*role && (isattr != (*role)->flavor)) { in create_role()
315 role_datum_t *declare_role(unsigned char isattr) in declare_role() argument
323 ret = create_role(SCOPE_DECL, isattr, &role, &key); in declare_role()
387 static int create_type(uint32_t scope, unsigned char isattr, type_datum_t **type) in create_type() argument
395 isattr = isattr ? TYPE_ATTRIB : TYPE_TYPE; in create_type()
416 datum->flavor = isattr; in create_type()
431 if (*type && (isattr != (*type)->flavor)) { in create_type()
448 type_datum_t *declare_type(unsigned char primary, unsigned char isattr) in declare_type() argument
451 int ret = create_type(SCOPE_DECL, isattr, &type); in declare_type()
620 type_datum_t *get_local_type(char *id, uint32_t value, unsigned char isattr) in get_local_type() argument
640 dest_typdatum->flavor = isattr ? TYPE_ATTRIB : TYPE_TYPE; in get_local_type()
651 if (dest_typdatum->flavor != isattr ? TYPE_ATTRIB : TYPE_TYPE) { in get_local_type()
666 role_datum_t *get_local_role(char *id, uint32_t value, unsigned char isattr) in get_local_role() argument
690 dest_roledatum->flavor = isattr ? ROLE_ATTRIB : ROLE_ROLE; in get_local_role()
700 if (dest_roledatum->flavor != isattr ? ROLE_ATTRIB : ROLE_ROLE) in get_local_role()
884 static int require_role_or_attribute(int pass, unsigned char isattr) in require_role_or_attribute() argument
895 ret = create_role(SCOPE_REQ, isattr, &role, &key); in require_role_or_attribute()
926 static int require_type_or_attribute(int pass, unsigned char isattr) in require_type_or_attribute() argument
936 ret = create_type(SCOPE_REQ, isattr, &type); in require_type_or_attribute()