From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1105) id 8F6893858D33; Mon, 16 Oct 2023 13:19:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F6893858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1697462382; bh=tmmZcmpDrDR2OCYPUIYg7yVhppr5RWdfBJL3rGn4tMU=; h=From:To:Subject:Date:From; b=oqtAXXgd7CXrmwtB/K70rlZSMZikL2Mvezyf7IP7dLpf9VZKAmlGzYW3pSYqF0DMJ GPgfHrCxe6uNRjNvQwzg85u3sARBi12nq0xawKsJ9/g+WT/kZhDFE3L1bFMGwXazsC Th6ibIp0hHQJRay/bksDVzXGoMemevrEZqy3U2ts= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Joseph Myers To: glibc-cvs@sourceware.org Subject: [glibc] Add SCM_SECURITY, SCM_PIDFD to bits/socket.h X-Act-Checkin: glibc X-Git-Author: Joseph Myers X-Git-Refname: refs/heads/master X-Git-Oldrev: 2399ab0d2076b485aa81855e048a7a44d3c12eaa X-Git-Newrev: 5ef608f36493c5d711418c5d31a7ebe710decc6e Message-Id: <20231016131942.8F6893858D33@sourceware.org> Date: Mon, 16 Oct 2023 13:19:42 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5ef608f36493c5d711418c5d31a7ebe710decc6e commit 5ef608f36493c5d711418c5d31a7ebe710decc6e Author: Joseph Myers Date: Mon Oct 16 13:19:26 2023 +0000 Add SCM_SECURITY, SCM_PIDFD to bits/socket.h Linux 6.5 adds a constant SCM_PIDFD (recall that the non-uapi linux/socket.h, where this constant is added, is in fact a header providing many constants that are part of the kernel/userspace interface). This shows up that SCM_SECURITY, from the same set of definitions and added in Linux 2.6.17, is also missing from glibc, although glibc has the first two constants from this set, SCM_RIGHTS and SCM_CREDENTIALS; add both missing constants to glibc. Tested for x86_64. Diff: --- sysdeps/unix/sysv/linux/bits/socket.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h index 57b05715be..c19814c5cf 100644 --- a/sysdeps/unix/sysv/linux/bits/socket.h +++ b/sysdeps/unix/sysv/linux/bits/socket.h @@ -367,6 +367,10 @@ enum #ifdef __USE_GNU , SCM_CREDENTIALS = 0x02 /* Credentials passing. */ # define SCM_CREDENTIALS SCM_CREDENTIALS + , SCM_SECURITY = 0x03 /* Security label. */ +# define SCM_SECURITY SCM_SECURITY + , SCM_PIDFD = 0x04 /* Pidfd. */ +# define SCM_PIDFD SCM_PIDFD #endif };