libc_extra/android_linux/linux/capability/constants/
CAP.rs

1// This file is part of libc-extra. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/libc-extra/master/COPYRIGHT. No part of libc-extra, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
2// Copyright © 2016-2018 The developers of libc-extra. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/libc-extra/master/COPYRIGHT.
3
4
5pub const CAP_CHOWN: c_uchar = 0;
6pub const CAP_DAC_OVERRIDE: c_uchar = 1;
7pub const CAP_DAC_READ_SEARCH: c_uchar = 2;
8pub const CAP_FOWNER: c_uchar = 3;
9pub const CAP_FSETID: c_uchar = 4;
10pub const CAP_KILL: c_uchar = 5;
11pub const CAP_SETGID: c_uchar = 6;
12pub const CAP_SETUID: c_uchar = 7;
13pub const CAP_SETPCAP: c_uchar = 8;
14pub const CAP_LINUX_IMMUTABLE: c_uchar = 9;
15pub const CAP_NET_BIND_SERVICE: c_uchar = 10;
16pub const CAP_NET_BROADCAST: c_uchar = 11;
17pub const CAP_NET_ADMIN: c_uchar = 12;
18pub const CAP_NET_RAW: c_uchar = 13;
19pub const CAP_IPC_LOCK: c_uchar = 14;
20pub const CAP_IPC_OWNER: c_uchar = 15;
21pub const CAP_SYS_MODULE: c_uchar = 16;
22pub const CAP_SYS_RAWIO: c_uchar = 17;
23pub const CAP_SYS_CHROOT: c_uchar = 18;
24pub const CAP_SYS_PTRACE: c_uchar = 19;
25pub const CAP_SYS_PACCT: c_uchar = 20;
26pub const CAP_SYS_ADMIN: c_uchar = 21;
27pub const CAP_SYS_BOOT: c_uchar = 22;
28pub const CAP_SYS_NICE: c_uchar = 23;
29pub const CAP_SYS_RESOURCE: c_uchar = 24;
30pub const CAP_SYS_TIME: c_uchar = 25;
31pub const CAP_SYS_TTY_CONFIG: c_uchar = 26;
32pub const CAP_MKNOD: c_uchar = 27;
33pub const CAP_LEASE: c_uchar = 28;
34pub const CAP_AUDIT_WRITE: c_uchar = 29;
35pub const CAP_AUDIT_CONTROL: c_uchar = 30;
36pub const CAP_SETFCAP: c_uchar = 31;
37
38// All of these capabilities can not be represented in the capabilities set API
39pub const CAP_MAC_OVERRIDE: c_uchar = 32;
40pub const CAP_MAC_ADMIN: c_uchar = 33;
41pub const CAP_SYSLOG: c_uchar = 34;
42pub const CAP_WAKE_ALARM: c_uchar = 35;
43pub const CAP_BLOCK_SUSPEND: c_uchar = 36;
44pub const CAP_AUDIT_READ: c_uchar = 37;
45
46pub const CAP_LAST_CAP: size_t = 37;