aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2010-02-16 17:29:06 +1100
committerJames Morris <jmorris@namei.org>2010-02-16 17:29:06 +1100
commit2da5d31bc72d0a36dc16af7f5d5baa4f86df9c76 (patch)
tree9d5bd3cc7d9e5b1beecc954bb5337af8454d352d /security/selinux
parent97d6931ead3e89a764cdaa3ad0924037367f0d34 (diff)
downloadmrst-s0i3-test-2da5d31bc72d0a36dc16af7f5d5baa4f86df9c76.tar.gz
mrst-s0i3-test-2da5d31bc72d0a36dc16af7f5d5baa4f86df9c76.tar.xz
mrst-s0i3-test-2da5d31bc72d0a36dc16af7f5d5baa4f86df9c76.zip
security: fix a couple of sparse warnings
Fix a couple of sparse warnings for callers of context_struct_to_string, which takes a *u32, not an *int. These cases are harmless as the values are not used. Signed-off-by: James Morris <jmorris@namei.org> Acked-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/ss/services.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index 4e976f58b98..0e5c3a422a8 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -455,7 +455,8 @@ static void security_dump_masked_av(struct context *scontext,
char *scontext_name = NULL;
char *tcontext_name = NULL;
char *permission_names[32];
- int index, length;
+ int index;
+ u32 length;
bool need_comma = false;
if (!permissions)
@@ -807,7 +808,7 @@ int security_bounded_transition(u32 old_sid, u32 new_sid)
if (rc) {
char *old_name = NULL;
char *new_name = NULL;
- int length;
+ u32 length;
if (!context_struct_to_string(old_context,
&old_name, &length) &&