Re: [PATCH net-next 1/4] bpf: Add file mode configuration into bpf maps

2017-10-04 Thread Daniel Borkmann
On 10/05/2017 01:58 AM, Chenbo Feng wrote: On Wed, Oct 4, 2017 at 4:29 PM, Daniel Borkmann wrote: On 10/04/2017 08:29 PM, Chenbo Feng wrote: From: Chenbo Feng Introduce the map read/write flags to the eBPF syscalls that returns the map fd. The flags is used to set up the file mode when const

Re: [PATCH net-next 1/4] bpf: Add file mode configuration into bpf maps

2017-10-04 Thread Chenbo Feng
On Wed, Oct 4, 2017 at 4:29 PM, Daniel Borkmann wrote: > On 10/04/2017 08:29 PM, Chenbo Feng wrote: >> >> From: Chenbo Feng >> >> Introduce the map read/write flags to the eBPF syscalls that returns the >> map fd. The flags is used to set up the file mode when construct a new >> file descriptor f

Re: [PATCH net-next 1/4] bpf: Add file mode configuration into bpf maps

2017-10-04 Thread Daniel Borkmann
On 10/04/2017 08:29 PM, Chenbo Feng wrote: From: Chenbo Feng Introduce the map read/write flags to the eBPF syscalls that returns the map fd. The flags is used to set up the file mode when construct a new file descriptor for bpf maps. To not break the backward capability, the f_flags is set to

[PATCH net-next 1/4] bpf: Add file mode configuration into bpf maps

2017-10-04 Thread Chenbo Feng
From: Chenbo Feng Introduce the map read/write flags to the eBPF syscalls that returns the map fd. The flags is used to set up the file mode when construct a new file descriptor for bpf maps. To not break the backward capability, the f_flags is set to O_RDWR if the flag passed by syscall is 0. Ot