summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorIan Bridges <icb@fastmail.org>2026-07-13 23:09:54 -0500
committerPaul Moore <paul@paul-moore.com>2026-07-15 21:42:01 -0400
commitc0b6a5b89d1aa31574ea68bfb1fed1dee46e5ec6 (patch)
tree970ac79ce7f840db2a2977201b40ee1d9ce43fcf /tools/perf/scripts/python/stackcollapse.py
parent00f73e2a48548b1410a2403cd2d268a7d5ab0618 (diff)
selinux: compute the IMA configuration settings string length once at boot
selinux_ima_collect_state() builds a string of the current SELinux configuration settings. The string lists each setting as a name and one digit. The length of the string therefore never changes, but is still recomputed on every call. Add selinux_ima_config_len_init() to compute the length once during selinux_init(). Update selinux_ima_collect_state() to use the stored length. Suggested-by: Paul Moore <paul@paul-moore.com> Link: https://lore.kernel.org/r/df755e0282dab3b932d19aceab71b7d7@paul-moore.com Signed-off-by: Ian Bridges <icb@fastmail.org> Reviewed-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