Skip to content

Commit

Permalink
fix: eBPF object installation prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nativu5 committed Dec 13, 2024
1 parent ba7a068 commit 7bf9be9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ install(FILES
if(ENABLE_BPF)
install(FILES
${CMAKE_BINARY_DIR}/src/Misc/BPF/cgroup_dev_bpf.o
DESTINATION /etc/crane/
DESTINATION /usr/local/lib64/bpf/
COMPONENT cranedc
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/Craned/CgroupManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ enum class ControllerFile : uint64_t {
inline const char *kTaskCgPathPrefix = "Crane_Task_";
inline const char *RootCgroupFullPath = "/sys/fs/cgroup";
#ifdef CRANE_ENABLE_BPF
inline const char *BpfObjectFile = "/etc/crane/cgroup_dev_bpf.o";
inline const char *BpfObjectFile = "/usr/local/lib64/bpf/cgroup_dev_bpf.o";
inline const char *BpfDeviceMapFile = "/sys/fs/bpf/craned_dev_map";
inline const char *BpfMapName = "craned_dev_map";
inline const char *BpfProgramName = "craned_device_access";
Expand Down

0 comments on commit 7bf9be9

Please sign in to comment.