Bug 1781646

Summary: RFE: Add toplevel filesystem directories for storing eBPF bytecode files
Product: [Fedora] Fedora Reporter: Toke Høiland-Jørgensen <thoiland>
Component: filesystemAssignee: Ondrej Vasik <ovasik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ckalina, jbrouer, ovasik, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: filesystem-3.13-1.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1788999 (view as bug list) Environment:
Last Closed: 2020-01-08 14:26:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1773924, 1788999    
Attachments:
Description Flags
Patch to add bpf-related directories none

Description Toke Høiland-Jørgensen 2019-12-10 11:06:22 UTC
Created attachment 1643630 [details]
Patch to add bpf-related directories

Description of problem:

The kernel eBPF subsystem allows applications to load bytecode into the kernel for various purposes. Not many applications are including such bytecode yet, and so we want to establish a convention for where to store bytecode files to encourage applications to be consistent in this, and make it easier to identify which packages are the source of eBPF programs running on the system.

To this end, the attached patch adds the following directories to the 'filesystem' package:

For pre-compiled eBPF bytecode files:
/usr/%{_lib}/bpf
/usr/local/%{_lib}/bpf

For caching runtime-generated eBPF bytecode:
/var/cache/bpf

Upstream discussion:
https://lore.kernel.org/bpf/87r21ch3xr.fsf@toke.dk/T/