• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* This file is automatically generated.  Do not edit. */
2 #ifndef _SELINUX_FLASK_H_
3 #define _SELINUX_FLASK_H_
4 
5 #warning "Please remove any #include's of this header in your source code."
6 #warning "Instead, use string_to_security_class() to map the class name to a value."
7 
8 /*
9  * Security object class definitions
10  */
11 #define SECCLASS_SECURITY                                1
12 #define SECCLASS_PROCESS                                 2
13 #define SECCLASS_SYSTEM                                  3
14 #define SECCLASS_CAPABILITY                              4
15 #define SECCLASS_FILESYSTEM                              5
16 #define SECCLASS_FILE                                    6
17 #define SECCLASS_DIR                                     7
18 #define SECCLASS_FD                                      8
19 #define SECCLASS_LNK_FILE                                9
20 #define SECCLASS_CHR_FILE                                10
21 #define SECCLASS_BLK_FILE                                11
22 #define SECCLASS_SOCK_FILE                               12
23 #define SECCLASS_FIFO_FILE                               13
24 #define SECCLASS_SOCKET                                  14
25 #define SECCLASS_TCP_SOCKET                              15
26 #define SECCLASS_UDP_SOCKET                              16
27 #define SECCLASS_RAWIP_SOCKET                            17
28 #define SECCLASS_NODE                                    18
29 #define SECCLASS_NETIF                                   19
30 #define SECCLASS_NETLINK_SOCKET                          20
31 #define SECCLASS_PACKET_SOCKET                           21
32 #define SECCLASS_KEY_SOCKET                              22
33 #define SECCLASS_UNIX_STREAM_SOCKET                      23
34 #define SECCLASS_UNIX_DGRAM_SOCKET                       24
35 #define SECCLASS_SEM                                     25
36 #define SECCLASS_MSG                                     26
37 #define SECCLASS_MSGQ                                    27
38 #define SECCLASS_SHM                                     28
39 #define SECCLASS_IPC                                     29
40 #define SECCLASS_PASSWD                                  30
41 #define SECCLASS_X_DRAWABLE                              31
42 #define SECCLASS_X_SCREEN                                32
43 #define SECCLASS_X_GC                                    33
44 #define SECCLASS_X_FONT                                  34
45 #define SECCLASS_X_COLORMAP                              35
46 #define SECCLASS_X_PROPERTY                              36
47 #define SECCLASS_X_SELECTION                             37
48 #define SECCLASS_X_CURSOR                                38
49 #define SECCLASS_X_CLIENT                                39
50 #define SECCLASS_X_DEVICE                                40
51 #define SECCLASS_X_SERVER                                41
52 #define SECCLASS_X_EXTENSION                             42
53 #define SECCLASS_NETLINK_ROUTE_SOCKET                    43
54 #define SECCLASS_NETLINK_FIREWALL_SOCKET                 44
55 #define SECCLASS_NETLINK_TCPDIAG_SOCKET                  45
56 #define SECCLASS_NETLINK_NFLOG_SOCKET                    46
57 #define SECCLASS_NETLINK_XFRM_SOCKET                     47
58 #define SECCLASS_NETLINK_SELINUX_SOCKET                  48
59 #define SECCLASS_NETLINK_AUDIT_SOCKET                    49
60 #define SECCLASS_NETLINK_IP6FW_SOCKET                    50
61 #define SECCLASS_NETLINK_DNRT_SOCKET                     51
62 #define SECCLASS_DBUS                                    52
63 #define SECCLASS_NSCD                                    53
64 #define SECCLASS_ASSOCIATION                             54
65 #define SECCLASS_NETLINK_KOBJECT_UEVENT_SOCKET           55
66 #define SECCLASS_APPLETALK_SOCKET                        56
67 #define SECCLASS_PACKET                                  57
68 #define SECCLASS_KEY                                     58
69 #define SECCLASS_CONTEXT                                 59
70 #define SECCLASS_DCCP_SOCKET                             60
71 #define SECCLASS_MEMPROTECT                              61
72 #define SECCLASS_DB_DATABASE                             62
73 #define SECCLASS_DB_TABLE                                63
74 #define SECCLASS_DB_PROCEDURE                            64
75 #define SECCLASS_DB_COLUMN                               65
76 #define SECCLASS_DB_TUPLE                                66
77 #define SECCLASS_DB_BLOB                                 67
78 #define SECCLASS_PEER                                    68
79 #define SECCLASS_CAPABILITY2                             69
80 #define SECCLASS_X_RESOURCE                              70
81 #define SECCLASS_X_EVENT                                 71
82 #define SECCLASS_X_SYNTHETIC_EVENT                       72
83 #define SECCLASS_X_APPLICATION_DATA                      73
84 
85 /*
86  * Security identifier indices for initial entities
87  */
88 #define SECINITSID_KERNEL                               1
89 #define SECINITSID_SECURITY                             2
90 #define SECINITSID_UNLABELED                            3
91 #define SECINITSID_FS                                   4
92 #define SECINITSID_FILE                                 5
93 #define SECINITSID_FILE_LABELS                          6
94 #define SECINITSID_INIT                                 7
95 #define SECINITSID_ANY_SOCKET                           8
96 #define SECINITSID_PORT                                 9
97 #define SECINITSID_NETIF                                10
98 #define SECINITSID_NETMSG                               11
99 #define SECINITSID_NODE                                 12
100 #define SECINITSID_IGMP_PACKET                          13
101 #define SECINITSID_ICMP_SOCKET                          14
102 #define SECINITSID_TCP_SOCKET                           15
103 #define SECINITSID_SYSCTL_MODPROBE                      16
104 #define SECINITSID_SYSCTL                               17
105 #define SECINITSID_SYSCTL_FS                            18
106 #define SECINITSID_SYSCTL_KERNEL                        19
107 #define SECINITSID_SYSCTL_NET                           20
108 #define SECINITSID_SYSCTL_NET_UNIX                      21
109 #define SECINITSID_SYSCTL_VM                            22
110 #define SECINITSID_SYSCTL_DEV                           23
111 #define SECINITSID_KMOD                                 24
112 #define SECINITSID_POLICY                               25
113 #define SECINITSID_SCMP_PACKET                          26
114 #define SECINITSID_DEVNULL                              27
115 
116 #define SECINITSID_NUM                                  27
117 
118 #endif
119