selinux: make "selinux_policycap_names[]" const char *
Those strings aren't written. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
2cbdcb882f
commit
89f5bebcf0
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue