Commit 89f5bebc authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Paul Moore

selinux: make "selinux_policycap_names[]" const char *

Those strings aren't written.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 2cbdcb88
...@@ -81,7 +81,7 @@ enum { ...@@ -81,7 +81,7 @@ enum {
}; };
#define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1) #define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1)
extern char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX]; extern const char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX];
/* /*
* type_datum properties * type_datum properties
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
#include "audit.h" #include "audit.h"
/* Policy capability names */ /* Policy capability names */
char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX] = { const char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX] = {
"network_peer_controls", "network_peer_controls",
"open_perms", "open_perms",
"extended_socket_class", "extended_socket_class",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment