Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240906124533.GU10433@brightrain.aerifal.cx>
Date: Fri, 6 Sep 2024 08:45:35 -0400
From: Rich Felker <dalias@...c.org>
To: jane400 <jane400@...tmarketos.org>
Cc: musl@...ts.openwall.com
Subject: Re: [PATCH] sys/prctl.h: use linux uapi header

On Fri, Sep 06, 2024 at 01:49:30PM +0200, jane400 wrote:
> The file also includes backports until 2023 for older kernels.
> 
> There are no exisiting UAPI guards in the kernel for this header
> and as complex projects like systemd sometimes use both, it was
> easiest to just use the defintions from the kernel directly instead
> of copying in them. This way we're never redefining stuff in end-user
> applications and get the benefit of using the latest API that is
> available on this system.

Using both is not a supported usage. This comes up in multiple places
other than sys/prctl.h, like lots of network stuff, and the
applications doing it just need to be fixed. Generally we do not use
uapi headers at all from musl, and offer a working compilation
environment without uapi headers installed. This would also be a
breaking change if we ever needed to call prctls internally from libc,
as then building musl itself would depend on kernel headers.

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.