Skip to content
Snippets Groups Projects
  • Nathan Harold's avatar
    0f75a62e
    Allow UDP Sockets to be returned from IpSecService · 0f75a62e
    Nathan Harold authored
    These permissions allow the system server to create and
    bind a UDP socket such that it gains the SOCK_BINDPORT_LOCK.
    (ref: af_inet.c - inet_bind()) This prevents the user from
    disconnecting the socket, which would create a security
    vulnerability. The user may then use the provided socket,
    which is always IPv4/UDP, for IKE negotiation. Thus, an
    un-trusted user app must be able to use the socket for
    communication.
    
    -ALLOW: read, write, connect, sendto, and recvfrom.
    -NEVERALLOW: anything else
    
    Bug: 30984788
    Test: CTS tested via IpSecManagerTest:testUdpEncapsulationSocket
    
    Change-Id: I045ba941797ac12fd14a0cce42efdd2abc4d67e0
    0f75a62e
    History
    Allow UDP Sockets to be returned from IpSecService
    Nathan Harold authored
    These permissions allow the system server to create and
    bind a UDP socket such that it gains the SOCK_BINDPORT_LOCK.
    (ref: af_inet.c - inet_bind()) This prevents the user from
    disconnecting the socket, which would create a security
    vulnerability. The user may then use the provided socket,
    which is always IPv4/UDP, for IKE negotiation. Thus, an
    un-trusted user app must be able to use the socket for
    communication.
    
    -ALLOW: read, write, connect, sendto, and recvfrom.
    -NEVERALLOW: anything else
    
    Bug: 30984788
    Test: CTS tested via IpSecManagerTest:testUdpEncapsulationSocket
    
    Change-Id: I045ba941797ac12fd14a0cce42efdd2abc4d67e0
untrusted_app.te 1.60 KiB