]>
Commit | Line | Data |
---|---|---|
cef4decf JP |
1 | /* |
2 | * This program is free software; you can redistribute it and/or modify it | |
3 | * under the terms of the GNU General Public License as published by the | |
4 | * Free Software Foundation; either version 2, or (at your option) any | |
5 | * later version. | |
6 | * | |
7 | * This program is distributed in the hope that it will be useful, but | |
8 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
10 | * General Public License for more details. | |
11 | * | |
12 | * You should have received a copy of the GNU General Public License along | |
13 | * with this program; if not, write to the Free Software Foundation, Inc., | |
14 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
15 | */ | |
16 | ||
17 | #ifndef CAPUTILS_H | |
18 | #define CAPUTILS_H | |
19 | ||
20 | #include <linux/capability.h> | |
21 | ||
22 | #ifndef PR_CAP_AMBIENT | |
23 | # define PR_CAP_AMBIENT 47 | |
24 | # define PR_CAP_AMBIENT_IS_SET 1 | |
25 | # define PR_CAP_AMBIENT_RAISE 2 | |
26 | # define PR_CAP_AMBIENT_LOWER 3 | |
27 | #endif | |
28 | ||
29 | extern int capset(cap_user_header_t header, cap_user_data_t data); | |
30 | extern int capget(cap_user_header_t header, const cap_user_data_t data); | |
31 | ||
32 | extern int cap_last_cap(void); | |
33 | ||
acb72212 DG |
34 | extern void cap_permitted_to_ambient(void); |
35 | ||
cef4decf | 36 | #endif /* CAPUTILS_H */ |