Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 25 of 191) sorted by relevance

12345678

/device/google/cuttlefish/guest/hals/ril/reference-libril/
DRilSapSocket.cpp90 RLOGD("SocketName:%s",current->socket->name); in printList()
91 RLOGD("Socket id:%d",current->socket->id); in printList()
104 if(socketId == current->socket->id) { in getSocketById()
105 sap_socket = current->socket; in getSocketById()
149 RilSapSocket* socket = NULL; in addSocketToList() local
153 socket = new RilSapSocket(socketName, socketid, uimFuncs); in addSocketToList()
157 delete socket; in addSocketToList()
160 listItem->socket = socket; in addSocketToList()
163 RLOGD("Adding socket with id: %d", socket->id); in addSocketToList()
183 if(strcmp(current->socket->name, socketName) == 0) { in SocketExists()
/device/generic/goldfish/radio/libril/
DRilSapSocket.cpp90 RLOGD("SocketName:%s",current->socket->name); in printList()
91 RLOGD("Socket id:%d",current->socket->id); in printList()
104 if(socketId == current->socket->id) { in getSocketById()
105 sap_socket = current->socket; in getSocketById()
149 RilSapSocket* socket = NULL; in addSocketToList() local
153 socket = new RilSapSocket(socketName, socketid, uimFuncs); in addSocketToList()
157 delete socket; in addSocketToList()
160 listItem->socket = socket; in addSocketToList()
163 RLOGD("Adding socket with id: %d", socket->id); in addSocketToList()
183 if(strcmp(current->socket->name, socketName) == 0) { in SocketExists()
/device/google/cuttlefish/guest/hals/ril/libril/
DRilSapSocket.cpp90 RLOGD("SocketName:%s",current->socket->name); in printList()
91 RLOGD("Socket id:%d",current->socket->id); in printList()
104 if(socketId == current->socket->id) { in getSocketById()
105 sap_socket = current->socket; in getSocketById()
149 RilSapSocket* socket = NULL; in addSocketToList() local
153 socket = new RilSapSocket(socketName, socketid, uimFuncs); in addSocketToList()
157 delete socket; in addSocketToList()
160 listItem->socket = socket; in addSocketToList()
163 RLOGD("Adding socket with id: %d", socket->id); in addSocketToList()
183 if(strcmp(current->socket->name, socketName) == 0) { in SocketExists()
/device/generic/goldfish/wifi/mac80211_create_radios/
Dmain.cpp120 int createRadios(struct nl_sock* socket, const int netlinkFamily, in createRadios() argument
133 int ret = nl_send_auto(socket, msg.get()); in createRadios()
144 std::unique_ptr<struct nl_sock, nl_sock_deleter> socket(nl_socket_alloc()); in manageRadios() local
145 if (!socket) { RETURN_ERROR("nl_socket_alloc", 1); } in manageRadios()
148 ret = genl_connect(socket.get()); in manageRadios()
151 const int netlinkFamily = genl_ctrl_resolve(socket.get(), kHwSimFamilyName); in manageRadios()
154 ret = createRadios(socket.get(), netlinkFamily, nRadios, macPrefix); in manageRadios()
/device/google/cuttlefish/shared/sepolicy/vendor/
Dadbd.te1 allow adbd self:{ socket vsock_socket } {create listen accept rw_socket_perms_no_ioctl};
3 allow adbd unlabeled:{socket vsock_socket} rw_socket_perms_no_ioctl;
10 allow su unlabeled:{ socket vsock_socket } rw_socket_perms_no_ioctl;
Dsocket_vsock_proxy.te7 allow socket_vsock_proxy self:{ socket vsock_socket } { create read write listen accept bind };
9 # TODO: socket returned by accept() has unlabeled context on it. Give it a
11 allow socket_vsock_proxy unlabeled:{ socket vsock_socket } { getopt read write shutdown };
/device/google/cuttlefish/common/frontend/socket_vsock_proxy/
Dmain.cpp42 explicit SocketSender(cuttlefish::SharedFD socket) : socket_{socket} {} in SocketSender() argument
81 explicit SocketReceiver(cuttlefish::SharedFD socket) : socket_{socket} {} in SocketReceiver() argument
135 cuttlefish::SharedFD socket) { in HandleConnection() argument
137 std::thread(SocketToVsock, SocketReceiver{socket}, SocketSender{vsock}); in HandleConnection()
138 VsockToSocket(SocketSender{socket}, SocketReceiver{vsock}); in HandleConnection()
/device/google/wahoo/sepolicy/vendor/
Dhal_gnss_qti.te24 allow hal_gnss_qti self:socket create_socket_perms;
25 allowxperm hal_gnss_qti self:socket ioctl msm_sock_ipc_ioctls;
44 # interface using an IOCTL on a UDP INET socket, which isn't allowed here.
46 # a netlink route socket, which HALs may use. Due to the initial
47 # attempt to use a UDP socket, we still see a selinux denial,
Dhal_sensors_default.te6 allow hal_sensors_default self:socket { create ioctl read write };
7 allowxperm hal_sensors_default self:socket ioctl msm_sock_ipc_ioctls;
19 # Allow communication with CHRE daemon via socket
Dirsc_util.te6 allow irsc_util self:socket create_socket_perms;
7 allowxperm irsc_util self:socket ioctl msm_sock_ipc_ioctls;
Dioctl_defines1 # socket ioctls
4 # socket ioctls defined in the kernel in include/uapi/linux/msm_ipc.h
Datfwd.te11 allow atfwd self:socket create_socket_perms;
12 allowxperm atfwd self:socket ioctl msm_sock_ipc_ioctls;
/device/google/bonito-sepolicy/vendor/qcom/common/
Dhal_wifi_supplicant_default.te1 allow hal_wifi_supplicant_default self:socket create_socket_perms;
3 allowxperm hal_wifi_supplicant_default self:socket ioctl msm_sock_ipc_ioctls;
Dirsc_util.te6 allow irsc_util self:socket create_socket_perms;
7 allowxperm irsc_util self:socket ioctl msm_sock_ipc_ioctls;
Dhal_gnss_qti.te26 # /dev/socket/location
33 allow hal_gnss_qti self:socket create_socket_perms;
34 allowxperm hal_gnss_qti self:socket ioctl msm_sock_ipc_ioctls;
Dhal_rcsservice.te27 #required for socket creation
29 allow hal_rcsservice self:socket create_socket_perms;
30 allowxperm hal_rcsservice self:socket ioctl msm_sock_ipc_ioctls;
Dioctl_defines1 # socket ioctls
4 # socket ioctls defined in the kernel in include/uapi/linux/msm_ipc.h
/device/google/crosshatch-sepolicy/vendor/qcom/common/
Dhal_wifi_supplicant_default.te1 allow hal_wifi_supplicant_default self:socket create_socket_perms;
3 allowxperm hal_wifi_supplicant_default self:socket ioctl msm_sock_ipc_ioctls;
Dirsc_util.te6 allow irsc_util self:socket create_socket_perms;
7 allowxperm irsc_util self:socket ioctl msm_sock_ipc_ioctls;
Dhal_gnss_qti.te22 # /dev/socket/location
29 allow hal_gnss_qti self:socket create_socket_perms;
30 allowxperm hal_gnss_qti self:socket ioctl msm_sock_ipc_ioctls;
Dhal_rcsservice.te27 #required for socket creation
29 allow hal_rcsservice self:socket create_socket_perms;
30 allowxperm hal_rcsservice self:socket ioctl msm_sock_ipc_ioctls;
Dioctl_defines1 # socket ioctls
4 # socket ioctls defined in the kernel in include/uapi/linux/msm_ipc.h
Dkernel.te1 # for diag over socket
2 allow kernel self:socket create;
/device/google/cuttlefish/host/commands/run_cvd/
Dlaunch.cc203 auto socket = cuttlefish::SharedFD::VsockServer(port, SOCK_STREAM); in LaunchConfigServer() local
204 if (!socket->IsOpen()) { in LaunchConfigServer()
206 << socket->StrError(); in LaunchConfigServer()
210 cmd.AddParameter("-server_fd=", socket); in LaunchConfigServer()
236 auto socket = cuttlefish::SharedFD::VsockServer(port, SOCK_STREAM); in LaunchTombstoneReceiverIfEnabled() local
237 if (!socket->IsOpen()) { in LaunchTombstoneReceiverIfEnabled()
239 << socket->StrError(); in LaunchTombstoneReceiverIfEnabled()
244 cmd.AddParameter("-server_fd=", socket); in LaunchTombstoneReceiverIfEnabled()
398 auto socket = cuttlefish::SharedFD::VsockServer(port, SOCK_STREAM); in LaunchModemSimulatorIfEnabled() local
399 if (!socket->IsOpen()) { in LaunchModemSimulatorIfEnabled()
[all …]
/device/google/cuttlefish/host/libs/wayland/
Dwayland_server.cpp67 const char* socket = wl_display_add_socket_auto(server_state_->display_); in ServerLoop() local
68 CHECK(socket != nullptr) in ServerLoop()
71 LOG(INFO) << "WaylandServer running on socket " << socket; in ServerLoop()

12345678