Re: [PATCH 1/6] selinux: print sum of chain lengths^2 for hash tables

From: Paul Moore
Date: Wed Sep 13 2023 - 13:47:00 EST


On Aug 18, 2023 Stephen Smalley <stephen.smalley.work@xxxxxxxxx> wrote:
>
> Print the sum of chain lengths squared as a metric for hash tables to
> provide more insights, similar to avtabs.
>
> While on it add a comma in the avtab message to improve readability of
> the output.
>
> Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx>
> Reviewed-by: Stephen Smalley <stephen.smalley.work@xxxxxxxxx>
> ---
> security/selinux/ss/avtab.c | 2 +-
> security/selinux/ss/hashtab.c | 5 +++++
> security/selinux/ss/hashtab.h | 1 +
> security/selinux/ss/policydb.c | 4 ++--
> 4 files changed, 9 insertions(+), 3 deletions(-)

Merged into selinux/next, thanks.

--
paul-moore.com