]> git.baikalelectronics.ru Git - kernel.git/commit
SELinux: calculate and print hashtab stats with a generic function
authorEric Paris <eparis@redhat.com>
Thu, 28 Apr 2011 19:11:21 +0000 (15:11 -0400)
committerEric Paris <eparis@redhat.com>
Thu, 28 Apr 2011 19:15:52 +0000 (15:15 -0400)
commit1c3d3c753fc8bd3d6b5b3ac3f1c6c762898bbe6e
tree957792a2eae5f16a87b79f4ca8aa434b6fa9c7de
parent050fc3e051ac2f5cca655cee047f0fef4c64e8b5
SELinux: calculate and print hashtab stats with a generic function

We have custom debug functions like rangetr_hash_eval and symtab_hash_eval
which do the same thing.  Just create a generic function that takes the name
of the hash table as an argument instead of having custom functions.

Signed-off-by: Eric Paris <eparis@redhat.com>
Reviewed-by: James Morris <jmorris@namei.org>
security/selinux/ss/policydb.c