android_kernel_motorola_sm6225/security/selinux
Bram Bonné 19c8fef96d ANDROID: selinux: modify RTM_GETNEIGH{TBL}
Map the permission gating RTM_GETNEIGH/RTM_GETNEIGHTBL messages to a
new permission so that it can be distinguished from the other netlink
route permissions in selinux policy. The new permission is triggered by
a flag set in system images T and up.

This change is intended to be backported to all kernels that a T system
image can run on top of.

Bug: 171572148
Test: atest NetworkInterfaceTest
Test: atest CtsSelinuxTargetSdkCurrentTestCases
Test: atest bionic-unit-tests-static
Test: On Cuttlefish, run combinations of:
    - Policy bit set or omitted (see https://r.android.com/1701847)
    - This patch applied or omitted
    - App having nlmsg_readneigh permission or not
  Verify that only the combination of this patch + the policy bit being
  set + the app not having the nlmsg_readneigh permission prevents the
  app from sending RTM_GETNEIGH messages.

Change-Id: I4bcfce4decb34ea9388eeedfc4be67403de8a980
Signed-off-by: Bram Bonné <brambonne@google.com>
(cherry picked from commit fac07550bdac9adea0dbe3edbdbec7a9a690a178)
2021-06-25 15:31:02 +00:00
..
include ANDROID: selinux: modify RTM_GETNEIGH{TBL} 2021-06-25 15:31:02 +00:00
ss ANDROID: selinux: modify RTM_GETNEIGH{TBL} 2021-06-25 15:31:02 +00:00
.gitignore
avc.c selinux: ensure we cleanup the internal AVC counters on error in avc_update() 2020-02-24 08:34:43 +01:00
exports.c
hooks.c This is the 4.19.164 stable release 2020-12-30 12:19:31 +01:00
ibpkey.c selinux: Fix error return code in sel_ib_pkey_sid_slow() 2020-11-18 19:18:50 +01:00
Kconfig UPSTREAM: selinux: sidtab reverse lookup hash table 2020-01-08 22:21:35 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
netif.c selinux: Cleanup printk logging in netif 2018-06-19 13:45:31 -04:00
netlabel.c selinux: avoid uninitialized variable warning 2019-05-31 06:46:31 -07:00
netlink.c selinux: Cleanup printk logging in netlink 2018-06-19 13:33:05 -04:00
netnode.c selinux: Cleanup printk logging in netnode 2018-06-19 13:49:10 -04:00
netport.c selinux: Cleanup printk logging in netport 2018-06-19 13:43:01 -04:00
nlmsgtab.c ANDROID: selinux: modify RTM_GETNEIGH{TBL} 2021-06-25 15:31:02 +00:00
selinuxfs.c This is the 4.19.149 stable release 2020-10-01 16:49:05 +02:00
xfrm.c selinux: wrap AVC state 2018-03-20 16:58:17 -04:00