mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-06 01:05:11 +00:00
Subject: libapparmor: fix return value of aa_getpeercon_raw
Return the total size of the security context on success as documented. Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
committed by
Tyler Hicks
parent
b6c9a7623a
commit
0d86e64114
@@ -583,6 +583,8 @@ int aa_getpeercon_raw(int fd, char *buffer, int *size)
|
||||
optlen++;
|
||||
}
|
||||
}
|
||||
|
||||
rc = optlen;
|
||||
out:
|
||||
*size = optlen;
|
||||
return rc;
|
||||
|
Reference in New Issue
Block a user