[GH-ISSUE #1310] Seccomp execve - Operation not permitted launching an app #893

Closed
opened 2026-05-05 07:04:39 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @EdoardoVignati on GitHub (May 25, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1310

hi, when I execute firejail --seccomp.eperm=execve myapp I notice that firejail blocks the app saying execvp: Operation not permitted.
How to execute myapp and block execve syscall after?

Originally created by @EdoardoVignati on GitHub (May 25, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1310 hi, when I execute `firejail --seccomp.eperm=execve myapp` I notice that firejail blocks the app saying `execvp: Operation not permitted`. How to execute myapp and block execve syscall after?
gitea-mirror 2026-05-05 07:04:39 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@reinerh commented on GitHub (May 25, 2017):

Hm, while trying to reproduce it I noticed that it's not working anymore in 0.9.46, though it's still documented in the manpage.

<!-- gh-comment-id:304054788 --> @reinerh commented on GitHub (May 25, 2017): Hm, while trying to reproduce it I noticed that it's not working anymore in 0.9.46, though it's still documented in the manpage.
Author
Owner

@startx2017 commented on GitHub (May 26, 2017):

manpage problem - use the regular --seccomp command: "firejail --seccomp=execve:eperm myapp"

Fix: c1d43f4123

<!-- gh-comment-id:304314246 --> @startx2017 commented on GitHub (May 26, 2017): manpage problem - use the regular --seccomp command: "firejail --seccomp=execve:eperm myapp" Fix: https://github.com/netblue30/firejail/commit/c1d43f41230cdd0bc929c0050f60024fc98fc37b
Author
Owner

@EdoardoVignati commented on GitHub (May 26, 2017):

firejail --seccomp=execve:eperm myapp causes the same problem...seems that firejail recognizes the execution of myapp in the syscall blacklist specified in the command line, so not launching it...possibile?

<!-- gh-comment-id:304321242 --> @EdoardoVignati commented on GitHub (May 26, 2017): `firejail --seccomp=execve:eperm myapp` causes the same problem...seems that firejail recognizes the execution of myapp in the syscall blacklist specified in the command line, so not launching it...possibile?
Author
Owner

@reinerh commented on GitHub (May 26, 2017):

I can also confirm that the application is not executed if execve is blocked.

<!-- gh-comment-id:304322036 --> @reinerh commented on GitHub (May 26, 2017): I can also confirm that the application is not executed if execve is blocked.
Author
Owner

@netblue30 commented on GitHub (May 27, 2017):

Thanks @startx2017, I changed the code and forgot to modify the manual!

Don't use --seccomp=execve, because after installing the seccomp filter the sandbox will try to start the program using execve. We end up with seccomp killing the sandbox.

<!-- gh-comment-id:304418389 --> @netblue30 commented on GitHub (May 27, 2017): Thanks @startx2017, I changed the code and forgot to modify the manual! Don't use --seccomp=execve, because after installing the seccomp filter the sandbox will try to start the program using execve. We end up with seccomp killing the sandbox.
Author
Owner

@EdoardoVignati commented on GitHub (May 27, 2017):

Any workaround? Is there another way to spawn myapp?

<!-- gh-comment-id:304464535 --> @EdoardoVignati commented on GitHub (May 27, 2017): Any workaround? Is there another way to spawn myapp?
Author
Owner

@netblue30 commented on GitHub (May 30, 2017):

I don't think there is any workaround.

<!-- gh-comment-id:304855008 --> @netblue30 commented on GitHub (May 30, 2017): I don't think there is any workaround.
Author
Owner

@EdoardoVignati commented on GitHub (Jun 1, 2017):

Found a solution for seccomp here if it can be useful

<!-- gh-comment-id:305633449 --> @EdoardoVignati commented on GitHub (Jun 1, 2017): Found a solution for seccomp [here](https://stackoverflow.com/questions/40107782/how-to-seccomp-a-subprocess) if it can be useful
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#893
No description provided.