]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: linuxcap: Properly declare prepare_caps_from_permitted_set()
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Apr 2024 08:08:46 +0000 (10:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Apr 2024 08:17:38 +0000 (10:17 +0200)
Expected arguments were not specified in the
prepare_caps_from_permitted_set() function declaration. It is an issue for
some compilers, for instance clang. But at the end, it is unexpected and
deprecated.

No backport needed, except if f0b6436f57 ("MEDIUM: capabilities: check
process capabilities sets") is backported.

include/haproxy/linuxcap.h

index 486d85f66a57f376d2305c173ddbac1210aba21f..9395b7b1ec1149e2c2b15b74a0f77b72d0616b27 100644 (file)
@@ -3,6 +3,6 @@
 
 int prepare_caps_for_setuid(int from_uid, int to_uid);
 int finalize_caps_after_setuid(int from_uid, int to_uid);
-int prepare_caps_from_permitted_set();
+int prepare_caps_from_permitted_set(int from_uid, int to_uid, const char *program_name);
 
 #endif /* _HAPROXY_LINUXCAP_H */