[prev in list] [next in list] [prev in thread] [next in thread]
List: gameoftrees
Subject: Re: [got-portable] landlock support, second try
From: Omar Polo <op () omarpolo ! com>
Date: 2022-02-09 19:24:54
Message-ID: 87a6ezj0p4.fsf () omarpolo ! com
[Download RAW message or body]
Bryan Steele <brynet@gmail.com> writes:
> Just as a follow-up to this, documentation appears to be hard to find
> online, but it seems that there is some confusion between ENOTSUP and
> EOPNOTSUPP.
>
> https://github.com/landlock-lsm/man-pages/blob/landlock-v4/man2/landlock_restrict_self.2#L96
>
> Anyway, I can't find whether this was changed in the upstream kernel or
> not, and of course it's Linux, so man pages for syscalls are *maintained
> seperately*. Sigh.
>
> -Bryan.
I admit that I'm a bit confused as well, but errno(3) in my linux box
says:
EOPNOTSUPP Operation not supported on socket (POSIX.1-2001).
(ENOTSUP and EOPNOTSUPP have the same value on Linux,
but according to POSIX.1 these error values should be
distinct.)
so... it's the same? :D
It's probably better to use EOPNOTSUPP to avoid confusion in the future
anyway tho.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic