Re: [PATCH bpf-next 1/3] ima: Implement ima_inode_hash

2020-11-20 Thread KP Singh
[...] > > > > diff --git a/scripts/bpf_helpers_doc.py b/scripts/bpf_helpers_doc.py > > index c5bc947a70ad..add7fcb32dcd 100755 > > --- a/scripts/bpf_helpers_doc.py > > +++ b/scripts/bpf_helpers_doc.py > > @@ -478,6 +478,7 @@ class PrinterHelpers(Printer): > > 'struct

Re: [PATCH bpf-next 1/3] ima: Implement ima_inode_hash

2020-11-20 Thread Yonghong Song
On 11/20/20 5:17 AM, KP Singh wrote: From: KP Singh 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

[PATCH bpf-next 1/3] ima: Implement ima_inode_hash

2020-11-20 Thread KP Singh
From: KP Singh 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