[PATCH 1/1] uapi: fix broken link in linux/capability.h

Ariel Otilibili ariel.otilibili-anieli at eurecom.fr
Sun Jun 29 12:03:01 UTC 2025


The link to the libcap library is outdated:

> $ curl "https://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/"
>
> <html>
> <head><title>Index of /pub/linux/libs/security/linux-privs/kernel-2.6/</title></head>
> <body>
> <h1>Index of /pub/linux/libs/security/linux-privs/kernel-2.6/</h1><hr><pre><a href="../">../</a>
> </pre><hr></body>
> </html>

Instead, use a link to the libcap2 library:

> $ curl "https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/"
>
> <html>
> <head><title>Index of /pub/linux/libs/security/linux-privs/libcap2/</title></head>
> <body>
> <h1>Index of /pub/linux/libs/security/linux-privs/libcap2/</h1><hr><pre><a href="../">../</a>
> <a href="old/">old/</a>                                               08-Nov-2007 06:34       -
> <a href="libcap-2.00.tar.gz">libcap-2.00.tar.gz</a>                                 11-Jan-2014 16:49     37K
> <a href="libcap-2.00.tar.sign">libcap-2.00.tar.sign</a>                               11-Jan-2014 16:49     819
> [...]
> <a href="libcap-2.76.tar.sign">libcap-2.76.tar.sign</a>                               13-Apr-2025 18:20     833
> <a href="libcap-2.76.tar.xz">libcap-2.76.tar.xz</a>                                 13-Apr-2025 18:20    195K
> <a href="sha256sums.asc">sha256sums.asc</a>                                     13-Apr-2025 18:25     14K
> </pre><hr></body>
> </html>

As well, give the complete reference of the POSIX compliance.

Signed-off-by: Ariel Otilibili <ariel.otilibili-anieli at eurecom.fr>
---
Cc: Serge Hallyn <serge at hallyn.com>
Cc: Andrew G. Morgan <morgan at kernel.org>
---
 include/uapi/linux/capability.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/uapi/linux/capability.h b/include/uapi/linux/capability.h
index 2e21b5594f81..ea5a0899ecf0 100644
--- a/include/uapi/linux/capability.h
+++ b/include/uapi/linux/capability.h
@@ -6,9 +6,10 @@
  * Alexander Kjeldaas <astor at guardian.no>
  * with help from Aleph1, Roland Buresund and Andrew Main.
  *
- * See here for the libcap library ("POSIX draft" compliance):
+ * See here for the libcap2 library (compliant with Section 25 of
+ * the withdrawn POSIX 1003.1e Draft 17):
  *
- * ftp://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
+ * https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/
  */
 
 #ifndef _UAPI_LINUX_CAPABILITY_H
-- 
2.34.1




More information about the Linux-security-module-archive mailing list