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

--build-shell: bwrap: No permissions to creating new namespace, #550

Open
2 tasks done
2-www opened this issue May 5, 2023 · 5 comments
Open
2 tasks done

--build-shell: bwrap: No permissions to creating new namespace, #550

2-www opened this issue May 5, 2023 · 5 comments

Comments

@2-www
Copy link

2-www commented May 5, 2023

Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

flatpak-builder version

1.3.1

Flatpak version

1.14.4

How to reproduce

manifest.yaml:

app-id: org.example.App
runtime: org.freedesktop.Platform
runtime-version: "22.08"
sdk: org.freedesktop.Sdk
modules:
- name: example
  no-autogen: true
  buildsystem: simple
  build-commands: []

commands:

flatpak run org.flatpak.Builder --force-clean build-dir manifest.yaml
flatpak run org.flatpak.Builder --build-shell=example build-dir manifest.yaml

Expected Behavior

it opens a shell

Actual Behavior

bwrap: No permissions to creating new namespace, likely because the kernel does not allow non-privileged user namespaces. On e.g. debian this can be enabled with 'sysctl kernel.unprivileged_userns_clone=1'.

Additional Information

the kernel allows unprivileged userns:

$ /sbin/sysctl kernel.unprivileged_userns_clone
kernel.unprivileged_userns_clone = 1
@2-www
Copy link
Author

2-www commented May 6, 2023

this might be the cause: flatpak/flatpak@23ec4ed

@Erick555
Copy link

Erick555 commented May 6, 2023

flatpak 1.14.4 doesn't contain this commit (none flatpak release does yet).

@Erick555
Copy link

Erick555 commented May 6, 2023

what's the output of: sysctl user.max_user_namespaces?

@2-www
Copy link
Author

2-www commented May 6, 2023

user.max_user_namespaces = 62211

what's the output of: sysctl user.max_user_namespaces?

@2-www
Copy link
Author

2-www commented May 6, 2023

yes, sorry, should have checked https://salsa.debian.org/debian/flatpak/-/blob/debian/bookworm/common/flatpak-run.c first, there's nothing like that there. what else could it be...

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