/*
 * Copyright (c) KylinSoft  Co., Ltd. 2024. All rights reserved.
 *
 * kaiming is licensed under the GPL v2.0+.
 * 
 * See the LICENSE file for more details.
 */

#ifndef __KMCAPABILITY_H__
#define __KMCAPABILITY_H__

constexpr int CAP_CHOWN = 0;
constexpr int CAP_DAC_OVERRIDE = 1;
constexpr int CAP_DAC_READ_SEARCH = 2;
constexpr int CAP_FOWNER = 3;
constexpr int CAP_FSETID = 4;
constexpr int CAP_KILL = 5;
constexpr int CAP_SETGID = 6;
constexpr int CAP_SETUID = 7;
constexpr int CAP_SETPCAP = 8;
constexpr int CAP_LINUX_IMMUTABLE = 9;
constexpr int CAP_NET_BIND_SERVICE = 10;
constexpr int CAP_NET_BROADCAST = 11;
constexpr int CAP_NET_ADMIN = 12;
constexpr int CAP_NET_RAW = 13;
constexpr int CAP_IPC_LOCK = 14;
constexpr int CAP_IPC_OWNER = 15;
constexpr int CAP_SYS_MODULE = 16;
constexpr int CAP_SYS_RAWIO = 17;
constexpr int CAP_SYS_CHROOT = 18;
constexpr int CAP_SYS_PTRACE = 19;
constexpr int CAP_SYS_PACCT = 20;
constexpr int CAP_SYS_ADMIN = 21;
constexpr int CAP_SYS_BOOT = 22;
constexpr int CAP_SYS_NICE = 23;
constexpr int CAP_SYS_RESOURCE = 24;
constexpr int CAP_SYS_TIME = 25;
constexpr int CAP_SYS_TTY_CONFIG = 26;
constexpr int CAP_MKNOD = 27;
constexpr int CAP_LEASE = 28;
constexpr int CAP_AUDIT_WRITE = 29;
constexpr int CAP_AUDIT_CONTROL = 30;
constexpr int CAP_SETFCAP = 31;
constexpr int CAP_MAC_OVERRIDE = 32;
constexpr int CAP_MAC_ADMIN = 33;
constexpr int CAP_SYSLOG = 34;
constexpr int CAP_WAKE_ALARM = 35;
constexpr int CAP_BLOCK_SUSPEND = 36;
constexpr int CAP_AUDIT_READ = 37;
constexpr int CAP_PERFMON = 38;
constexpr int CAP_BPF = 39;
constexpr int CAP_CHECKPOINT_RESTORE = 40;

#endif
