> On Aug 5, 2019, at 2:25 PM, Andy Lutomirski <l...@kernel.org> wrote: > > On Mon, Aug 5, 2019 at 12:21 PM Alexei Starovoitov > <alexei.starovoi...@gmail.com> wrote: > >> What we need is to drop privileges sooner in daemons like systemd. > > This is doable right now: systemd could fork off a subprocess and > delegate its cgroup operations to it. It would be maybe a couple > hundred lines of code. As an added benefit, that subprocess could > verify that the bpf operations in question are reasonable. > Alternatively, if there was a CAP_BPF_ADMIN, systemd could retain that > capability and flip it on and off as needed. I tried to look at the code and I couldn’t find it. Does systemd drop privileges at all? Can you point me at the code you’re thinking of
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Song Liu
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Song Liu
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Song Liu
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Alexei Starovoitov
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Alexei Starovoitov
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Lorenz Bauer
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Alexei Starovoitov
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Daniel Colascione
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Alexei Starovoitov
- Re: [PATCH v2 bpf-next 1/4] bpf: unprivileged BPF acces... Andy Lutomirski