Skip to content

Commit

Permalink
selinux: const strings in tables
Browse files Browse the repository at this point in the history
Several places strings tables are used that should be declared
const.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: James Morris <jmorris@namei.org>
  • Loading branch information
Stephen Hemminger authored and James Morris committed Mar 7, 2010
1 parent c856347 commit 634a539
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ extern int ss_initialized;

/* The file system's label must be initialized prior to use. */

static char *labeling_behaviors[6] = {
static const char *labeling_behaviors[6] = {
"uses xattr",
"uses transition SIDs",
"uses task SIDs",
Expand Down
2 changes: 1 addition & 1 deletion security/selinux/include/initial_sid_to_string.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This file is automatically generated. Do not edit. */
static char *initial_sid_to_string[] =
static const char *initial_sid_to_string[] =
{
"null",
"kernel",
Expand Down
2 changes: 1 addition & 1 deletion security/selinux/ss/policydb.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#define _DEBUG_HASHES

#ifdef DEBUG_HASHES
static char *symtab_name[SYM_NUM] = {
static const char *symtab_name[SYM_NUM] = {
"common prefixes",
"classes",
"roles",
Expand Down

0 comments on commit 634a539

Please sign in to comment.