Re: [PATCH bpf-next v2 1/2] bpf: Add bpf_lsm_set_bprm_opts helper

2020-11-16 Thread KP Singh
On Tue, Nov 17, 2020 at 3:03 AM KP Singh wrote: > > On Tue, Nov 17, 2020 at 1:11 AM Martin KaFai Lau wrote: > > > > On Mon, Nov 16, 2020 at 11:25:35PM +, KP Singh wrote: > > > From: KP Singh > > > > > > The helper allows modification of certain bits on the linux_binprm > > > struct starting

Re: [PATCH bpf-next v2 1/2] bpf: Add bpf_lsm_set_bprm_opts helper

2020-11-16 Thread KP Singh
On Tue, Nov 17, 2020 at 1:11 AM Martin KaFai Lau wrote: > > On Mon, Nov 16, 2020 at 11:25:35PM +, KP Singh wrote: > > From: KP Singh > > > > The helper allows modification of certain bits on the linux_binprm > > struct starting with the secureexec bit which can be updated using the > >

Re: [PATCH bpf-next v2 1/2] bpf: Add bpf_lsm_set_bprm_opts helper

2020-11-16 Thread Martin KaFai Lau
On Mon, Nov 16, 2020 at 11:25:35PM +, KP Singh wrote: > From: KP Singh > > The helper allows modification of certain bits on the linux_binprm > struct starting with the secureexec bit which can be updated using the > BPF_LSM_F_BPRM_SECUREEXEC flag. > > secureexec can be set by the LSM for

[PATCH bpf-next v2 1/2] bpf: Add bpf_lsm_set_bprm_opts helper

2020-11-16 Thread KP Singh
From: KP Singh The helper allows modification of certain bits on the linux_binprm struct starting with the secureexec bit which can be updated using the BPF_LSM_F_BPRM_SECUREEXEC flag. secureexec can be set by the LSM for privilege gaining executions to set the AT_SECURE auxv for glibc. When