Lines Matching refs:type
214 const u8 type = r->param.path_number.operation; in tomoyo_audit_path_number_log() local
218 switch (type) { in tomoyo_audit_path_number_log()
236 [tomoyo_pn2mac[type]], in tomoyo_audit_path_number_log()
390 .head.type = TOMOYO_TYPE_PATH_ACL, in tomoyo_update_path_acl()
466 .head.type = TOMOYO_TYPE_MKDEV_ACL, in tomoyo_update_mkdev_acl()
545 .head.type = TOMOYO_TYPE_PATH2_ACL, in tomoyo_update_path2_acl()
578 r->type = tomoyo_p2mac[operation]; in tomoyo_path_permission()
579 r->mode = tomoyo_get_mode(r->domain->ns, r->profile, r->type); in tomoyo_path_permission()
610 r->type = TOMOYO_MAC_FILE_EXECUTE; in tomoyo_execute_permission()
611 r->mode = tomoyo_get_mode(r->domain->ns, r->profile, r->type); in tomoyo_execute_permission()
682 .head.type = TOMOYO_TYPE_PATH_NUMBER_ACL, in tomoyo_update_path_number_acl()
708 int tomoyo_path_number_perm(const u8 type, const struct path *path, in tomoyo_path_number_perm() argument
719 if (tomoyo_init_request_info(&r, NULL, tomoyo_pn2mac[type]) in tomoyo_path_number_perm()
726 if (type == TOMOYO_TYPE_MKDIR) in tomoyo_path_number_perm()
729 r.param.path_number.operation = type; in tomoyo_path_number_perm()
985 struct tomoyo_mount_acl e = { .head.type = TOMOYO_TYPE_MOUNT_ACL }; in tomoyo_update_mount_acl()
1015 u8 type; in tomoyo_write_file() local
1018 for (type = 0; type < TOMOYO_MAX_PATH_OPERATION; type++) in tomoyo_write_file()
1019 if (tomoyo_permstr(operation, tomoyo_path_keyword[type])) in tomoyo_write_file()
1020 perm |= 1 << type; in tomoyo_write_file()
1023 for (type = 0; type < TOMOYO_MAX_PATH2_OPERATION; type++) in tomoyo_write_file()
1025 tomoyo_mac_keywords[tomoyo_pp2mac[type]])) in tomoyo_write_file()
1026 perm |= 1 << type; in tomoyo_write_file()
1029 for (type = 0; type < TOMOYO_MAX_PATH_NUMBER_OPERATION; type++) in tomoyo_write_file()
1031 tomoyo_mac_keywords[tomoyo_pn2mac[type]])) in tomoyo_write_file()
1032 perm |= 1 << type; in tomoyo_write_file()
1035 for (type = 0; type < TOMOYO_MAX_MKDEV_OPERATION; type++) in tomoyo_write_file()
1037 tomoyo_mac_keywords[tomoyo_pnnn2mac[type]])) in tomoyo_write_file()
1038 perm |= 1 << type; in tomoyo_write_file()