nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* GIO - GLib Input, Output and Streaming Library |
2 | * |
||
3 | * Copyright 2013 Red Hat, Inc. |
||
4 | * |
||
5 | * This library is free software; you can redistribute it and/or |
||
6 | * modify it under the terms of the GNU Lesser General Public |
||
7 | * License as published by the Free Software Foundation; either |
||
8 | * version 2 of the License, or (at your option) any later version. |
||
9 | * |
||
10 | * This library is distributed in the hope that it will be useful, |
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||
13 | * Lesser General Public License for more details. |
||
14 | * |
||
15 | * You should have received a copy of the GNU Lesser General |
||
16 | * Public License along with this library; if not, see <http://www.gnu.org/licenses/>. |
||
17 | */ |
||
18 | |||
19 | #ifndef __G_CREDENTIALS_PRIVATE_H__ |
||
20 | #define __G_CREDENTIALS_PRIVATE_H__ |
||
21 | |||
22 | #include "gio/gcredentials.h" |
||
23 | #include "gio/gnetworking.h" |
||
24 | |||
25 | #ifdef __linux__ |
||
26 | #define G_CREDENTIALS_SUPPORTED 1 |
||
27 | #define G_CREDENTIALS_USE_LINUX_UCRED 1 |
||
28 | #define G_CREDENTIALS_NATIVE_TYPE G_CREDENTIALS_TYPE_LINUX_UCRED |
||
29 | #define G_CREDENTIALS_NATIVE_SIZE (sizeof (struct ucred)) |
||
30 | #define G_CREDENTIALS_UNIX_CREDENTIALS_MESSAGE_SUPPORTED 1 |
||
31 | #define G_CREDENTIALS_SOCKET_GET_CREDENTIALS_SUPPORTED 1 |
||
32 | #define G_CREDENTIALS_SPOOFING_SUPPORTED 1 |
||
33 | |||
34 | #elif defined(__FreeBSD__) || \ |
||
35 | defined(__FreeBSD_kernel__) /* Debian GNU/kFreeBSD */ || \ |
||
36 | defined(__GNU__) /* GNU Hurd */ || \ |
||
37 | defined(__DragonFly__) /* DragonFly BSD */ |
||
38 | #define G_CREDENTIALS_SUPPORTED 1 |
||
39 | #define G_CREDENTIALS_USE_FREEBSD_CMSGCRED 1 |
||
40 | #define G_CREDENTIALS_NATIVE_TYPE G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED |
||
41 | #define G_CREDENTIALS_NATIVE_SIZE (sizeof (struct cmsgcred)) |
||
42 | #define G_CREDENTIALS_UNIX_CREDENTIALS_MESSAGE_SUPPORTED 1 |
||
43 | #define G_CREDENTIALS_SPOOFING_SUPPORTED 1 |
||
44 | |||
45 | #elif defined(__NetBSD__) |
||
46 | #define G_CREDENTIALS_SUPPORTED 1 |
||
47 | #define G_CREDENTIALS_USE_NETBSD_UNPCBID 1 |
||
48 | #define G_CREDENTIALS_NATIVE_TYPE G_CREDENTIALS_TYPE_NETBSD_UNPCBID |
||
49 | #define G_CREDENTIALS_NATIVE_SIZE (sizeof (struct unpcbid)) |
||
50 | /* #undef G_CREDENTIALS_UNIX_CREDENTIALS_MESSAGE_SUPPORTED */ |
||
51 | #define G_CREDENTIALS_SPOOFING_SUPPORTED 1 |
||
52 | |||
53 | #elif defined(__OpenBSD__) |
||
54 | #define G_CREDENTIALS_SUPPORTED 1 |
||
55 | #define G_CREDENTIALS_USE_OPENBSD_SOCKPEERCRED 1 |
||
56 | #define G_CREDENTIALS_NATIVE_TYPE G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED |
||
57 | #define G_CREDENTIALS_NATIVE_SIZE (sizeof (struct sockpeercred)) |
||
58 | #define G_CREDENTIALS_SOCKET_GET_CREDENTIALS_SUPPORTED 1 |
||
59 | #define G_CREDENTIALS_SPOOFING_SUPPORTED 1 |
||
60 | |||
61 | #elif defined(__sun__) || defined(__illumos__) || defined (__OpenSolaris_kernel__) |
||
62 | #include <ucred.h> |
||
63 | #define G_CREDENTIALS_SUPPORTED 1 |
||
64 | #define G_CREDENTIALS_USE_SOLARIS_UCRED 1 |
||
65 | #define G_CREDENTIALS_NATIVE_TYPE G_CREDENTIALS_TYPE_SOLARIS_UCRED |
||
66 | #define G_CREDENTIALS_NATIVE_SIZE (ucred_size ()) |
||
67 | #define G_CREDENTIALS_UNIX_CREDENTIALS_MESSAGE_SUPPORTED 1 |
||
68 | #define G_CREDENTIALS_SOCKET_GET_CREDENTIALS_SUPPORTED 1 |
||
69 | |||
70 | #endif |
||
71 | |||
72 | #endif /* __G_CREDENTIALS_PRIVATE_H__ */ |