1 /* SPDX-License-Identifier: GPL-2.0 */ 2 3 #ifdef __KERNEL__ 4 #include <linux/stddef.h> 5 #else 6 #include <stddef.h> 7 #endif 8 9 static const char *const initial_sid_to_string[] = { 10 NULL, /* zero placeholder, not used */ 11 "kernel", /* kernel / SECINITSID_KERNEL */ 12 "security", /* security / SECINITSID_SECURITY */ 13 "unlabeled", /* unlabeled / SECINITSID_UNLABELED */ 14 NULL, /* fs */ 15 "file", /* file / SECINITSID_FILE */ 16 NULL, /* file_labels */ 17 "init", /* init / SECINITSID_INIT */ 18 "any_socket", /* any_socket / SECINITSID_ANY_SOCKET */ 19 "port", /* port / SECINITSID_PORT */ 20 "netif", /* netif / SECINITSID_NETIF */ 21 "netmsg", /* netmsg / SECINITSID_NETMSG */ 22 "node", /* node / SECINITSID_NODE */ 23 NULL, /* igmp_packet */ 24 NULL, /* icmp_socket */ 25 NULL, /* tcp_socket */ 26 NULL, /* sysctl_modprobe */ 27 NULL, /* sysctl */ 28 NULL, /* sysctl_fs */ 29 NULL, /* sysctl_kernel */ 30 NULL, /* sysctl_net */ 31 NULL, /* sysctl_net_unix */ 32 NULL, /* sysctl_vm */ 33 NULL, /* sysctl_dev */ 34 NULL, /* kmod */ 35 NULL, /* policy */ 36 NULL, /* scmp_packet */ 37 "devnull", /* devnull / SECINITSID_DEVNULL */ 38 }; 39