EPERM
Operation not permitted
- Linux value
- 1
- strerror(3)
- Operation not permitted
- On this site
- 30 syscalls
The caller is not allowed to do this at all: a missing capability, a seccomp or LSM policy, or an immutable object. Contrast EACCES, which is about permission bits on a path.
Where you will see EPERM
- capset(2)Linux · Security
Tried to add a cap to permitted, or make effective a cap not in permitted.
- capset(2)Linux · Security
Tried to add to inheritable a cap outside the bounding set, or outside permitted without CAP_SETPCAP.
- clone3(2)Linux · Processes
CLONE_INTO_CGROUP requires CAP_SYS_ADMIN; some flag combinations require privilege.
- fanotify_init(2)Linux · Events
Caller lacks a required capability (CAP_SYS_ADMIN for the content classes and unlimited flags).
- fsopen(2)Linux · Filesystem
fsopen(): caller lacks CAP_SYS_ADMIN.
- io_uring_setup(2)Linux · I/O
io_uring_disabled is 2, or 1 and caller lacks CAP_SYS_ADMIN and isn't in io_uring_group.
- io_uring_setup(2)Linux · I/O
IORING_SETUP_SQPOLL requested without sufficient privileges.
- ioprio_set(2)Linux · I/O
Not allowed: target owned by another UID without CAP_SYS_NICE, or RT class without CAP_SYS_ADMIN.
- jail(2)FreeBSD · Sandboxing
Not the super-user, children.max exceeded, or a parameter loosened beyond the current environment.
- kcmp(2)Linux · Processes
Caller lacks ptrace access to both target processes. Requires same uid or CAP_SYS_PTRACE; also blocked by Yama ptrace_scope >= 1 for non-descendant processes.
- madvise(2)Linux · Memory
MADV_HWPOISON without CAP_SYS_ADMIN.
- membarrier(2)Linux · Memory
PRIVATE_EXPEDITED called without prior REGISTER call.
- memfd_create(2)Linux · Memory
MFD_HUGETLB requested without CAP_IPC_LOCK or hugetlb_shm_group membership.
- mlock(2)Linux · Memory
Caller is not privileged but needs CAP_IPC_LOCK for the requested operation.
- mount_setattr(2)Linux · Filesystem
Caller lacks CAP_SYS_ADMIN in the user namespace that owns the mount.
- mseal(2)Linux · Memory
The address range, or part of it, is already sealed.
- name_to_handle_at / open_by_handle_at(2)Linux · Filesystem
open_by_handle_at requires CAP_DAC_READ_SEARCH. Without it, the call is refused.
- pidfd_getfd(2)Linux · File descriptors
Caller lacks PTRACE_MODE_ATTACH_REALCREDS permission over the target process.
- pidfd_send_signal(2)Linux · Processes
No permission to signal the target, or invalid si_code when signalling another process.
- pledge(2)OpenBSD · Sandboxing
The process tried to increase its permissions with a later pledge() call.
- process_madvise(2)Linux · Memory
No permission: needs PTRACE_MODE_READ_FSCREDS access to the target plus CAP_SYS_NICE (since Linux 5.12).
- process_vm_readv(2)Linux · Memory
The caller does not have permission to trace the target process (PTRACE_MODE_ATTACH_REALCREDS check).
- rseq(2)Linux · Scheduling
RSEQ_FLAG_UNREGISTER: sig does not match the sig used at registration.
- sched_setaffinity(2)Linux · Processes
Caller's EUID doesn't match the target's real/effective UID and it lacks CAP_SYS_NICE.
- sched_setattr(2)Linux · Scheduling
Caller lacks CAP_SYS_NICE (or the RLIMIT_RTPRIO equivalent for RT policies).
- setns(2)Linux · Processes
The calling thread lacks the capability this namespace type requires.
- timerfd_create(2)Linux · Events
An *_ALARM clock was requested without CAP_WAKE_ALARM.
- unshare(2)Linux · Processes
Caller lacks CAP_SYS_ADMIN (or, for CLONE_NEWUSER, the unprivileged_userns_clone sysctl is 0).
- unveil(2)OpenBSD · Sandboxing
Attempt to increase permissions, path not accessible, or unveil() called after locking.
- userfaultfd(2)Linux · Memory
Since Linux 5.2: no CAP_SYS_PTRACE in the initial user ns and vm.unprivileged_userfaultfd is 0.
Sources
- errno(3), Linux man-pages
- The meaning for each syscall is taken from that syscall's own card and the man page it cites.
Values are the Linux numbers on x86 and arm64; other architectures and the BSDs number some errors differently. BSD cards list the names the BSD man page uses. Spot one that's wrong? Tell Rod.