summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorStephen Smalley <stephen.smalley.work@gmail.com>2026-07-27 10:44:38 -0400
committerPaul Moore <paul@paul-moore.com>2026-07-27 17:17:33 -0400
commitfd6e2388a3ea55e58cbbbef840c1d8aa2067dbb3 (patch)
tree37d67269be8e0757b35243d4af61cae018ea155c /tools/perf/scripts/python/stackcollapse.py
parentc0b6a5b89d1aa31574ea68bfb1fed1dee46e5ec6 (diff)
selinux: validate constraint expression attr and op at load time
read_cons_helper() validates the expression type and stack depth of each constraint node but leaves e->attr and e->op unchecked, so a policy with an invalid operator or attribute value is accepted at load and only detected when the constraint is evaluated. constraint_expr_eval() handles such unrecognized cases with BUG() so the first permission check that reaches such a node oopses in the context of the checking process or panics with panic_on_oops. Reject these expresssions when the policy is loaded, matching what the libsepol validator already does. Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions