2
0
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:
John Johansen
2013-06-25 15:52:46 -07:00
committed by Tyler Hicks
parent b6c9a7623a
commit 0d86e64114

View File

@@ -583,6 +583,8 @@ int aa_getpeercon_raw(int fd, char *buffer, int *size)
optlen++;
}
}
rc = optlen;
out:
*size = optlen;
return rc;