lkml.org 
[lkml]   [2023]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] selinux: move debug functions into debug configuration
On Jul 28, 2023 =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com> wrote:
>
> avtab_hash_eval() and hashtab_stat() are only used in policydb.c when
> the configuration SECURITY_SELINUX_DEBUG is enabled.
>
> Move the function definitions under that configuration as well and
> provide empty definitions in case SECURITY_SELINUX_DEBUG is disabled, to
> avoid using #ifdef in the callers.
>
> Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
> ---
> v2:
> - provide empty definitions for !SECURITY_SELINUX_DEBUG
> - drop #ifdef in caller
> ---
> security/selinux/ss/avtab.c | 2 ++
> security/selinux/ss/avtab.h | 7 +++++++
> security/selinux/ss/hashtab.c | 3 ++-
> security/selinux/ss/hashtab.h | 6 ++++++
> security/selinux/ss/policydb.c | 5 +++--
> 5 files changed, 20 insertions(+), 3 deletions(-)

Merged into selinux/next, thanks!

--
paul-moore.com

\
 
 \ /
  Last update: 2023-07-28 20:10    [W:0.073 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site