[PATCH bpf-next v2 06/10] bpf: lsm: Implement attach, detach and execution
KP Singh
kpsingh at chromium.org
Thu Jan 16 09:45:35 UTC 2020
On 15-Jan 18:24, Greg Kroah-Hartman wrote:
> On Wed, Jan 15, 2020 at 06:13:29PM +0100, KP Singh wrote:
> > From: KP Singh <kpsingh at google.com>
> >
> > JITed BPF programs are used by the BPF LSM as dynamically allocated
> > security hooks. arch_bpf_prepare_trampoline handles the
> > arch_bpf_prepare_trampoline generates code to handle conversion of the
> > signature of the hook to the BPF context and allows the BPF program to
> > be called directly as a C function.
> >
> > The following permissions are required to attach a program to a hook:
> >
> > - CAP_SYS_ADMIN to load the program
> > - CAP_MAC_ADMIN to attach it (i.e. to update the security policy)
>
> You forgot to list "GPL-compatible license" here :)
Added it to the commit log for v3.
>
> Anyway, looks good to me:
Thanks! :)
>
> Reviewed-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
More information about the Linux-security-module-archive
mailing list