]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing_socket: add SO_PASSRIGHTS
authorMike Yuan <me@yhndnzj.com>
Thu, 5 Jun 2025 21:00:40 +0000 (23:00 +0200)
committerMike Yuan <me@yhndnzj.com>
Tue, 17 Jun 2025 11:16:42 +0000 (13:16 +0200)
README
src/basic/missing_socket.h

diff --git a/README b/README
index 7199166669138113829d83431cbd578cc696e9a0..0062563d5c126b940d002e2284791a4bd8973dbb 100644 (file)
--- a/README
+++ b/README
@@ -74,7 +74,7 @@ REQUIREMENTS:
                      ≥ 6.10 for fcntl(F_DUPFD_QUERY), unprivileged linkat(AT_EMPTY_PATH),
                             and block device 'partscan' sysfs attribute
                      ≥ 6.13 for PIDFD_GET_INFO and {set,remove}xattrat()
-                     ≥ 6.16 for coredump pattern '%F' (pidfd) specifier
+                     ≥ 6.16 for coredump pattern '%F' (pidfd) specifier and SO_PASSRIGHTS
 
         ✅ systemd utilizes several new kernel APIs, but will fall back gracefully
            when unavailable.
index 3a81dfff8ad827bea59638424a721564186d856a..cc453d2396ef9ba93f29625722e46d05ee7fc456 100644 (file)
 #define SO_PEERPIDFD 77
 #endif
 
+/* Supported since kernel v6.16 (77cbe1a6d8730a07f99f9263c2d5f2304cf5e830) */
+#ifndef SO_PASSRIGHTS
+#define SO_PASSRIGHTS 83
+#endif
+
 /* Not exposed yet. Defined in include/linux/socket.h. */
 #ifndef SOL_SCTP
 #define SOL_SCTP 132