Lines Matching refs:action

76 	int action;  member
124 {.action = DONT_MEASURE, .fsmagic = PROC_SUPER_MAGIC, .flags = IMA_FSMAGIC},
125 {.action = DONT_MEASURE, .fsmagic = SYSFS_MAGIC, .flags = IMA_FSMAGIC},
126 {.action = DONT_MEASURE, .fsmagic = DEBUGFS_MAGIC, .flags = IMA_FSMAGIC},
127 {.action = DONT_MEASURE, .fsmagic = TMPFS_MAGIC, .flags = IMA_FSMAGIC},
128 {.action = DONT_MEASURE, .fsmagic = DEVPTS_SUPER_MAGIC, .flags = IMA_FSMAGIC},
129 {.action = DONT_MEASURE, .fsmagic = BINFMTFS_MAGIC, .flags = IMA_FSMAGIC},
130 {.action = DONT_MEASURE, .fsmagic = SECURITYFS_MAGIC, .flags = IMA_FSMAGIC},
131 {.action = DONT_MEASURE, .fsmagic = SELINUX_MAGIC, .flags = IMA_FSMAGIC},
132 {.action = DONT_MEASURE, .fsmagic = SMACK_MAGIC, .flags = IMA_FSMAGIC},
133 {.action = DONT_MEASURE, .fsmagic = CGROUP_SUPER_MAGIC,
135 {.action = DONT_MEASURE, .fsmagic = CGROUP2_SUPER_MAGIC,
137 {.action = DONT_MEASURE, .fsmagic = NSFS_MAGIC, .flags = IMA_FSMAGIC},
138 {.action = DONT_MEASURE, .fsmagic = EFIVARFS_MAGIC, .flags = IMA_FSMAGIC}
142 {.action = MEASURE, .func = MMAP_CHECK, .mask = MAY_EXEC,
144 {.action = MEASURE, .func = BPRM_CHECK, .mask = MAY_EXEC,
146 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
149 {.action = MEASURE, .func = MODULE_CHECK, .flags = IMA_FUNC},
150 {.action = MEASURE, .func = FIRMWARE_CHECK, .flags = IMA_FUNC},
154 {.action = MEASURE, .func = MMAP_CHECK, .mask = MAY_EXEC,
156 {.action = MEASURE, .func = BPRM_CHECK, .mask = MAY_EXEC,
158 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
161 {.action = MEASURE, .func = FILE_CHECK, .mask = MAY_READ,
164 {.action = MEASURE, .func = MODULE_CHECK, .flags = IMA_FUNC},
165 {.action = MEASURE, .func = FIRMWARE_CHECK, .flags = IMA_FUNC},
166 {.action = MEASURE, .func = POLICY_CHECK, .flags = IMA_FUNC},
170 {.action = DONT_APPRAISE, .fsmagic = PROC_SUPER_MAGIC, .flags = IMA_FSMAGIC},
171 {.action = DONT_APPRAISE, .fsmagic = SYSFS_MAGIC, .flags = IMA_FSMAGIC},
172 {.action = DONT_APPRAISE, .fsmagic = DEBUGFS_MAGIC, .flags = IMA_FSMAGIC},
173 {.action = DONT_APPRAISE, .fsmagic = TMPFS_MAGIC, .flags = IMA_FSMAGIC},
174 {.action = DONT_APPRAISE, .fsmagic = RAMFS_MAGIC, .flags = IMA_FSMAGIC},
175 {.action = DONT_APPRAISE, .fsmagic = DEVPTS_SUPER_MAGIC, .flags = IMA_FSMAGIC},
176 {.action = DONT_APPRAISE, .fsmagic = BINFMTFS_MAGIC, .flags = IMA_FSMAGIC},
177 {.action = DONT_APPRAISE, .fsmagic = SECURITYFS_MAGIC, .flags = IMA_FSMAGIC},
178 {.action = DONT_APPRAISE, .fsmagic = SELINUX_MAGIC, .flags = IMA_FSMAGIC},
179 {.action = DONT_APPRAISE, .fsmagic = SMACK_MAGIC, .flags = IMA_FSMAGIC},
180 {.action = DONT_APPRAISE, .fsmagic = NSFS_MAGIC, .flags = IMA_FSMAGIC},
181 {.action = DONT_APPRAISE, .fsmagic = EFIVARFS_MAGIC, .flags = IMA_FSMAGIC},
182 {.action = DONT_APPRAISE, .fsmagic = CGROUP_SUPER_MAGIC, .flags = IMA_FSMAGIC},
183 {.action = DONT_APPRAISE, .fsmagic = CGROUP2_SUPER_MAGIC, .flags = IMA_FSMAGIC},
185 {.action = APPRAISE, .func = POLICY_CHECK,
189 {.action = APPRAISE, .fowner = GLOBAL_ROOT_UID, .fowner_op = &uid_eq,
193 {.action = APPRAISE, .fowner = GLOBAL_ROOT_UID, .fowner_op = &uid_eq,
200 {.action = APPRAISE, .func = MODULE_CHECK,
204 {.action = APPRAISE, .func = FIRMWARE_CHECK,
208 {.action = APPRAISE, .func = KEXEC_KERNEL_CHECK,
212 {.action = APPRAISE, .func = POLICY_CHECK,
218 {.action = APPRAISE, .func = MODULE_CHECK,
220 {.action = APPRAISE, .func = FIRMWARE_CHECK,
222 {.action = APPRAISE, .func = KEXEC_KERNEL_CHECK,
224 {.action = APPRAISE, .func = POLICY_CHECK,
229 {.action = MEASURE, .func = CRITICAL_DATA, .flags = IMA_FUNC},
716 int action = 0, actmask = flags | (flags << 1); in ima_match_policy() local
726 if (!(entry->action & actmask)) in ima_match_policy()
733 action |= entry->flags & IMA_NONACTION_FLAGS; in ima_match_policy()
735 action |= entry->action & IMA_DO_MASK; in ima_match_policy()
736 if (entry->action & IMA_APPRAISE) { in ima_match_policy()
737 action |= get_subaction(entry, func); in ima_match_policy()
738 action &= ~IMA_HASH; in ima_match_policy()
740 action |= IMA_FAIL_UNVERIFIABLE_SIGS; in ima_match_policy()
747 if (entry->action & IMA_DO_MASK) in ima_match_policy()
748 actmask &= ~(entry->action | entry->action << 1); in ima_match_policy()
750 actmask &= ~(entry->action | entry->action >> 1); in ima_match_policy()
763 return action; in ima_match_policy()
809 if (entry->action & IMA_DO_MASK) in ima_update_policy_flags()
810 new_policy_flag |= entry->action; in ima_update_policy_flags()
853 if (entries[i].action == APPRAISE) { in add_rules()
1214 if (entry->action == UNKNOWN) in ima_validate_rule()
1217 if (entry->action != MEASURE && entry->flags & IMA_PCR) in ima_validate_rule()
1220 if (entry->action != APPRAISE && in ima_validate_rule()
1272 if (entry->action & ~(MEASURE | DONT_MEASURE)) in ima_validate_rule()
1283 if (entry->action & ~(MEASURE | DONT_MEASURE)) in ima_validate_rule()
1295 if (entry->action & ~(MEASURE | DONT_MEASURE)) in ima_validate_rule()
1308 if (entry->action != APPRAISE) in ima_validate_rule()
1339 if (entry->action == APPRAISE && in ima_validate_rule()
1395 entry->action = UNKNOWN; in ima_parse_rule()
1410 if (entry->action != UNKNOWN) in ima_parse_rule()
1413 entry->action = MEASURE; in ima_parse_rule()
1418 if (entry->action != UNKNOWN) in ima_parse_rule()
1421 entry->action = DONT_MEASURE; in ima_parse_rule()
1426 if (entry->action != UNKNOWN) in ima_parse_rule()
1429 entry->action = APPRAISE; in ima_parse_rule()
1434 if (entry->action != UNKNOWN) in ima_parse_rule()
1437 entry->action = DONT_APPRAISE; in ima_parse_rule()
1442 if (entry->action != UNKNOWN) in ima_parse_rule()
1445 entry->action = AUDIT; in ima_parse_rule()
1450 if (entry->action != UNKNOWN) in ima_parse_rule()
1453 entry->action = HASH; in ima_parse_rule()
1458 if (entry->action != UNKNOWN) in ima_parse_rule()
1461 entry->action = DONT_HASH; in ima_parse_rule()
1835 if (entry->action != MEASURE) { in ima_parse_rule()
1863 else if (entry->action == APPRAISE) in ima_parse_rule()
1873 if (!result && entry->action == MEASURE && in ima_parse_rule()
2058 if (entry->action & MEASURE) in ima_policy_show()
2060 if (entry->action & DONT_MEASURE) in ima_policy_show()
2062 if (entry->action & APPRAISE) in ima_policy_show()
2064 if (entry->action & DONT_APPRAISE) in ima_policy_show()
2066 if (entry->action & AUDIT) in ima_policy_show()
2068 if (entry->action & HASH) in ima_policy_show()
2070 if (entry->action & DONT_HASH) in ima_policy_show()
2278 if (entry->action != APPRAISE) in ima_appraise_signature()