public enum Capability extends Enum<Capability>
ALL
was added manually.Enum Constant and Description |
---|
ALL
This meta capability includes all Linux capabilities.
|
AUDIT_CONTROL
Enable and disable kernel auditing.
|
AUDIT_READ
Allow reading the audit log via multicast netlink socket.
|
AUDIT_WRITE
Write records to kernel auditing log.
|
BLOCK_SUSPEND
Employ features that can block system suspend.
|
BPF
Allow creating BPF maps, loading BPF Type Format (BTF) data, retrieve JITed code of BPF programs, and more.
|
CHECKPOINT_RESTORE
Allow checkpoint/restore related operations.
|
CHOWN
Make arbitrary changes to file UIDs and GIDs (see chown(2)).
|
DAC_OVERRIDE
Bypass file read, write, and execute permission checks.
|
DAC_READ_SEARCH
Bypass file read permission checks and directory read and execute permission checks.
|
FOWNER
Bypass permission checks on operations that normally require the file system UID of the process to match the UID of the file
(e.g., chmod(2), utime(2)), excluding those operations covered by the
DAC_OVERRIDE and DAC_READ_SEARCH . |
FSETID
Don't clear set-user-ID and set-group-ID permission bits when a file is modified.
|
IPC_LOCK
Permit memory locking (mlock(2), mlockall(2), mmap(2), shmctl(2)).
|
IPC_OWNER
Bypass permission checks for operations on System V IPC objects.
|
KILL
Bypass permission checks for sending signals (see kill(2)).
|
LEASE
Establish leases on arbitrary files (see fcntl(2)).
|
LINUX_IMMUTABLE
Set the FS_APPEND_FL and FS_IMMUTABLE_FL i-node flags (see chattr(1)).
|
MAC_ADMIN
Override Mandatory Access Control (MAC).
|
MAC_OVERRIDE
Allow MAC configuration or state changes.
|
MKNOD
Create special files using mknod(2).
|
NET_ADMIN
Perform various network-related operations:
Interface configuration.
|
NET_BIND_SERVICE
Bind a socket to Internet domain privileged ports (port numbers less than 1024).
|
NET_BROADCAST
(Unused) Make socket broadcasts, and listen to multicasts.
|
NET_RAW
Use RAW and PACKET sockets.
|
PERFMON
Allow system performance and observability privileged operations using perf_events, i915_perf and other kernel subsystems
|
SETFCAP
Set file capabilities.
|
SETGID
Make arbitrary manipulations of process GIDs and supplementary GID list.
|
SETPCAP
If file capabilities are not supported:
grant or remove any capability in the caller's permitted capability set to or from any other process.
|
SETUID
Make arbitrary manipulations of process UIDs (setuid(2), setreuid(2), setresuid(2), setfsuid(2)).
|
SYS_ADMIN
Perform a range of system administration operations including: quotactl(2), mount(2), umount(2), swapon(2), swapoff(2),
sethostname(2), and setdomainname(2).
|
SYS_BOOT
Use reboot(2) and kexec_load(2).
|
SYS_CHROOT
Use chroot(2).
|
SYS_MODULE
Load and unload kernel modules (see init_module(2) and delete_module(2))
In kernels before 2.6.25: drop capabilities from the system-wide capability bounding set.
|
SYS_NICE
Raise process nice value (nice(2), setpriority(2)) and change the nice value for arbitrary processes.
|
SYS_PACCT
Use acct(2).
|
SYS_PTRACE
Trace arbitrary processes using ptrace(2).
|
SYS_RAWIO
Perform I/O port operations (iopl(2) and ioperm(2)).
|
SYS_RESOURCE
Use reserved space on ext2 file systems.
|
SYS_TIME
Set system clock (settimeofday(2), stime(2), adjtimex(2)).
|
SYS_TTY_CONFIG
Use vhangup(2).
|
SYSLOG
Perform privileged syslog(2) operations.
|
WAKE_ALARM
Trigger something that will wake up the system (set CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM timers).
|
Modifier and Type | Method and Description |
---|---|
static Capability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Capability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Capability ALL
public static final Capability AUDIT_CONTROL
public static final Capability AUDIT_READ
public static final Capability AUDIT_WRITE
public static final Capability BLOCK_SUSPEND
public static final Capability BPF
public static final Capability CHECKPOINT_RESTORE
public static final Capability CHOWN
public static final Capability DAC_OVERRIDE
public static final Capability DAC_READ_SEARCH
public static final Capability FOWNER
DAC_OVERRIDE
and DAC_READ_SEARCH
.
public static final Capability FSETID
public static final Capability IPC_LOCK
public static final Capability IPC_OWNER
public static final Capability KILL
public static final Capability LEASE
public static final Capability LINUX_IMMUTABLE
public static final Capability MAC_ADMIN
public static final Capability MAC_OVERRIDE
public static final Capability MKNOD
public static final Capability NET_ADMIN
public static final Capability NET_BIND_SERVICE
public static final Capability NET_BROADCAST
public static final Capability NET_RAW
public static final Capability PERFMON
public static final Capability SETFCAP
public static final Capability SETGID
public static final Capability SETPCAP
If file capabilities are supported:
public static final Capability SETUID
public static final Capability SYS_ADMIN
public static final Capability SYS_BOOT
public static final Capability SYS_CHROOT
public static final Capability SYSLOG
public static final Capability SYS_MODULE
public static final Capability SYS_NICE
public static final Capability SYS_PACCT
public static final Capability SYS_PTRACE
public static final Capability SYS_RAWIO
public static final Capability SYS_RESOURCE
public static final Capability SYS_TIME
public static final Capability SYS_TTY_CONFIG
public static final Capability WAKE_ALARM
public static Capability[] values()
for (Capability c : Capability.values()) System.out.println(c);
public static Capability valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2025. All rights reserved.