summaryrefslogtreecommitdiff
path: root/bpfloader/BpfLoader.cpp
diff options
context:
space:
mode:
authorStephane Lee <stayfan@google.com>2022-03-08 17:27:09 -0800
committerStephane Lee <stayfan@google.com>2022-03-11 00:43:06 +0000
commit16c9360b1fd39991eec3da9f4f534e5f96c6bd00 (patch)
treecb844af98aacdefbf9128afacaeaaccd60e52e30 /bpfloader/BpfLoader.cpp
parent2861e3d0f4da5061c99448ec7fdfb5876c411b4c (diff)
downloadbpf-16c9360b1fd39991eec3da9f4f534e5f96c6bd00.tar.gz
Add socket filter to allowed programs for vendor and remove tracepoint
This also fixes a permissions issue if a non-root user is set. The read permissions should be set before the file is set as non-root to ensure that the permissions can be set without error. Bump the BPF loader version. Bug: 203462310 Test: Ensure that vendor skfilter bpf programs can load Change-Id: Ib6b9a64d8652ff464c9d4d734bb8ae351673b6ce
Diffstat (limited to 'bpfloader/BpfLoader.cpp')
-rw-r--r--bpfloader/BpfLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpfloader/BpfLoader.cpp b/bpfloader/BpfLoader.cpp
index 5c24f0a..74ecfbc 100644
--- a/bpfloader/BpfLoader.cpp
+++ b/bpfloader/BpfLoader.cpp
@@ -58,7 +58,7 @@ using std::string;
// attachment of programs to shared resources (or to detect when a shared resource
// has one BPF program replace another that is attached there)
constexpr bpf_prog_type kVendorAllowedProgTypes[] = {
- BPF_PROG_TYPE_TRACEPOINT,
+ BPF_PROG_TYPE_SOCKET_FILTER,
};
struct Location {