Lines Matching refs:action

77 	int action;  member
125 {.action = DONT_MEASURE, .fsmagic = PROC_SUPER_MAGIC, .flags = IMA_FSMAGIC},
126 {.action = DONT_MEASURE, .fsmagic = SYSFS_MAGIC, .flags = IMA_FSMAGIC},
127 {.action = DONT_MEASURE, .fsmagic = DEBUGFS_MAGIC, .flags = IMA_FSMAGIC},
128 {.action = DONT_MEASURE, .fsmagic = TMPFS_MAGIC, .flags = IMA_FSMAGIC},
129 {.action = DONT_MEASURE, .fsmagic = DEVPTS_SUPER_MAGIC, .flags = IMA_FSMAGIC},
130 {.action = DONT_MEASURE, .fsmagic = BINFMTFS_MAGIC, .flags = IMA_FSMAGIC},
131 {.action = DONT_MEASURE, .fsmagic = SECURITYFS_MAGIC, .flags = IMA_FSMAGIC},
132 {.action = DONT_MEASURE, .fsmagic = SELINUX_MAGIC, .flags = IMA_FSMAGIC},
133 {.action = DONT_MEASURE, .fsmagic = SMACK_MAGIC, .flags = IMA_FSMAGIC},
134 {.action = DONT_MEASURE, .fsmagic = CGROUP_SUPER_MAGIC,
136 {.action = DONT_MEASURE, .fsmagic = CGROUP2_SUPER_MAGIC,
138 {.action = DONT_MEASURE, .fsmagic = NSFS_MAGIC, .flags = IMA_FSMAGIC},
139 {.action = DONT_MEASURE, .fsmagic = EFIVARFS_MAGIC, .flags = IMA_FSMAGIC}
143 {.action = MEASURE, .func = MMAP_CHECK, .mask = MAY_EXEC,
145 {.action = MEASURE, .func = BPRM_CHECK, .mask = MAY_EXEC,
147 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
150 {.action = MEASURE, .func = MODULE_CHECK, .flags = IMA_FUNC},
151 {.action = MEASURE, .func = FIRMWARE_CHECK, .flags = IMA_FUNC},
155 {.action = MEASURE, .func = MMAP_CHECK, .mask = MAY_EXEC,
157 {.action = MEASURE, .func = BPRM_CHECK, .mask = MAY_EXEC,
159 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
162 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
165 {.action = MEASURE, .func = MODULE_CHECK, .flags = IMA_FUNC},
166 {.action = MEASURE, .func = FIRMWARE_CHECK, .flags = IMA_FUNC},
167 {.action = MEASURE, .func = POLICY_CHECK, .flags = IMA_FUNC},
171 {.action = DONT_APPRAISE, .fsmagic = PROC_SUPER_MAGIC, .flags = IMA_FSMAGIC},
172 {.action = DONT_APPRAISE, .fsmagic = SYSFS_MAGIC, .flags = IMA_FSMAGIC},
173 {.action = DONT_APPRAISE, .fsmagic = DEBUGFS_MAGIC, .flags = IMA_FSMAGIC},
174 {.action = DONT_APPRAISE, .fsmagic = TMPFS_MAGIC, .flags = IMA_FSMAGIC},
175 {.action = DONT_APPRAISE, .fsmagic = RAMFS_MAGIC, .flags = IMA_FSMAGIC},
176 {.action = DONT_APPRAISE, .fsmagic = DEVPTS_SUPER_MAGIC, .flags = IMA_FSMAGIC},
177 {.action = DONT_APPRAISE, .fsmagic = BINFMTFS_MAGIC, .flags = IMA_FSMAGIC},
178 {.action = DONT_APPRAISE, .fsmagic = SECURITYFS_MAGIC, .flags = IMA_FSMAGIC},
179 {.action = DONT_APPRAISE, .fsmagic = SELINUX_MAGIC, .flags = IMA_FSMAGIC},
180 {.action = DONT_APPRAISE, .fsmagic = SMACK_MAGIC, .flags = IMA_FSMAGIC},
181 {.action = DONT_APPRAISE, .fsmagic = NSFS_MAGIC, .flags = IMA_FSMAGIC},
182 {.action = DONT_APPRAISE, .fsmagic = EFIVARFS_MAGIC, .flags = IMA_FSMAGIC},
183 {.action = DONT_APPRAISE, .fsmagic = CGROUP_SUPER_MAGIC, .flags = IMA_FSMAGIC},
184 {.action = DONT_APPRAISE, .fsmagic = CGROUP2_SUPER_MAGIC, .flags = IMA_FSMAGIC},
186 {.action = APPRAISE, .func = POLICY_CHECK,
190 {.action = APPRAISE, .fowner = GLOBAL_ROOT_UID, .fowner_op = &uid_eq,
194 {.action = APPRAISE, .fowner = GLOBAL_ROOT_UID, .fowner_op = &uid_eq,
201 {.action = APPRAISE, .func = MODULE_CHECK,
205 {.action = APPRAISE, .func = FIRMWARE_CHECK,
209 {.action = APPRAISE, .func = KEXEC_KERNEL_CHECK,
213 {.action = APPRAISE, .func = POLICY_CHECK,
219 {.action = APPRAISE, .func = MODULE_CHECK,
221 {.action = APPRAISE, .func = FIRMWARE_CHECK,
223 {.action = APPRAISE, .func = KEXEC_KERNEL_CHECK,
225 {.action = APPRAISE, .func = POLICY_CHECK,
230 {.action = MEASURE, .func = CRITICAL_DATA, .flags = IMA_FUNC},
698 int action = 0, actmask = flags | (flags << 1); in ima_match_policy() local
708 if (!(entry->action & actmask)) in ima_match_policy()
715 action |= entry->flags & IMA_ACTION_FLAGS; in ima_match_policy()
717 action |= entry->action & IMA_DO_MASK; in ima_match_policy()
718 if (entry->action & IMA_APPRAISE) { in ima_match_policy()
719 action |= get_subaction(entry, func); in ima_match_policy()
720 action &= ~IMA_HASH; in ima_match_policy()
722 action |= IMA_FAIL_UNVERIFIABLE_SIGS; in ima_match_policy()
729 if (entry->action & IMA_DO_MASK) in ima_match_policy()
730 actmask &= ~(entry->action | entry->action << 1); in ima_match_policy()
732 actmask &= ~(entry->action | entry->action >> 1); in ima_match_policy()
745 return action; in ima_match_policy()
791 if (entry->action & IMA_DO_MASK) in ima_update_policy_flags()
792 new_policy_flag |= entry->action; in ima_update_policy_flags()
835 if (entries[i].action == APPRAISE) { in add_rules()
1179 if (entry->action == UNKNOWN) in ima_validate_rule()
1182 if (entry->action != MEASURE && entry->flags & IMA_PCR) in ima_validate_rule()
1185 if (entry->action != APPRAISE && in ima_validate_rule()
1236 if (entry->action & ~(MEASURE | DONT_MEASURE)) in ima_validate_rule()
1247 if (entry->action & ~(MEASURE | DONT_MEASURE)) in ima_validate_rule()
1259 if (entry->action & ~(MEASURE | DONT_MEASURE)) in ima_validate_rule()
1272 if (entry->action != APPRAISE) in ima_validate_rule()
1347 entry->action = UNKNOWN; in ima_parse_rule()
1362 if (entry->action != UNKNOWN) in ima_parse_rule()
1365 entry->action = MEASURE; in ima_parse_rule()
1370 if (entry->action != UNKNOWN) in ima_parse_rule()
1373 entry->action = DONT_MEASURE; in ima_parse_rule()
1378 if (entry->action != UNKNOWN) in ima_parse_rule()
1381 entry->action = APPRAISE; in ima_parse_rule()
1386 if (entry->action != UNKNOWN) in ima_parse_rule()
1389 entry->action = DONT_APPRAISE; in ima_parse_rule()
1394 if (entry->action != UNKNOWN) in ima_parse_rule()
1397 entry->action = AUDIT; in ima_parse_rule()
1402 if (entry->action != UNKNOWN) in ima_parse_rule()
1405 entry->action = HASH; in ima_parse_rule()
1410 if (entry->action != UNKNOWN) in ima_parse_rule()
1413 entry->action = DONT_HASH; in ima_parse_rule()
1764 if (entry->action != MEASURE) { in ima_parse_rule()
1792 else if (entry->action == APPRAISE) in ima_parse_rule()
1970 if (entry->action & MEASURE) in ima_policy_show()
1972 if (entry->action & DONT_MEASURE) in ima_policy_show()
1974 if (entry->action & APPRAISE) in ima_policy_show()
1976 if (entry->action & DONT_APPRAISE) in ima_policy_show()
1978 if (entry->action & AUDIT) in ima_policy_show()
1980 if (entry->action & HASH) in ima_policy_show()
1982 if (entry->action & DONT_HASH) in ima_policy_show()
2182 if (entry->action != APPRAISE) in ima_appraise_signature()