lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 16 May 2019 11:35:02 -0700
From:   Alexei Starovoitov <alexei.starovoitov@...il.com>
To:     Chenbo Feng <fengc@...gle.com>
Cc:     Network Development <netdev@...r.kernel.org>,
        Android Kernel Team <kernel-team@...roid.com>,
        Lorenzo Colitti <lorenzo@...gle.com>,
        Maciej ┼╗enczykowski <maze@...gle.com>,
        Daniel Borkmann <daniel@...earbox.net>,
        Alexei Starovoitov <ast@...nel.org>
Subject: Re: [PATCH bpf] bpf: relax inode permission check for retrieving bpf program

On Tue, May 14, 2019 at 7:43 PM Chenbo Feng <fengc@...gle.com> wrote:
>
> For iptable module to load a bpf program from a pinned location, it
> only retrieve a loaded program and cannot change the program content so
> requiring a write permission for it might not be necessary.
> Also when adding or removing an unrelated iptable rule, it might need to
> flush and reload the xt_bpf related rules as well and triggers the inode
> permission check. It might be better to remove the write premission
> check for the inode so we won't need to grant write access to all the
> processes that flush and restore iptables rules.
>
> Signed-off-by: Chenbo Feng <fengc@...gle.com>

Applied. The fix makes sense to me.

Powered by blists - more mailing lists