]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/caputils.h
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
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.
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.
20 #include <linux/capability.h>
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
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
);
32 extern int cap_last_cap(void);
34 extern void cap_permitted_to_ambient(void);
36 #endif /* CAPUTILS_H */