[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACYkzJ7efr+riXRgwpL23L+o7_DZpqPk+PxP0eJQZHOU_MxoPQ@mail.gmail.com>
Date: Fri, 6 Nov 2020 00:04:39 +0100
From: KP Singh <kpsingh@...omium.org>
To: open list <linux-kernel@...r.kernel.org>, bpf <bpf@...r.kernel.org>
Cc: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>
Subject: Re: [PATCH bpf-next] bpf: Update verification logic for LSM programs
On Fri, Nov 6, 2020 at 12:02 AM KP Singh <kpsingh@...omium.org> wrote:
>
> From: KP Singh <kpsingh@...gle.com>
>
> The current logic checks if the name of the BTF type passed in
> attach_btf_id starts with "bpf_lsm_", this is not sufficient as it also
> allows attachment to non-LSM hooks like the very function that performs
> this check, i.e. bpf_lsm_verify_prog.
>
> In order to ensure that this verification logic allows attachment to
> only LSM hooks, the LSM_HOOK definitions in lsm_hook_defs.h are used to
> generate a BTD id set. The attach_btf_id of the program being attached
Fixing typo (BTD -> BTF) and resending.
Powered by blists - more mailing lists