Skip to content

Commit

Permalink
security: fix a couple of sparse warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Morris committed Feb 16, 2010
1 parent 97d6931 commit 2da5d31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions security/selinux/ss/services.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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) &&
Expand Down

0 comments on commit 2da5d31

Please sign in to comment.