android: paranoid_network: security around AF_INET socket creation
Require the "inet" group (gid 3003) in order to create an AF_INET or
AF_INET6 socket.
Configurable with the ANDROID_PARANOID_NETWORK configure option.
Also, for cleanliness, bring the similar code for AF_BLUETOOTH sockets
under the same regime.
Signed-off-by:
Robert Love <rlove@google.com>
Showing
- drivers/android/Kconfig 2 additions, 4 deletionsdrivers/android/Kconfig
- include/linux/android_aid.h 1 addition, 0 deletionsinclude/linux/android_aid.h
- net/bluetooth/af_bluetooth.c 24 additions, 11 deletionsnet/bluetooth/af_bluetooth.c
- net/ipv4/af_inet.c 20 additions, 0 deletionsnet/ipv4/af_inet.c
- net/ipv6/af_inet6.c 20 additions, 0 deletionsnet/ipv6/af_inet6.c
Please register or sign in to comment