gcredentials: add NetBSD support

https://bugzilla.gnome.org/show_bug.cgi?id=728256
This commit is contained in:
Patrick Welche
2014-04-15 15:09:22 +01:00
committed by Matthias Clasen
parent 01098e34c1
commit afce39c228
6 changed files with 65 additions and 0 deletions

View File

@@ -100,6 +100,14 @@ test_basic (void)
g_assert_cmpuint (native->cmcred_euid, ==, geteuid ());
g_assert_cmpuint (native->cmcred_pid, ==, getpid ());
}
#elif G_CREDENTIALS_USE_NETBSD_UNPCBID
{
struct unpcbid *native = g_credentials_get_native (creds,
G_CREDENTIALS_TYPE_NETBSD_UNPCBID);
g_assert_cmpuint (native->unp_euid, ==, geteuid ());
g_assert_cmpuint (native->unp_pid, ==, getpid ());
}
#elif G_CREDENTIALS_USE_OPENBSD_SOCKPEERCRED
{
struct sockpeercred *native = g_credentials_get_native (creds,