]>
Commit | Line | Data |
---|---|---|
28f540f4 | 1 | /* User and group IDs. |
2b778ceb | 2 | Copyright (C) 1993-2021 Free Software Foundation, Inc. |
c84142e8 UD |
3 | This file is part of the GNU C Library. |
4 | ||
5 | The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
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.1 of the License, or (at your option) any later version. | |
c84142e8 UD |
9 | |
10 | The GNU C 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 | |
41bdb6e2 | 13 | Lesser General Public License for more details. |
c84142e8 | 14 | |
41bdb6e2 | 15 | You should have received a copy of the GNU Lesser General Public |
59ba27a6 | 16 | License along with the GNU C Library; if not, see |
5a82c748 | 17 | <https://www.gnu.org/licenses/>. */ |
28f540f4 RM |
18 | |
19 | #ifndef _HURD_ID_H | |
20 | ||
21 | #define _HURD_ID_H 1 | |
22 | #include <features.h> | |
e30c291a | 23 | #include <hurd/hurd_types.h> |
974393ea ST |
24 | #include <errno.h> |
25 | #include <bits/types/error_t.h> | |
28f540f4 | 26 | |
9446e02b | 27 | #include <lock-intern.h> /* For `struct mutex'. */ |
28f540f4 RM |
28 | |
29 | /* Structure describing authorization data for the process. */ | |
30 | ||
31 | struct hurd_id_data | |
32 | { | |
33 | struct mutex lock; | |
34 | ||
35 | int valid; /* If following data are up to date. */ | |
36 | ||
37 | struct | |
38 | { | |
39 | uid_t *uids; | |
40 | gid_t *gids; | |
41 | mach_msg_type_number_t nuids, ngids; | |
42 | } gen, aux; | |
43 | ||
44 | auth_t rid_auth; /* Cache used by access. */ | |
45 | }; | |
46 | ||
47 | /* Current data. */ | |
48 | ||
49 | extern struct hurd_id_data _hurd_id; | |
50 | ||
51 | ||
52 | /* Update _hurd_id (caller should be holding the lock). */ | |
53 | ||
54 | extern error_t _hurd_check_ids (void); | |
55 | ||
56 | ||
57 | #endif /* hurd/id.h */ |