android_kernel_motorola_sm6225/security/selinux
Bram Bonné 5523c1b277 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)
Git-commit: 19c8fef96d
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
2022-06-28 13:45:10 +05:30
..
include ANDROID: selinux: modify RTM_GETNEIGH{TBL} 2022-06-28 13:45:10 +05:30
ss ANDROID: selinux: modify RTM_GETNEIGH{TBL} 2022-06-28 13:45:10 +05:30
.gitignore
avc.c Merge android-4.19.110 (1984fff) into msm-4.19 2020-05-23 05:08:22 -07:00
exports.c selinux: sparse fix: include selinux.h in exports.c 2011-09-09 16:56:32 -07:00
hooks.c Merge android-4.19-stable.149 (9ce79d9) into msm-4.19 2020-10-21 09:25:49 +05:30
ibpkey.c selinux: wrap global selinux state 2018-03-01 18:48:02 -05:00
Kconfig UPSTREAM: selinux: sidtab reverse lookup hash table 2020-01-08 22:21:35 +00:00
Makefile selinux: move ibpkeys code under CONFIG_SECURITY_INFINIBAND 2020-01-17 13:34:15 +05:30
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} 2022-06-28 13:45:10 +05:30
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