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

rm: gentoo sandbox violation when emerging certain python packages #7002

Open
elde-n opened this issue Dec 26, 2024 · 3 comments
Open

rm: gentoo sandbox violation when emerging certain python packages #7002

elde-n opened this issue Dec 26, 2024 · 3 comments

Comments

@elde-n
Copy link

elde-n commented Dec 26, 2024

When replacing GNU rm with uutils-rm (cp /usr/bin/uu-rm /usr/bin/rm) I get an error when emerging certain python packages.
However when replacing GNU rm with busybox-rm everything is fine.

sandbox.log

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /var/tmp/portage/dev-python/pip-24.3.1-r2/work/pip-24.3.1-python3_12/install//usr/bin/python3.12
A: /var/tmp/portage/dev-python/pip-24.3.1-r2/work/pip-24.3.1-python3_12/install/usr/bin/python3.12
R: /usr/bin/python3.12
C: rm /var/tmp/portage/dev-python/pip-24.3.1-r2/work/pip-24.3.1-python3_12/install//usr/bin/python3.12 /var/tmp/portage/dev-python/pip-24.3.1-r2/work/pip-24.3.1-python3_12/install//usr/bin/python3 /var/tmp/portage/dev-python/pip-24.3.1-r2/work/pip-24.3.1-python3_12/install//usr/bin/python /var/tmp/portage/dev-python/pip-24.3.1-r2/work/pip
-24.3.1-python3_12/install//usr/bin/pyvenv.cfg
@sylvestre
Copy link
Contributor

please provide some steps to reproduce.
thanks

@elde-n
Copy link
Author

elde-n commented Dec 26, 2024

  1. su
  2. echo "sys-apps/uutils-coreutils ~amd64" >> /etc/portage/package.accept_keywords/uutils-coreutils
  3. emerge "=sys-apps/uutils-coreutils-0.0.28"
  4. rm /usr/bin/rm
  5. ln -s /usr/bin/uu-coreutils /usr/bin/rm
  6. emerge dev-python/pip

@sylvestre
Copy link
Contributor

Sorry, i meant some simple commands with rm and the other steps that triggered the issue
not something that requires installing Gentoo.

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

No branches or pull requests

2 participants