netbpfload: do not create /sys/fs/bpf/loader subdir
(it's already created by the platform bpfloader) Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ie22f585cab17fd2bded3d97a9cfe1019b792b69d
This commit is contained in:
@@ -247,13 +247,6 @@ int main(int argc, char** argv) {
|
||||
if (createSysFsBpfSubDir(location.prefix)) return 1;
|
||||
}
|
||||
|
||||
// Note: there's no actual src dir for fs_bpf_loader .o's,
|
||||
// so it is not listed in 'locations[].prefix'.
|
||||
// This is because this is primarily meant for triggering genfscon rules,
|
||||
// and as such this will likely always be the case.
|
||||
// Thus we need to manually create the /sys/fs/bpf/loader subdirectory.
|
||||
if (createSysFsBpfSubDir("loader")) return 1;
|
||||
|
||||
// Load all ELF objects, create programs and maps, and pin them
|
||||
for (const auto& location : locations) {
|
||||
if (loadAllElfObjects(location) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user