Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested invocations of proot fail #310

Open
sattlerc opened this issue Nov 7, 2021 · 2 comments
Open

Nested invocations of proot fail #310

sattlerc opened this issue Nov 7, 2021 · 2 comments

Comments

@sattlerc
Copy link

sattlerc commented Nov 7, 2021

I tried nesting invocations of proot:

$ proot proot proot true

Expected Behavior

The program call should succeed.

Actual Behavior

proot error: ptrace(TRACEME): Operation not permitted
proot error: execve("/usr/bin/true"): Operation not permitted
proot info: It seems your kernel contains this bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1202161
To workaround it, set the env. variable PROOT_NO_SECCOMP to 1.
fatal error: see `proot --help`.

The referenced bug is from 2013 and has been fixed for a long time.

Specifications

  • Proot/Care version: master (db16f34)
  • Kernel version: 5.14.14
  • Host distribution: Arch Linux
@sattlerc
Copy link
Author

sattlerc commented Nov 7, 2021

Before I used master, I used 5.1.0 (I was not able to compile 5.2.0 due to #250). However, that did not even pass this check:

~$ proot true
proot info: pid 15183: terminated with signal 11

I'm guessing that is related to #106.

Setting PROOT_NO_SECCOMP=1 yields no errors here and with the program call from the bug report.

@oxr463
Copy link
Collaborator

oxr463 commented Jan 20, 2022

proot -V
 _____ _____              ___
|  __ \  __ \_____  _____|   |_
|   __/     /  _  \/  _  \    _|
|__|  |__|__\_____/\_____/\____| v5.3.0

built-in accelerators: process_vm = yes, seccomp_filter = yes

Visit https://proot-me.github.io for help, bug reports, suggestions, patches, ...
Copyright (C) 2022 PRoot Developers, licensed under GPL v2 or later.

proot proot proot true
proot error: ptrace(TRACEME): Operation not permitted
proot error: execve("/bin/true"): Operation not permitted
proot info: It seems your kernel contains this bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1202161
To workaround it, set the env. variable PROOT_NO_SECCOMP to 1.
fatal error: see `proot --help`.

PROOT_NO_SECCOMP=1 proot proot proot true

echo $?
0

Source: https://github.com/proot-me/proot/blob/master/src/cli/cli.c#L131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants