~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/security/selinux/include/classmap.h

Version: ~ [ linux-5.6.3 ] ~ [ linux-5.5.16 ] ~ [ linux-5.4.31 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.114 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.175 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.218 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.218 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.82 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #define COMMON_FILE_SOCK_PERMS "ioctl", "read", "write", "create", \
  2     "getattr", "setattr", "lock", "relabelfrom", "relabelto", "append"
  3 
  4 #define COMMON_FILE_PERMS COMMON_FILE_SOCK_PERMS, "unlink", "link", \
  5     "rename", "execute", "swapon", "quotaon", "mounton", "audit_access", \
  6     "open", "execmod"
  7 
  8 #define COMMON_SOCK_PERMS COMMON_FILE_SOCK_PERMS, "bind", "connect", \
  9     "listen", "accept", "getopt", "setopt", "shutdown", "recvfrom",  \
 10     "sendto", "recv_msg", "send_msg", "name_bind"
 11 
 12 #define COMMON_IPC_PERMS "create", "destroy", "getattr", "setattr", "read", \
 13             "write", "associate", "unix_read", "unix_write"
 14 
 15 /*
 16  * Note: The name for any socket class should be suffixed by "socket",
 17  *       and doesn't contain more than one substr of "socket".
 18  */
 19 struct security_class_mapping secclass_map[] = {
 20         { "security",
 21           { "compute_av", "compute_create", "compute_member",
 22             "check_context", "load_policy", "compute_relabel",
 23             "compute_user", "setenforce", "setbool", "setsecparam",
 24             "setcheckreqprot", "read_policy", NULL } },
 25         { "process",
 26           { "fork", "transition", "sigchld", "sigkill",
 27             "sigstop", "signull", "signal", "ptrace", "getsched", "setsched",
 28             "getsession", "getpgid", "setpgid", "getcap", "setcap", "share",
 29             "getattr", "setexec", "setfscreate", "noatsecure", "siginh",
 30             "setrlimit", "rlimitinh", "dyntransition", "setcurrent",
 31             "execmem", "execstack", "execheap", "setkeycreate",
 32             "setsockcreate", NULL } },
 33         { "system",
 34           { "ipc_info", "syslog_read", "syslog_mod",
 35             "syslog_console", "module_request", NULL } },
 36         { "capability",
 37           { "chown", "dac_override", "dac_read_search",
 38             "fowner", "fsetid", "kill", "setgid", "setuid", "setpcap",
 39             "linux_immutable", "net_bind_service", "net_broadcast",
 40             "net_admin", "net_raw", "ipc_lock", "ipc_owner", "sys_module",
 41             "sys_rawio", "sys_chroot", "sys_ptrace", "sys_pacct", "sys_admin",
 42             "sys_boot", "sys_nice", "sys_resource", "sys_time",
 43             "sys_tty_config", "mknod", "lease", "audit_write",
 44             "audit_control", "setfcap", NULL } },
 45         { "filesystem",
 46           { "mount", "remount", "unmount", "getattr",
 47             "relabelfrom", "relabelto", "transition", "associate", "quotamod",
 48             "quotaget", NULL } },
 49         { "file",
 50           { COMMON_FILE_PERMS,
 51             "execute_no_trans", "entrypoint", NULL } },
 52         { "dir",
 53           { COMMON_FILE_PERMS, "add_name", "remove_name",
 54             "reparent", "search", "rmdir", NULL } },
 55         { "fd", { "use", NULL } },
 56         { "lnk_file",
 57           { COMMON_FILE_PERMS, NULL } },
 58         { "chr_file",
 59           { COMMON_FILE_PERMS, NULL } },
 60         { "blk_file",
 61           { COMMON_FILE_PERMS, NULL } },
 62         { "sock_file",
 63           { COMMON_FILE_PERMS, NULL } },
 64         { "fifo_file",
 65           { COMMON_FILE_PERMS, NULL } },
 66         { "socket",
 67           { COMMON_SOCK_PERMS, NULL } },
 68         { "tcp_socket",
 69           { COMMON_SOCK_PERMS,
 70             "connectto", "newconn", "acceptfrom", "node_bind", "name_connect",
 71             NULL } },
 72         { "udp_socket",
 73           { COMMON_SOCK_PERMS,
 74             "node_bind", NULL } },
 75         { "rawip_socket",
 76           { COMMON_SOCK_PERMS,
 77             "node_bind", NULL } },
 78         { "node",
 79           { "tcp_recv", "tcp_send", "udp_recv", "udp_send",
 80             "rawip_recv", "rawip_send", "enforce_dest",
 81             "dccp_recv", "dccp_send", "recvfrom", "sendto", NULL } },
 82         { "netif",
 83           {  "tcp_recv", "tcp_send", "udp_recv", "udp_send",
 84              "rawip_recv", "rawip_send", "dccp_recv", "dccp_send",
 85              "ingress", "egress", NULL } },
 86         { "netlink_socket",
 87           { COMMON_SOCK_PERMS, NULL } },
 88         { "packet_socket",
 89           { COMMON_SOCK_PERMS, NULL } },
 90         { "key_socket",
 91           { COMMON_SOCK_PERMS, NULL } },
 92         { "unix_stream_socket",
 93           { COMMON_SOCK_PERMS, "connectto", "newconn", "acceptfrom", NULL
 94           } },
 95         { "unix_dgram_socket",
 96           { COMMON_SOCK_PERMS, NULL
 97           } },
 98         { "sem",
 99           { COMMON_IPC_PERMS, NULL } },
100         { "msg", { "send", "receive", NULL } },
101         { "msgq",
102           { COMMON_IPC_PERMS, "enqueue", NULL } },
103         { "shm",
104           { COMMON_IPC_PERMS, "lock", NULL } },
105         { "ipc",
106           { COMMON_IPC_PERMS, NULL } },
107         { "netlink_route_socket",
108           { COMMON_SOCK_PERMS,
109             "nlmsg_read", "nlmsg_write", NULL } },
110         { "netlink_firewall_socket",
111           { COMMON_SOCK_PERMS,
112             "nlmsg_read", "nlmsg_write", NULL } },
113         { "netlink_tcpdiag_socket",
114           { COMMON_SOCK_PERMS,
115             "nlmsg_read", "nlmsg_write", NULL } },
116         { "netlink_nflog_socket",
117           { COMMON_SOCK_PERMS, NULL } },
118         { "netlink_xfrm_socket",
119           { COMMON_SOCK_PERMS,
120             "nlmsg_read", "nlmsg_write", NULL } },
121         { "netlink_selinux_socket",
122           { COMMON_SOCK_PERMS, NULL } },
123         { "netlink_audit_socket",
124           { COMMON_SOCK_PERMS,
125             "nlmsg_read", "nlmsg_write", "nlmsg_relay", "nlmsg_readpriv",
126             "nlmsg_tty_audit", NULL } },
127         { "netlink_ip6fw_socket",
128           { COMMON_SOCK_PERMS,
129             "nlmsg_read", "nlmsg_write", NULL } },
130         { "netlink_dnrt_socket",
131           { COMMON_SOCK_PERMS, NULL } },
132         { "association",
133           { "sendto", "recvfrom", "setcontext", "polmatch", NULL } },
134         { "netlink_kobject_uevent_socket",
135           { COMMON_SOCK_PERMS, NULL } },
136         { "appletalk_socket",
137           { COMMON_SOCK_PERMS, NULL } },
138         { "packet",
139           { "send", "recv", "relabelto", "forward_in", "forward_out", NULL } },
140         { "key",
141           { "view", "read", "write", "search", "link", "setattr", "create",
142             NULL } },
143         { "dccp_socket",
144           { COMMON_SOCK_PERMS,
145             "node_bind", "name_connect", NULL } },
146         { "memprotect", { "mmap_zero", NULL } },
147         { "peer", { "recv", NULL } },
148         { "capability2",
149           { "mac_override", "mac_admin", "syslog", "wake_alarm", "block_suspend",
150             NULL } },
151         { "kernel_service", { "use_as_override", "create_files_as", NULL } },
152         { "tun_socket",
153           { COMMON_SOCK_PERMS, NULL } },
154         { NULL }
155   };
156 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp