Skip to content

Commit cc2a734

Browse files
committed
selinux: fix style issues in security/selinux/include/initial_sid_to_string.h
As part of on ongoing effort to perform more automated testing and provide more tools for individual developers to validate their patches before submitting, we are trying to make our code "clang-format clean". My hope is that once we have fixed all of our style "quirks", developers will be able to run clang-format on their patches to help avoid silly formatting problems and ensure their changes fit in well with the rest of the SELinux kernel code. Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent cea9216 commit cc2a734

File tree

1 file changed

+28
-29
lines changed

1 file changed

+28
-29
lines changed

security/selinux/include/initial_sid_to_string.h

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,32 @@
33
#include <linux/stddef.h>
44

55
static const char *const initial_sid_to_string[] = {
6-
NULL,
7-
"kernel",
8-
"security",
9-
"unlabeled",
10-
NULL,
11-
"file",
12-
NULL,
13-
"init",
14-
"any_socket",
15-
"port",
16-
"netif",
17-
"netmsg",
18-
"node",
19-
NULL,
20-
NULL,
21-
NULL,
22-
NULL,
23-
NULL,
24-
NULL,
25-
NULL,
26-
NULL,
27-
NULL,
28-
NULL,
29-
NULL,
30-
NULL,
31-
NULL,
32-
NULL,
33-
"devnull",
6+
NULL, /* zero placeholder, not used */
7+
"kernel", /* kernel / SECINITSID_KERNEL */
8+
"security", /* security / SECINITSID_SECURITY */
9+
"unlabeled", /* unlabeled / SECINITSID_UNLABELED */
10+
NULL, /* fs */
11+
"file", /* file / SECINITSID_FILE */
12+
NULL, /* file_labels */
13+
"init", /* init / SECINITSID_INIT */
14+
"any_socket", /* any_socket / SECINITSID_ANY_SOCKET */
15+
"port", /* port / SECINITSID_PORT */
16+
"netif", /* netif / SECINITSID_NETIF */
17+
"netmsg", /* netmsg / SECINITSID_NETMSG */
18+
"node", /* node / SECINITSID_NODE */
19+
NULL, /* igmp_packet */
20+
NULL, /* icmp_socket */
21+
NULL, /* tcp_socket */
22+
NULL, /* sysctl_modprobe */
23+
NULL, /* sysctl */
24+
NULL, /* sysctl_fs */
25+
NULL, /* sysctl_kernel */
26+
NULL, /* sysctl_net */
27+
NULL, /* sysctl_net_unix */
28+
NULL, /* sysctl_vm */
29+
NULL, /* sysctl_dev */
30+
NULL, /* kmod */
31+
NULL, /* policy */
32+
NULL, /* scmp_packet */
33+
"devnull", /* devnull / SECINITSID_DEVNULL */
3434
};
35-

0 commit comments

Comments
 (0)