diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-03-15 19:14:05 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2024-03-27 19:26:24 -0400 |
commit | 0fd0b4fefaf04d62fca874413918cdee78bbe905 (patch) | |
tree | 02226dd2159779d0b7861bd69bfcb25c0ef53ad4 /security/selinux/ss/conditional.c | |
parent | cdc12eb41224cb8f1c2e4d0599925d1dacf5b051 (diff) | |
download | linux-0fd0b4fefaf04d62fca874413918cdee78bbe905.tar.gz linux-0fd0b4fefaf04d62fca874413918cdee78bbe905.tar.bz2 linux-0fd0b4fefaf04d62fca874413918cdee78bbe905.zip |
selinux: dump statistics for more hash tables
Dump in the SELinux debug configuration the statistics for the
conditional rules avtab, the role transition, and class and common
permission hash tables.
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
[PM: style fixes]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/conditional.c')
-rw-r--r-- | security/selinux/ss/conditional.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/selinux/ss/conditional.c b/security/selinux/ss/conditional.c index f12476855b27..e868fc403d75 100644 --- a/security/selinux/ss/conditional.c +++ b/security/selinux/ss/conditional.c @@ -169,6 +169,9 @@ int cond_init_bool_indexes(struct policydb *p) p->p_bools.nprim, sizeof(*p->bool_val_to_struct), GFP_KERNEL); if (!p->bool_val_to_struct) return -ENOMEM; + + avtab_hash_eval(&p->te_cond_avtab, "conditional_rules"); + return 0; } |