[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANDihLE5oO2=MDiPtGmUzZgaPuzT2_X7da-vKe+ybBJkXgnsAQ@mail.gmail.com>
Date: Mon, 15 Nov 2021 10:17:30 -0800
From: Alistair Delva <adelva@...gle.com>
To: Jens Axboe <axboe@...nel.dk>
Cc: linux-kernel@...r.kernel.org,
Khazhismel Kumykov <khazhy@...gle.com>,
Bart Van Assche <bvanassche@....org>,
Serge Hallyn <serge@...lyn.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Paul Moore <paul@...l-moore.com>, selinux@...r.kernel.org,
linux-security-module@...r.kernel.org, kernel-team@...roid.com,
stable@...r.kernel.org
Subject: Re: [PATCH] block: Check ADMIN before NICE for IOPRIO_CLASS_RT
On Mon, Nov 15, 2021 at 10:04 AM Jens Axboe <axboe@...nel.dk> wrote:
>
> On 11/15/21 10:38 AM, Alistair Delva wrote:
> > Booting to Android userspace on 5.14 or newer triggers the following
> > SELinux denial:
> >
> > avc: denied { sys_nice } for comm="init" capability=23
> > scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability
> > permissive=0
> >
> > Init is PID 0 running as root, so it already has CAP_SYS_ADMIN. For
> > better compatibility with older SEPolicy, check ADMIN before NICE.
>
> Seems a bit wonky to me, but the end result is the same.
No argument from me..
> In any case,
> this warrants a comment above it detailing why the ordering is
> seemingly important.
Sent v2.
> --
> Jens Axboe
>
Powered by blists - more mailing lists