Skip to content

Commit f383eeb

Browse files
committed
Prevents server socket from revoking client sockets.
1 parent 1e64037 commit f383eeb

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

kernel/src/cap/ops.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -397,19 +397,6 @@ err_t cap_delete_socket(cte_t c, cap_t cap)
397397

398398
err_t cap_revoke_socket(cte_t parent, cap_t pcap)
399399
{
400-
cte_t child = cte_next(parent);
401-
cap_t ccap = cte_cap(child);
402-
if (ccap.type == CAPTY_SOCKET && pcap.sock.chan == ccap.sock.chan
403-
&& pcap.sock.tag == 0) {
404-
// delete the child
405-
cte_delete(child);
406-
407-
// Clear socket
408-
cap_sock_clear(ccap, proc_get(cte_pid(child)));
409-
410-
return CONTINUE;
411-
}
412-
413400
return SUCCESS;
414401
}
415402

0 commit comments

Comments
 (0)