io_uring: restrict IORING_SETUP_SQPOLL to root
authorJens Axboe <axboe@kernel.dk>
Mon, 8 Apr 2019 16:51:01 +0000 (10:51 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Apr 2019 16:51:01 +0000 (10:51 -0600)
commit3ec482d15cb986bf08b923f9193eeddb3b9ca69f
tree4f3f31a7670b0f9e0c6aebf008aef8bd5430394e
parent704236672edacf353c362bab70c3d3eda7bb4a51
io_uring: restrict IORING_SETUP_SQPOLL to root

This options spawns a kernel side thread that will poll for submissions
(and completions, if IORING_SETUP_IOPOLL is set). As this allows a user
to potentially use more cycles outside of the normal hierarchy,
restrict the use of this feature to root.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c