Commit graph

1985 commits

Author SHA1 Message Date
Maciej Żenczykowski
4a9fb81a05 remove inprocess tethering am: c718d008d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/bpf/+/23088858

Change-Id: I3dd82d1738f46f56df59b745eb8ffb0587890820
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 15:54:33 +00:00
Maciej Żenczykowski
c718d008d8 remove inprocess tethering
Test: TreeHugger
Bug: 279942846
(cherry picked from https://android-review.googlesource.com/q/commit:bca197ccab56cc092a4bb0e50de3d1e40f2e7284)
Merged-In: I381345cee7431d8e41918870155db4a6a8de7e5b
Change-Id: I381345cee7431d8e41918870155db4a6a8de7e5b
2023-05-08 21:15:47 +00:00
Maciej Żenczykowski
bc516a9b26 bpfloader: use non-overwriting rename am: e15229f055 am: cbe811c65e am: 28434ab400 am: be340c2120
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2540010

Change-Id: Ie7b819e9df77fd6f4becf1b95a2a28e40448dbac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17 21:46:09 +00:00
Maciej Żenczykowski
be340c2120 bpfloader: use non-overwriting rename am: e15229f055 am: cbe811c65e am: 28434ab400
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2540010

Change-Id: I20a316c611bcfbc08c0a18242c5ed96ef69efc2d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17 20:53:40 +00:00
Maciej Żenczykowski
28434ab400 bpfloader: use non-overwriting rename am: e15229f055 am: cbe811c65e
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2540010

Change-Id: I4e756212706eba1151fe6f8a08c792a34d0f8ec2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17 20:22:15 +00:00
Maciej Żenczykowski
cbe811c65e bpfloader: use non-overwriting rename am: e15229f055
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2540010

Change-Id: Id6768f2e546107f62fe16cf4d8d5192d15c428dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17 19:54:10 +00:00
Maciej Żenczykowski
e15229f055 bpfloader: use non-overwriting rename
This is for better error reporting.

The target should never exist, unless somehow someone
managed to cause naming collision...

See: https://manpages.debian.org/testing/manpages-dev/renameat2.2.en.html
which mentions support was added for bpffs in Linux 4.9

Bug: 236707886
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ic69ff777bbd2e77a4605477c3196a234f04d3bde
2023-04-17 08:40:57 +00:00
Steven Moreland
e00e39c466 Explicit init .rc user. am: 35795bb50b am: cd8dbf8531 am: 74e9b1bfd7 am: e59bc66f09
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2530319

Change-Id: I273c33a8763cd59b8341c4bd863d7f028798a211
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-12 09:44:56 +00:00
Steven Moreland
e59bc66f09 Explicit init .rc user. am: 35795bb50b am: cd8dbf8531 am: 74e9b1bfd7
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2530319

Change-Id: I128ccb4f211c0c8ed5e1d89fa4e0541c3f6a53a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-12 03:16:09 +00:00
Steven Moreland
74e9b1bfd7 Explicit init .rc user. am: 35795bb50b am: cd8dbf8531
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2530319

Change-Id: I4f150cf2000c211e9db96728e382c0a491a897de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-12 02:44:20 +00:00
Steven Moreland
cd8dbf8531 Explicit init .rc user. am: 35795bb50b
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2530319

Change-Id: Ia4e1c4f76e489a6c205401b045f4092b21892b84
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-12 02:12:35 +00:00
Steven Moreland
35795bb50b Explicit init .rc user.
Set the user explicitly.

Bug: 276813155
Test: boot
Change-Id: I57ba99f7b6e80fa74b2fb22fa98b1cb6dc1c18d5
2023-04-10 20:51:23 +00:00
Maciej Żenczykowski
8a5e5292ea BpfLoader: even more program types am: e245fa9712 am: cff0e46761 am: 52f91e25f0 am: 5cee4e642f
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2523456

Change-Id: I921aae0fc754d9f0d59ef1d484d92f73060ae3b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 22:18:25 +00:00
Maciej Żenczykowski
5cee4e642f BpfLoader: even more program types am: e245fa9712 am: cff0e46761 am: 52f91e25f0
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2523456

Change-Id: Iefb62c1f1c5915b84c7ff1fdf61d6e1ede247638
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 21:34:32 +00:00
Maciej Żenczykowski
52f91e25f0 BpfLoader: even more program types am: e245fa9712 am: cff0e46761
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2523456

Change-Id: Ibea6d52adc49a9c5095d2c9c3c583ccd0ed585bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 21:03:26 +00:00
Maciej Żenczykowski
cff0e46761 BpfLoader: even more program types am: e245fa9712
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2523456

Change-Id: Iabcd0a75cfe6f823dc11c4e6e4b05459419b2377
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 20:34:58 +00:00
Maciej Żenczykowski
e245fa9712 BpfLoader: even more program types
Test: TreeHugger
Bug: 275735436
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Iedc9dcfaa9115728ec3dd64ff02f2622131226b7
2023-04-05 01:16:40 +00:00
Maciej Żenczykowski
ecddc0bc8b bpfloader: add more program types am: c3c4f484e2 am: fdfca05483 am: 0bdec84b13 am: 11cedf5c82
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2512795

Change-Id: I25052ef395d183e21c071dde5c0b09689ca34253
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 22:39:38 +00:00
Maciej Żenczykowski
11cedf5c82 bpfloader: add more program types am: c3c4f484e2 am: fdfca05483 am: 0bdec84b13
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2512795

Change-Id: I2d1750de8034f8f1d27329a5b6dbd30e98fbdfa2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 19:29:52 +00:00
Maciej Żenczykowski
0bdec84b13 bpfloader: add more program types am: c3c4f484e2 am: fdfca05483
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2512795

Change-Id: I752741436705ead14aa6045d8005d99e0892d325
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 18:09:58 +00:00
Maciej Żenczykowski
fdfca05483 bpfloader: add more program types am: c3c4f484e2
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2512795

Change-Id: I617bc20689d5aef74090ee49fcaf088da90a5f50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 17:14:35 +00:00
Maciej Żenczykowski
c3c4f484e2 bpfloader: add more program types
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I8c78008faeeedf455bc879bea2c2f1d9ed08a908
2023-03-29 03:28:56 +00:00
Patrick Rohr
bd1e002925 bpfloader: add support for connect4 / connect6 progs am: aa624f299b am: 3d15b5906e am: a8e9cfa511 am: ddc96f1e49
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2512140

Change-Id: I184c3d88ca239d9f08a1133660467ca14e205fef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-29 03:01:38 +00:00
Patrick Rohr
ddc96f1e49 bpfloader: add support for connect4 / connect6 progs am: aa624f299b am: 3d15b5906e am: a8e9cfa511
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2512140

Change-Id: Ied917de8cbd3bd34cdef6adbceb14dc0e8b6a49d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-29 02:18:26 +00:00
Patrick Rohr
a8e9cfa511 bpfloader: add support for connect4 / connect6 progs am: aa624f299b am: 3d15b5906e
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2512140

Change-Id: I1f2d4627345c4f74ccf5afd809a10408cc562e61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-29 01:45:03 +00:00
Patrick Rohr
3d15b5906e bpfloader: add support for connect4 / connect6 progs am: aa624f299b
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2512140

Change-Id: Ibdb5cf1e1a99aeaab5ae07d445f8aa50535601a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-29 01:11:50 +00:00
Patrick Rohr
aa624f299b bpfloader: add support for connect4 / connect6 progs
These should be useful for producing onConnectEvent events from mainline
bpf code.

BPF_PROG_TYPE_CGROUP_SOCK_ADDR requires the attach type to be explicitly
specified at load time.

Test: builds
Bug: 270905383
Bug: 259000745
Change-Id: Ida57c6eb632b8bb406ee4cadf0a30e47d9c422ff
2023-03-28 23:02:52 +00:00
Maciej Żenczykowski
1e249f02da reduce bpfloader boot log spam am: 509b1b90b9 am: 84bd7711b7 am: f718a01dd2 am: bcc6ed4d1e
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2473464

Change-Id: I40b10a40d4284916cf52caabea08db8dcec0b955
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 03:41:16 +00:00
Maciej Żenczykowski
bcc6ed4d1e reduce bpfloader boot log spam am: 509b1b90b9 am: 84bd7711b7 am: f718a01dd2
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2473464

Change-Id: I517ca01f7509599bfffc36ae2ee7aa6fafd4beb1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 03:07:06 +00:00
Maciej Żenczykowski
f718a01dd2 reduce bpfloader boot log spam am: 509b1b90b9 am: 84bd7711b7
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2473464

Change-Id: Ib0a8dfe11a1e9aae5ba90d13f344737189d4e188
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 02:30:28 +00:00
Maciej Żenczykowski
84bd7711b7 reduce bpfloader boot log spam am: 509b1b90b9
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2473464

Change-Id: Ia49f93e25c88e8b9b59d8528500c808751efcd80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 01:54:40 +00:00
Maciej Żenczykowski
509b1b90b9 reduce bpfloader boot log spam
Bug: 261472074
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I57b97ac7978c85913c52443d7efe40813146a2ba
2023-03-07 01:11:48 +00:00
Treehugger Robot
a7953f266e Merge "Add a warning to bpfloader version number." am: 8d8e166e46 am: 33fe2fd505 am: 9bbde57681
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2396892

Change-Id: I41976ecdb2fcb6c87727035f43d79c140546244d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 22:39:48 +00:00
Treehugger Robot
9bbde57681 Merge "Add a warning to bpfloader version number." am: 8d8e166e46 am: 33fe2fd505
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2396892

Change-Id: I5fba497ddd468d3f2b49bf1bbbd2f932cefcea07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 21:36:42 +00:00
Treehugger Robot
33fe2fd505 Merge "Add a warning to bpfloader version number." am: 8d8e166e46
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2396892

Change-Id: I34b819b156c9b548221727ffbeaa0bb97f525e9d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 19:18:38 +00:00
Treehugger Robot
8d8e166e46 Merge "Add a warning to bpfloader version number." 2023-01-30 18:48:51 +00:00
Maciej Żenczykowski
92c387ba42 Remove connoro@ from bpf OWNERS file. am: d616e8d47f am: 8111e3b855 am: b32f3e6ee9
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2400033

Change-Id: I3bd2cf61e29a37b19751eae3960baa8e56a4726c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-25 00:12:56 +00:00
Maciej Żenczykowski
b32f3e6ee9 Remove connoro@ from bpf OWNERS file. am: d616e8d47f am: 8111e3b855
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2400033

Change-Id: I245201117921b52391f3c931ae972d97cab47f7a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-24 23:28:04 +00:00
Maciej Żenczykowski
8111e3b855 Remove connoro@ from bpf OWNERS file. am: d616e8d47f
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2400033

Change-Id: I6e1396d7d242ab2b505eda93da6d3d03fc8411ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-24 22:19:28 +00:00
Maciej Żenczykowski
d616e8d47f Remove connoro@ from bpf OWNERS file.
Test: N/A
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I79f07fa5644b82286065e55ec485bde60485d72a
2023-01-24 09:16:55 +00:00
Maciej Żenczykowski
0582566336 Add a warning to bpfloader version number.
Driven by GTS failure seen in b/265383327

Test: N/A
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ic45c1f8c0ef38a379981bf29c44358ad39c3a90b
2023-01-20 13:02:42 +00:00
Chih-hung Hsieh
efff4f02ea Merge "Disable tidy DeprecatedOrUnsafeBufferHandling check" am: 4498ab9a0e am: 7e36d58e20 am: ab692d9390
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2377333

Change-Id: I2578a5d7e862343f07f1bcb69a6863bd81ac16e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-13 22:39:18 +00:00
Chih-hung Hsieh
ab692d9390 Merge "Disable tidy DeprecatedOrUnsafeBufferHandling check" am: 4498ab9a0e am: 7e36d58e20
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2377333

Change-Id: Idc0cbfd26718f0abbd95dea52661bd01fede9f08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-13 20:25:53 +00:00
Chih-hung Hsieh
7e36d58e20 Merge "Disable tidy DeprecatedOrUnsafeBufferHandling check" am: 4498ab9a0e
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2377333

Change-Id: Ia0ec3f89e8a81c8c736e2d6323c813e91361f610
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-13 20:06:00 +00:00
Chih-hung Hsieh
4498ab9a0e Merge "Disable tidy DeprecatedOrUnsafeBufferHandling check" 2023-01-13 18:59:45 +00:00
Chih-Hung Hsieh
ef3f44b639 Disable tidy DeprecatedOrUnsafeBufferHandling check
This check is disabled in global default,
see build/soong/cc/config/tidy.go.
This bpf_defaults is used to compile an external/bcc module.
Unless all such warnings can be fixed in the external/bcc source,
we should not enable this check locally.

Test: presubmit; make tidy-external-bcc_subset
Change-Id: I97f6dd944dfb21fed664175c5c7eec02c10ebe4c
2023-01-09 10:58:19 -08:00
Ryan Zuklie
c39a352f13 Update bpf helpers to support new ignore_on fields am: b41a3cfd4e am: a078efe524 am: 8bb6b64f07
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2374671

Change-Id: I94ca606abe1c3d1b20d890bdaccb85200b918102
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-06 22:21:36 +00:00
Ryan Zuklie
8bb6b64f07 Update bpf helpers to support new ignore_on fields am: b41a3cfd4e am: a078efe524
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2374671

Change-Id: I344a2abf0e79abf954367768a3041ca46df74560
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-06 21:45:32 +00:00
Ryan Zuklie
a078efe524 Update bpf helpers to support new ignore_on fields am: b41a3cfd4e
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2374671

Change-Id: I82ebc5f46d5a43e1acc179daa87b84ff53cde26f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-06 21:13:40 +00:00
Ryan Zuklie
40314c277f Actually skip programs based on ignore_on am: 0fb433a965 am: 8c4de761b3 am: 6e60cf1c21
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2377412

Change-Id: I4f078907a86f7c73e69046115ea51dcebbb9f85b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-06 14:22:06 +00:00