[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACGdZYL_bE2bamw_1uanwWByrCteNF=hmWYLH=VEVm9=R987ew@mail.gmail.com>
Date: Thu, 20 Aug 2020 17:35:01 -0700
From: Khazhismel Kumykov <khazhy@...gle.com>
To: axboe@...nel.dk, paolo.valente@...aro.org
Cc: linux-block@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: IOPRIO_CLASS_RT without CAP_SYS_ADMIN?
It'd be nice to allow a process to send RT requests without granting
it the wide capabilities of CAP_SYS_ADMIN, and we already have a
capability which seems to almost fit this priority idea -
CAP_SYS_NICE? Would this fit there?
Being capable of setting IO priorities on per request or per thread
basis (be it async submission or w/ thread ioprio_set) is useful
especially when the userspace has its own prioritization/scheduling
before hitting the kernel, allowing us to signal to the kernel how to
order certain IOs, and it'd be nice to separate this from ADMIN for
non-root processes, in a way that's less error prone than e.g. having
a trusted launcher ionice the process and then drop priorities for
everything but prio requests.
khazhy
Download attachment "smime.p7s" of type "application/pkcs7-signature" (3850 bytes)
Powered by blists - more mailing lists