selinux: make "selinux_policycap_names[]" const char *
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 24 Nov 2018 09:11:32 +0000 (12:11 +0300)
committerPaul Moore <paul@paul-moore.com>
Mon, 26 Nov 2018 23:26:22 +0000 (18:26 -0500)
Those strings aren't written.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/include/security.h
security/selinux/ss/services.c

index 23e762d529fa4a808d5429b8c32eda34341ec9a1..ba8eedf42b90a2daab57bb26595dade9df4bbfb0 100644 (file)
@@ -81,7 +81,7 @@ enum {
 };
 #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
index 7337db24a6a8a6fa951d15fa1fc19bec1f3d1e01..0458f4cecff8f4af602632803e04686e8fe5bce4 100644 (file)
@@ -71,7 +71,7 @@
 #include "audit.h"
 
 /* Policy capability names */
-char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX] = {
+const char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX] = {
        "network_peer_controls",
        "open_perms",
        "extended_socket_class",