]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
SELinux: ensure keys constant in hashtab_search
authorChad Sellers <csellers@tresys.com>
Mon, 6 Nov 2006 17:38:17 +0000 (12:38 -0500)
committerJames Morris <jmorris@namei.org>
Tue, 28 Nov 2006 17:04:37 +0000 (12:04 -0500)
commitbb242497474da317a7169cc939c741ccf2e79e8c
treef0388fcadc32e98ae977ba7d1b42f724697cd756
parent5c45899879e8caadb78f04c9c639f4c2025b9f00
SELinux: ensure keys constant in hashtab_search

Makes the key argument passed into hashtab_search and all the functions
it calls constant. These functions include hash table function pointers
hash_value and keycmp. The only implementations of these currently
are symhash and symcmp, which do not modify the key. The key parameter
should never be changed by any of these, so it should be const. This
is necessary to allow calling these functions with keys found in kernel
object class and permission definitions.

Signed-off-by: Chad Sellers <csellers@tresys.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/ss/hashtab.c
security/selinux/ss/hashtab.h
security/selinux/ss/symtab.c