Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3479b136 authored by Chenbo Feng's avatar Chenbo Feng Committed by Amit Pundir
Browse files

BACKPORT: security: bpf: Add LSM hooks for bpf object related syscall



Introduce several LSM hooks for the syscalls that will allow the
userspace to access to eBPF object such as eBPF programs and eBPF maps.
The security check is aimed to enforce a per object security protection
for eBPF object so only processes with the right priviliges can
read/write to a specific map or use a specific eBPF program. Besides
that, a general security hook is added before the multiplexer of bpf
syscall to check the cmd and the attribute used for the command. The
actual security module can decide which command need to be checked and
how the cmd should be checked.

Signed-off-by: default avatarChenbo Feng <fengc@google.com>
Acked-by: default avatarJames Morris <james.l.morris@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>

Bug: 30950746
Change-Id: Ieb3ac74392f531735fc7c949b83346a5f587a77b

(cherry picked from commit afdb09c720b62b8090584c11151d856df330e57d)
Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
parent cace572e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment