Skip to content

Operation not permitted when calling clone() in main() in main.c: #4353

Answered by rusty-snake
myanowitz asked this question in Q&A
Discussion options

You must be logged in to vote

From clone(2):

       EPERM  CLONE_NEWCGROUP, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWNS, CLONE_NEWPID, or CLONE_NEWUTS was specified  by  an  un‐
              privileged process (process without CAP_SYS_ADMIN).

       EPERM  CLONE_PID was specified by a process other than process 0.  (This error occurs only on Linux 2.5.15 and earlier.)

       EPERM  CLONE_NEWUSER  was  specified in the flags mask, but either the effective user ID or the effective group ID of the
              caller does not have a mapping in the parent namespace (see user_namespaces(7)).

       EPERM (since Linux 3.9)
              CLONE_NEWUSER was specified in the flags mask and the caller is in a chroot environment…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rusty-snake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants