1type socket_vsock_proxy, domain, netdomain;
2type socket_vsock_proxy_exec, exec_type, vendor_file_type, file_type;
3
4init_daemon_domain(socket_vsock_proxy)
5
6allow socket_vsock_proxy self:global_capability_class_set { net_admin net_raw };
7allow socket_vsock_proxy self:{ socket vsock_socket } { create read write listen accept bind };
8
9# TODO: socket returned by accept() has unlabeled context on it. Give it a
10# specific label.
11allow socket_vsock_proxy unlabeled:{ socket vsock_socket } { getopt read write shutdown };
12