[PATCH] selinux: Remove unnecessary check of array base in selinux_set_mapping()

2017-03-17 Thread Matthias Kaehlcke
27; [-Werror,-Wpointer-bool-conversion] while (p_in->perms && p_in->perms[k]) { Signed-off-by: Matthias Kaehlcke --- security/selinux/ss/services.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/selinux/ss/services.c b/security/selinux/ss/serv

[PATCH] selinux: Mark array 'labeling_behaviors' as __maybe_unused

2017-05-18 Thread Matthias Kaehlcke
eclaration] Signed-off-by: Matthias Kaehlcke --- security/selinux/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index e67a526d1f30..450ff9f3161c 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -40

Re: [PATCH] selinux: Mark array 'labeling_behaviors' as __maybe_unused

2017-05-19 Thread Matthias Kaehlcke
El Fri, May 19, 2017 at 11:45:19AM -0400 Stephen Smalley ha dit: > On Fri, 2017-05-19 at 11:09 -0400, Paul Moore wrote: > > On Thu, May 18, 2017 at 3:07 PM, Matthias Kaehlcke > > wrote: > > > The array is only referenced in an ARRAY_SIZE() statement. Adding > > &

[PATCH] selinux: Remove redundant check for unknown labeling behavior

2017-05-19 Thread Matthias Kaehlcke
-Wunneeded-internal-declaration] Signed-off-by: Matthias Kaehlcke --- security/selinux/hooks.c | 16 1 file changed, 16 deletions(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index e67a526d1f30..2e0227b0304f 100644 --- a/security/selinux/hooks.c +++ b/securi