Thread (12 messages) 12 messages, 5 authors, 2024-12-12

Re: [PATCH v3 bpf-next 0/6] Enable writing xattr from BPF programs

From: Song Liu <hidden>
Date: 2024-12-11 16:48:16
Also in: bpf, linux-fsdevel, lkml

Hi Ted, 
On Dec 11, 2024, at 5:18 AM, Theodore Ts'o [off-list ref] wrote:

On Tue, Dec 10, 2024 at 02:06:21PM -0800, Song Liu wrote:
quoted
Add support to set and remove xattr from BPF program. Also add
security.bpf. xattr name prefix.
If the system allows for the execution of unprivileged BPF programs
(e.g., ones where a random user can load their own BPF programs), will
they have hte ability to set and remove security.bpf.* xattrs?  If the
answer is yes, should this be disallowed?

I note that one of the use cases seems to be BPF-based LSM's, so we
may want to have something even more restrictive since otherwise any
BPF program could potentially have the same power as the LSM?
These kfuncs are only allowed in BPF LSM programs. Therefore, other
program types (tracing, XDP, etc.) cannot use these kfuncs. 

Thanks,
Song
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help