summaryrefslogtreecommitdiff
path: root/service-t/src/com/android/server/net/BpfInterfaceMapUpdater.java
Commit message (Collapse)AuthorAgeFilesLines
* move netd maps and progs into /sys/fs/bpf/netd_shared/...Maciej Żenczykowski2022-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (out of current /sys/fs/bpf/net_shared/...) This will allow genfscon regexp changes in a followup selinux commit. Note that this has a hard dependency on system/bpf change 'bpfloader: add support for netd_shared and net_private subdirs' which also bumps bpfloader to v0.13. This was merged May 12, 2022 (into both aosp/master and tm-dev) and it is in Android T starting with Beta 3 release. This isn't really an issue since amusingly T Beta 2 is already incompatible with current mainline releases due to the snap reverting a previous required bpfloader system/bpf change: move net_shared bpf programs into net_shared subdirectory See: http://b/232050459#comment14 So this doesn't break T Beta1/2, since they already don't work, and Beta3 will work. Bug: 218408035 Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Id5f14d6e3f11cfe35d9d8a9496548a2bc4d022ec (cherry picked from commit 6d116d0f38196625d205e8c76a17b01b61fff246) Merged-In: Id5f14d6e3f11cfe35d9d8a9496548a2bc4d022ec
* adjust for new T bpfloader net_shared locationMaciej Żenczykowski2022-04-231-1/+1
| | | | | | | | | | (this is safe because on pre-T none of these maps and programs are mainlined and thus safe to access from mainline code anyway) Test: TreeHugger, manual Bug: 218408035 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I23e565d665247f33e084978890a1ee8ffe0fe568
* Monitor interface added and update bpf interface mapmarkchien2022-01-211-0/+139
Have BpfInterfaceMapUpdater to update bpf interface map: adding the interface and index mapping to bpf interface map when interface added. Bug: 215095957 Test: atest FrameworkNetTests Change-Id: I2189a50c4869cfc0c33fc6f0228f40ee9f3ac1d4