aboutsummaryrefslogtreecommitdiff
path: root/security/selinux/include/av_perm_to_string.h
blob: e81f0226c37dfc0eb30fd8afab75d079ca9e3a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
/* This file is automatically generated.  Do not edit. */
   S_(SECCLASS_FILESYSTEM, FILESYSTEM__MOUNT, "mount")
   S_(SECCLASS_FILESYSTEM, FILESYSTEM__REMOUNT, "remount")
   S_(SECCLASS_FILESYSTEM, FILESYSTEM__UNMOUNT, "unmount")
   S_(SECCLASS_FILESYSTEM, FILESYSTEM__GETATTR, "getattr")
   S_(SECCLASS_FILESYSTEM, FILESYSTEM__RELABELFROM, "relabelfrom")
   S_(SECCLASS_FILESYSTEM, FILESYSTEM__RELABELTO, "relabelto")
   S_(SECCLASS_FILESYSTEM, FILESYSTEM__TRANSITION, "transition")
   S_(SECCLASS_FILESYSTEM, FILESYSTEM__ASSOCIATE, "associate")
   S_(SECCLASS_FILESYSTEM, FILESYSTEM__QUOTAMOD, "quotamod")
   S_(SECCLASS_FILESYSTEM, FILESYSTEM__QUOTAGET, "quotaget")
   S_(SECCLASS_DIR, DIR__ADD_NAME, "add_name")
   S_(SECCLASS_DIR, DIR__REMOVE_NAME, "remove_name")
   S_(SECCLASS_DIR, DIR__REPARENT, "reparent")
   S_(SECCLASS_DIR, DIR__SEARCH, "search")
   S_(SECCLASS_DIR, DIR__RMDIR, "rmdir")
   S_(SECCLASS_FILE, FILE__EXECUTE_NO_TRANS, "execute_no_trans")
   S_(SECCLASS_FILE, FILE__ENTRYPOINT, "entrypoint")
   S_(SECCLASS_FILE, FILE__EXECMOD, "execmod")
   S_(SECCLASS_CHR_FILE, CHR_FILE__EXECUTE_NO_TRANS, "execute_no_trans")
   S_(SECCLASS_CHR_FILE, CHR_FILE__ENTRYPOINT, "entrypoint")
   S_(SECCLASS_CHR_FILE, CHR_FILE__EXECMOD, "execmod")
   S_(SECCLASS_FD, FD__USE, "use")
   S_(SECCLASS_TCP_SOCKET, TCP_SOCKET__CONNECTTO, "connectto")
   S_(SECCLASS_TCP_SOCKET, TCP_SOCKET__NEWCONN, "newconn")
   S_(SECCLASS_TCP_SOCKET, TCP_SOCKET__ACCEPTFROM, "acceptfrom")
   S_(SECCLASS_TCP_SOCKET, TCP_SOCKET__NODE_BIND, "node_bind")
   S_(SECCLASS_TCP_SOCKET, TCP_SOCKET__NAME_CONNECT, "name_connect")
   S_(SECCLASS_UDP_SOCKET, UDP_SOCKET__NODE_BIND, "node_bind")
   S_(SECCLASS_RAWIP_SOCKET, RAWIP_SOCKET__NODE_BIND, "node_bind")
   S_(SECCLASS_NODE, NODE__TCP_RECV, "tcp_recv")
   S_(SECCLASS_NODE, NODE__TCP_SEND, "tcp_send")
   S_(SECCLASS_NODE, NODE__UDP_RECV, "udp_recv")
   S_(SECCLASS_NODE, NODE__UDP_SEND, "udp_send")
   S_(SECCLASS_NODE, NODE__RAWIP_RECV, "rawip_recv")
   S_(SECCLASS_NODE, NODE__RAWIP_SEND, "rawip_send")
   S_(SECCLASS_NODE, NODE__ENFORCE_DEST, "enforce_dest")
   S_(SECCLASS_NETIF, NETIF__TCP_RECV, "tcp_recv")
   S_(SECCLASS_NETIF, NETIF__TCP_SEND, "tcp_send")
   S_(SECCLASS_NETIF, NETIF__UDP_RECV, "udp_recv")
   S_(SECCLASS_NETIF, NETIF__UDP_SEND, "udp_send")
   S_(SECCLASS_NETIF, NETIF__RAWIP_RECV, "rawip_recv")
   S_(SECCLASS_NETIF, NETIF__RAWIP_SEND, "rawip_send")
   S_(SECCLASS_UNIX_STREAM_SOCKET, UNIX_STREAM_SOCKET__CONNECTTO, "connectto")
   S_(SECCLASS_UNIX_STREAM_SOCKET, UNIX_STREAM_SOCKET__NEWCONN, "newconn")
   S_(SECCLASS_UNIX_STREAM_SOCKET, UNIX_STREAM_SOCKET__ACCEPTFROM, "acceptfrom")
   S_(SECCLASS_PROCESS, PROCESS__FORK, "fork")
   S_(SECCLASS_PROCESS, PROCESS__TRANSITION, "transition")
   S_(SECCLASS_PROCESS, PROCESS__SIGCHLD, "sigchld")
   S_(SECCLASS_PROCESS, PROCESS__SIGKILL, "sigkill")
   S_(SECCLASS_PROCESS, PROCESS__SIGSTOP, "sigstop")
   S_(SECCLASS_PROCESS, PROCESS__SIGNULL, "signull")
   S_(SECCLASS_PROCESS, PROCESS__SIGNAL, "signal")
   S_(SECCLASS_PROCESS, PROCESS__PTRACE, "ptrace")
   S_(SECCLASS_PROCESS, PROCESS__GETSCHED, "getsched")
   S_(SECCLASS_PROCESS, PROCESS__SETSCHED, "setsched")
   S_(SECCLASS_PROCESS, PROCESS__GETSESSION, "getsession")
   S_(SECCLASS_PROCESS, PROCESS__GETPGID, "getpgid")
   S_(SECCLASS_PROCESS, PROCESS__SETPGID, "setpgid")
   S_(SECCLASS_PROCESS, PROCESS__GETCAP, "getcap")
   S_(SECCLASS_PROCESS, PROCESS__SETCAP, "setcap")
   S_(SECCLASS_PROCESS, PROCESS__SHARE, "share")
   S_(SECCLASS_PROCESS, PROCESS__GETATTR, "getattr")
   S_(SECCLASS_PROCESS, PROCESS__SETEXEC, "setexec")
   S_(SECCLASS_PROCESS, PROCESS__SETFSCREATE, "setfscreate")
   S_(SECCLASS_PROCESS, PROCESS__NOATSECURE, "noatsecure")
   S_(SECCLASS_PROCESS, PROCESS__SIGINH, "siginh")
   S_(SECCLASS_PROCESS, PROCESS__SETRLIMIT, "setrlimit")
   S_(SECCLASS_PROCESS, PROCESS__RLIMITINH, "rlimitinh")
   S_(SECCLASS_PROCESS, PROCESS__DYNTRANSITION, "dyntransition")
   S_(SECCLASS_PROCESS, PROCESS__SETCURRENT, "setcurrent")
   S_(SECCLASS_PROCESS, PROCESS__EXECMEM, "execmem")
   S_(SECCLASS_PROCESS, PROCESS__EXECSTACK, "execstack")
   S_(SECCLASS_MSGQ, MSGQ__ENQUEUE, "enqueue")
   S_(SECCLASS_MSG, MSG__SEND, "send")
   S_(SECCLASS_MSG, MSG__RECEIVE, "receive")
   S_(SECCLASS_SHM, SHM__LOCK, "lock")
   S_(SECCLASS_SECURITY, SECURITY__COMPUTE_AV, "compute_av")
   S_(SECCLASS_SECURITY, SECURITY__COMPUTE_CREATE, "compute_create")
   S_(SECCLASS_SECURITY, SECURITY__COMPUTE_MEMBER, "compute_member")
   S_(SECCLASS_SECURITY, SECURITY__CHECK_CONTEXT, "check_context")
   S_(SECCLASS_SECURITY, SECURITY__LOAD_POLICY, "load_policy")
   S_(SECCLASS_SECURITY, SECURITY__COMPUTE_RELABEL, "compute_relabel")
   S_(SECCLASS_SECURITY, SECURITY__COMPUTE_USER, "compute_user")
   S_(SECCLASS_SECURITY, SECURITY__SETENFORCE, "setenforce")
   S_(SECCLASS_SECURITY, SECURITY__SETBOOL, "setbool")
   S_(SECCLASS_SECURITY, SECURITY__SETSECPARAM, "setsecparam")
   S_(SECCLASS_SECURITY, SECURITY__SETCHECKREQPROT, "setcheckreqprot")
   S_(SECCLASS_SYSTEM, SYSTEM__IPC_INFO, "ipc_info")
   S_(SECCLASS_SYSTEM, SYSTEM__SYSLOG_READ, "syslog_read")
   S_(SECCLASS_SYSTEM, SYSTEM__SYSLOG_MOD, "syslog_mod")
   S_(SECCLASS_SYSTEM, SYSTEM__SYSLOG_CONSOLE, "syslog_console")
   S_(SECCLASS_CAPABILITY, CAPABILITY__CHOWN, "chown")
   S_(SECCLASS_CAPABILITY, CAPABILITY__DAC_OVERRIDE, "dac_override")
   S_(SECCLASS_CAPABILITY, CAPABILITY__DAC_READ_SEARCH, "dac_read_search")
   S_(SECCLASS_CAPABILITY, CAPABILITY__FOWNER, "fowner")
   S_(SECCLASS_CAPABILITY, CAPABILITY__FSETID, "fsetid")
   S_(SECCLASS_CAPABILITY, CAPABILITY__KILL, "kill")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SETGID, "setgid")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SETUID, "setuid")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SETPCAP, "setpcap")
   S_(SECCLASS_CAPABILITY, CAPABILITY__LINUX_IMMUTABLE, "linux_immutable")
   S_(SECCLASS_CAPABILITY, CAPABILITY__NET_BIND_SERVICE, "net_bind_service")
   S_(SECCLASS_CAPABILITY, CAPABILITY__NET_BROADCAST, "net_broadcast")
   S_(SECCLASS_CAPABILITY, CAPABILITY__NET_ADMIN, "net_admin")
   S_(SECCLASS_CAPABILITY, CAPABILITY__NET_RAW, "net_raw")
   S_(SECCLASS_CAPABILITY, CAPABILITY__IPC_LOCK, "ipc_lock")
   S_(SECCLASS_CAPABILITY, CAPABILITY__IPC_OWNER, "ipc_owner")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SYS_MODULE, "sys_module")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SYS_RAWIO, "sys_rawio")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SYS_CHROOT, "sys_chroot")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SYS_PTRACE, "sys_ptrace")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SYS_PACCT, "sys_pacct")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SYS_ADMIN, "sys_admin")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SYS_BOOT, "sys_boot")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SYS_NICE, "sys_nice")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SYS_RESOURCE, "sys_resource")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SYS_TIME, "sys_time")
   S_(SECCLASS_CAPABILITY, CAPABILITY__SYS_TTY_CONFIG, "sys_tty_config")
   S_(SECCLASS_CAPABILITY, CAPABILITY__MKNOD, "mknod")
   S_(SECCLASS_CAPABILITY, CAPABILITY__LEASE, "lease")
   S_(SECCLASS_CAPABILITY, CAPABILITY__AUDIT_WRITE, "audit_write")
   S_(SECCLASS_CAPABILITY, CAPABILITY__AUDIT_CONTROL, "audit_control")
   S_(SECCLASS_PASSWD, PASSWD__PASSWD, "passwd")
   S_(SECCLASS_PASSWD, PASSWD__CHFN, "chfn")
   S_(SECCLASS_PASSWD, PASSWD__CHSH, "chsh")
   S_(SECCLASS_PASSWD, PASSWD__ROOTOK, "rootok")
   S_(SECCLASS_PASSWD, PASSWD__CRONTAB, "crontab")
   S_(SECCLASS_DRAWABLE, DRAWABLE__CREATE, "create")
   S_(SECCLASS_DRAWABLE, DRAWABLE__DESTROY, "destroy")
   S_(SECCLASS_DRAWABLE, DRAWABLE__DRAW, "draw")
   S_(SECCLASS_DRAWABLE, DRAWABLE__COPY, "copy")
   S_(SECCLASS_DRAWABLE, DRAWABLE__GETATTR, "getattr")
   S_(SECCLASS_GC, GC__CREATE, "create")
   S_(SECCLASS_GC, GC__FREE, "free")
   S_(SECCLASS_GC, GC__GETATTR, "getattr")
   S_(SECCLASS_GC, GC__SETATTR, "setattr")
   S_(SECCLASS_WINDOW, WINDOW__ADDCHILD, "addchild")
   S_(SECCLASS_WINDOW, WINDOW__CREATE, "create")
   S_(SECCLASS_WINDOW, WINDOW__DESTROY, "destroy")
   S_(SECCLASS_WINDOW, WINDOW__MAP, "map")
   S_(SECCLASS_WINDOW, WINDOW__UNMAP, "unmap")
   S_(SECCLASS_WINDOW, WINDOW__CHSTACK, "chstack")
   S_(SECCLASS_WINDOW, WINDOW__CHPROPLIST, "chproplist")
   S_(SECCLASS_WINDOW, WINDOW__CHPROP, "chprop")
   S_(SECCLASS_WINDOW, WINDOW__LISTPROP, "listprop")
   S_(SECCLASS_WINDOW, WINDOW__GETATTR, "getattr")
   S_(SECCLASS_WINDOW, WINDOW__SETATTR, "setattr")
   S_(SECCLASS_WINDOW, WINDOW__SETFOCUS, "setfocus")
   S_(SECCLASS_WINDOW, WINDOW__MOVE, "move")
   S_(SECCLASS_WINDOW, WINDOW__CHSELECTION, "chselection")
   S_(SECCLASS_WINDOW, WINDOW__CHPARENT, "chparent")
   S_(SECCLASS_WINDOW, WINDOW__CTRLLIFE, "ctrllife")
   S_(SECCLASS_WINDOW, WINDOW__ENUMERATE, "enumerate")
   S_(SECCLASS_WINDOW, WINDOW__TRANSPARENT, "transparent")
   S_(SECCLASS_WINDOW, WINDOW__MOUSEMOTION, "mousemotion")
   S_(SECCLASS_WINDOW, WINDOW__CLIENTCOMEVENT, "clientcomevent")
   S_(SECCLASS_WINDOW, WINDOW__INPUTEVENT, "inputevent")
   S_(SECCLASS_WINDOW, WINDOW__DRAWEVENT, "drawevent")
   S_(SECCLASS_WINDOW, WINDOW__WINDOWCHANGEEVENT, "windowchangeevent")
   S_(SECCLASS_WINDOW, WINDOW__WINDOWCHANGEREQUEST, "windowchangerequest")
   S_(SECCLASS_WINDOW, WINDOW__SERVERCHANGEEVENT, "serverchangeevent")
   S_(SECCLASS_WINDOW, WINDOW__EXTENSIONEVENT, "extensionevent")
   S_(SECCLASS_FONT, FONT__LOAD, "load")
   S_(SECCLASS_FONT, FONT__FREE, "free")
   S_(SECCLASS_FONT, FONT__GETATTR, "getattr")
   S_(SECCLASS_FONT, FONT__USE, "use")
   S_(SECCLASS_COLORMAP, COLORMAP__CREATE, "create")
   S_(SECCLASS_COLORMAP, COLORMAP__FREE, "free")
   S_(SECCLASS_COLORMAP, COLORMAP__INSTALL, "install")
   S_(SECCLASS_COLORMAP, COLORMAP__UNINSTALL, "uninstall")
   S_(SECCLASS_COLORMAP, COLORMAP__LIST, "list")
   S_(SECCLASS_COLORMAP, COLORMAP__READ, "read")
   S_(SECCLASS_COLORMAP, COLORMAP__STORE, "store")
   S_(SECCLASS_COLORMAP, COLORMAP__GETATTR, "getattr")
   S_(SECCLASS_COLORMAP, COLORMAP__SETATTR, "setattr")
   S_(SECCLASS_PROPERTY, PROPERTY__CREATE, "create")
   S_(SECCLASS_PROPERTY, PROPERTY__FREE, "free")
   S_(SECCLASS_PROPERTY, PROPERTY__READ, "read")
   S_(SECCLASS_PROPERTY, PROPERTY__WRITE, "write")
   S_(SECCLASS_CURSOR, CURSOR__CREATE, "create")
   S_(SECCLASS_CURSOR, CURSOR__CREATEGLYPH, "createglyph")
   S_(SECCLASS_CURSOR, CURSOR__FREE, "free")
   S_(SECCLASS_CURSOR, CURSOR__ASSIGN, "assign")
   S_(SECCLASS_CURSOR, CURSOR__SETATTR, "setattr")
   S_(SECCLASS_XCLIENT, XCLIENT__KILL, "kill")
   S_(SECCLASS_XINPUT, XINPUT__LOOKUP, "lookup")
   S_(SECCLASS_XINPUT, XINPUT__GETATTR, "getattr")
   S_(SECCLASS_XINPUT, XINPUT__SETATTR, "setattr")
   S_(SECCLASS_XINPUT, XINPUT__SETFOCUS, "setfocus")
   S_(SECCLASS_XINPUT, XINPUT__WARPPOINTER, "warppointer")
   S_(SECCLASS_XINPUT, XINPUT__ACTIVEGRAB, "activegrab")
   S_(SECCLASS_XINPUT, XINPUT__PASSIVEGRAB, "passivegrab")
   S_(SECCLASS_XINPUT, XINPUT__UNGRAB, "ungrab")
   S_(SECCLASS_XINPUT, XINPUT__BELL, "bell")
   S_(SECCLASS_XINPUT, XINPUT__MOUSEMOTION, "mousemotion")
   S_(SECCLASS_XINPUT, XINPUT__RELABELINPUT, "relabelinput")
   S_(SECCLASS_XSERVER, XSERVER__SCREENSAVER, "screensaver")
   S_(SECCLASS_XSERVER, XSERVER__GETHOSTLIST, "gethostlist")
   S_(SECCLASS_XSERVER, XSERVER__SETHOSTLIST, "sethostlist")
   S_(SECCLASS_XSERVER, XSERVER__GETFONTPATH, "getfontpath")
   S_(SECCLASS_XSERVER, XSERVER__SETFONTPATH, "setfontpath")
   S_(SECCLASS_XSERVER, XSERVER__GETATTR, "getattr")
   S_(SECCLASS_XSERVER, XSERVER__GRAB, "grab")
   S_(SECCLASS_XSERVER, XSERVER__UNGRAB, "ungrab")
   S_(SECCLASS_XEXTENSION, XEXTENSION__QUERY, "query")
   S_(SECCLASS_XEXTENSION, XEXTENSION__USE, "use")
   S_(SECCLASS_PAX, PAX__PAGEEXEC, "pageexec")
   S_(SECCLASS_PAX, PAX__EMUTRAMP, "emutramp")
   S_(SECCLASS_PAX, PAX__MPROTECT, "mprotect")
   S_(SECCLASS_PAX, PAX__RANDMMAP, "randmmap")
   S_(SECCLASS_PAX, PAX__RANDEXEC, "randexec")
   S_(SECCLASS_PAX, PAX__SEGMEXEC, "segmexec")
   S_(SECCLASS_NETLINK_ROUTE_SOCKET, NETLINK_ROUTE_SOCKET__NLMSG_READ, "nlmsg_read")
   S_(SECCLASS_NETLINK_ROUTE_SOCKET, NETLINK_ROUTE_SOCKET__NLMSG_WRITE, "nlmsg_write")
   S_(SECCLASS_NETLINK_FIREWALL_SOCKET, NETLINK_FIREWALL_SOCKET__NLMSG_READ, "nlmsg_read")
   S_(SECCLASS_NETLINK_FIREWALL_SOCKET, NETLINK_FIREWALL_SOCKET__NLMSG_WRITE, "nlmsg_write")
   S_(SECCLASS_NETLINK_TCPDIAG_SOCKET, NETLINK_TCPDIAG_SOCKET__NLMSG_READ, "nlmsg_read")
   S_(SECCLASS_NETLINK_TCPDIAG_SOCKET, NETLINK_TCPDIAG_SOCKET__NLMSG_WRITE, "nlmsg_write")
   S_(SECCLASS_NETLINK_XFRM_SOCKET, NETLINK_XFRM_SOCKET__NLMSG_READ, "nlmsg_read")
   S_(SECCLASS_NETLINK_XFRM_SOCKET, NETLINK_XFRM_SOCKET__NLMSG_WRITE, "nlmsg_write")
   S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_READ, "nlmsg_read")
   S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_WRITE, "nlmsg_write")
   S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_RELAY, "nlmsg_relay")
   S_(SECCLASS_NETLINK_AUDIT_SOCKET, NETLINK_AUDIT_SOCKET__NLMSG_READPRIV, "nlmsg_readpriv")
   S_(SECCLASS_NETLINK_IP6FW_SOCKET, NETLINK_IP6FW_SOCKET__NLMSG_READ, "nlmsg_read")
   S_(SECCLASS_NETLINK_IP6FW_SOCKET, NETLINK_IP6FW_SOCKET__NLMSG_WRITE, "nlmsg_write")
   S_(SECCLASS_DBUS, DBUS__ACQUIRE_SVC, "acquire_svc")
   S_(SECCLASS_DBUS, DBUS__SEND_MSG, "send_msg")
   S_(SECCLASS_NSCD, NSCD__GETPWD, "getpwd")
   S_(SECCLASS_NSCD, NSCD__GETGRP, "getgrp")
   S_(SECCLASS_NSCD, NSCD__GETHOST, "gethost")
   S_(SECCLASS_NSCD, NSCD__GETSTAT, "getstat")
   S_(SECCLASS_NSCD, NSCD__ADMIN, "admin")
   S_(SECCLASS_NSCD, NSCD__SHMEMPWD, "shmempwd")
   S_(SECCLASS_NSCD, NSCD__SHMEMGRP, "shmemgrp")
   S_(SECCLASS_NSCD, NSCD__SHMEMHOST, "shmemhost")
   S_(SECCLASS_ASSOCIATION, ASSOCIATION__SENDTO, "sendto")
   S_(SECCLASS_ASSOCIATION, ASSOCIATION__RECVFROM, "recvfrom")