From 9f57cbcb1576c9c0287bd4bd73d39d89acb1ece9 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Tue, 6 Aug 2024 12:58:30 -0700 Subject: [PATCH] Fix SWIG prototype declaration of aa_getpeercon_raw Unsigned int vs int probably wouldn't have caused issues, but just in case Signed-off-by: Ryan Lee (cherry picked from commit 91bac34afde765dfc7a0e9fd721940babe5656fd) Signed-off-by: Georgia Garcia --- libraries/libapparmor/swig/SWIG/libapparmor.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libapparmor/swig/SWIG/libapparmor.i b/libraries/libapparmor/swig/SWIG/libapparmor.i index 005dd7fb1..24d7ec1b2 100644 --- a/libraries/libapparmor/swig/SWIG/libapparmor.i +++ b/libraries/libapparmor/swig/SWIG/libapparmor.i @@ -55,7 +55,7 @@ extern int aa_getprocattr_raw(pid_t tid, const char *attr, char *buf, int len, extern int aa_getprocattr(pid_t tid, const char *attr, char **buf, char **mode); extern int aa_gettaskcon(pid_t target, char **label, char **mode); extern int aa_getcon(char **label, char **mode); -extern int aa_getpeercon_raw(int fd, char *buf, int *len, char **mode); +extern int aa_getpeercon_raw(int fd, char *buf, socklen_t *len, char **mode); extern int aa_getpeercon(int fd, char **label, char **mode); extern int aa_query_label(uint32_t mask, char *query, size_t size, int *allow, int *audit);