Re: [PATCH bpf-next v4 8/9] bpf: Add tests for task_local_storage

2020-11-05 Thread KP Singh
On Thu, Nov 5, 2020 at 11:03 PM Martin KaFai Lau wrote: > > On Thu, Nov 05, 2020 at 03:47:54PM +0100, KP Singh wrote: > > From: KP Singh > > > > The test exercises the syscall based map operations by creating a pidfd > > for the current process. > > [...] > > +} > > + > > +unsigned int

Re: [PATCH bpf-next v4 8/9] bpf: Add tests for task_local_storage

2020-11-05 Thread Martin KaFai Lau
On Thu, Nov 05, 2020 at 03:47:54PM +0100, KP Singh wrote: > From: KP Singh > > The test exercises the syscall based map operations by creating a pidfd > for the current process. > > For verifying kernel / LSM functionality, the test implements a simple > MAC policy which denies an executable

[PATCH bpf-next v4 8/9] bpf: Add tests for task_local_storage

2020-11-05 Thread KP Singh
From: KP Singh The test exercises the syscall based map operations by creating a pidfd for the current process. For verifying kernel / LSM functionality, the test implements a simple MAC policy which denies an executable from unlinking itself. The LSM program bprm_committed_creds sets a