提交 634a539e 编写于 作者: S Stephen Hemminger 提交者: James Morris

selinux: const strings in tables

Several places strings tables are used that should be declared
const.
Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: NJames Morris <jmorris@namei.org>
上级 c8563473
...@@ -329,7 +329,7 @@ extern int ss_initialized; ...@@ -329,7 +329,7 @@ extern int ss_initialized;
/* The file system's label must be initialized prior to use. */ /* 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 xattr",
"uses transition SIDs", "uses transition SIDs",
"uses task SIDs", "uses task SIDs",
......
/* This file is automatically generated. Do not edit. */ /* This file is automatically generated. Do not edit. */
static char *initial_sid_to_string[] = static const char *initial_sid_to_string[] =
{ {
"null", "null",
"kernel", "kernel",
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#define _DEBUG_HASHES #define _DEBUG_HASHES
#ifdef DEBUG_HASHES #ifdef DEBUG_HASHES
static char *symtab_name[SYM_NUM] = { static const char *symtab_name[SYM_NUM] = {
"common prefixes", "common prefixes",
"classes", "classes",
"roles", "roles",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册