Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0a862f77-4e57-fe2f-d1b3-ea8bcd626aa3@bell-sw.com>
Date: Tue, 29 Jun 2021 18:45:42 +0300
From: Alexey Kodanev <aleksei.kodanev@...l-sw.com>
To: Rich Felker <dalias@...c.org>
Cc: musl@...ts.openwall.com
Subject: Re: [PATCH] nice: return EPERM instead of EACCES

On 29.06.2021 17:48, Rich Felker wrote:
> Is there actually an issue here? setpriority is specified to fail with
> EACCES already for this case; EPERM is only specified for targeting
> other processes you don't have permission to target. Is Linux getting
> this wrong for setpriority?

No, it's fine for setpriority(), it just seems wrong for nice()
to return EACCES in this case.

LTP/nice04 test (setting nice(-10)) is failing with musl and POSIX
indeed says that the errno should be EPERM, for nice().

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.