[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e0df148d-3ba9-383f-237c-831d664c74c8@fb.com>
Date: Fri, 20 Nov 2020 22:48:45 -0800
From: Yonghong Song <yhs@...com>
To: KP Singh <kpsingh@...omium.org>, James Morris <jmorris@...ei.org>,
<linux-kernel@...r.kernel.org>, <bpf@...r.kernel.org>,
<linux-security-module@...r.kernel.org>
CC: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Florent Revest <revest@...omium.org>,
Brendan Jackman <jackmanb@...omium.org>,
Mimi Zohar <zohar@...ux.ibm.com>
Subject: Re: [PATCH bpf-next v2 1/3] ima: Implement ima_inode_hash
On 11/20/20 4:50 PM, KP Singh wrote:
> From: KP Singh <kpsingh@...gle.com>
>
> This is in preparation to add a helper for BPF LSM programs to use
> IMA hashes when attached to LSM hooks. There are LSM hooks like
> inode_unlink which do not have a struct file * argument and cannot
> use the existing ima_file_hash API.
>
> An inode based API is, therefore, useful in LSM based detections like an
> executable trying to delete itself which rely on the inode_unlink LSM
> hook.
>
> Moreover, the ima_file_hash function does nothing with the struct file
> pointer apart from calling file_inode on it and converting it to an
> inode.
>
> Signed-off-by: KP Singh <kpsingh@...gle.com>
Acked-by: Yonghong Song <yhs@...com>
Powered by blists - more mailing lists