android_kernel_sony_sdm845/security/selinux/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bram Bonné 26dbcabbe4 BACKPORT: 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)
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
(cherry picked from android-4.14-stable commit
32d7afd1472c3cce509a3455b40a575540eac780)
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 18:07:00 +07:00
..
audit.h
avc.h BACKPORT: selinux: wrap AVC state 2026-05-15 18:06:58 +07:00
avc_ss.h BACKPORT: selinux: wrap AVC state 2026-05-15 18:06:58 +07:00
classmap.h BACKPORT: ANDROID: selinux: modify RTM_GETNEIGH{TBL} 2026-05-15 18:07:00 +07:00
conditional.h BACKPORT: selinux: wrap global selinux state 2026-05-15 18:06:58 +07:00
initial_sid_to_string.h
netif.h selinux: make the netif cache namespace aware 2014-09-10 17:09:57 -04:00
netlabel.h netlabel: Pass a family parameter to netlbl_skbuff_err(). 2016-06-27 15:06:16 -04:00
netnode.h BACKPORT: treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295 2026-05-15 17:57:45 +07:00
netport.h BACKPORT: treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295 2026-05-15 17:57:45 +07:00
objsec.h BACKPORT: selinux: wrap global selinux state 2026-05-15 18:06:58 +07:00
security.h BACKPORT: ANDROID: selinux: modify RTM_GETNEIGH{TBL} 2026-05-15 18:07:00 +07:00
xfrm.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-03-25 20:29:20 -04:00