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

bwrap: Permission Denied #4102

Open
ObiWanPEZ opened this issue Nov 8, 2024 · 4 comments
Open

bwrap: Permission Denied #4102

ObiWanPEZ opened this issue Nov 8, 2024 · 4 comments

Comments

@ObiWanPEZ
Copy link

          > Worked up until this update, I think. Click "Play," shows "Launching," then goes back to idle. Log attached for attempting to play "Among the Sleep". [aa78f7be2ee64193b6b6444c5fc50157-lastPlay.log](https://github.com/user-attachments/files/17452760/aa78f7be2ee64193b6b6444c5fc50157-lastPlay.log)

this is not a heroic issue, something wrong on your system

Originally posted by @Etaash-mathamsetty in #4030 (comment)

Ubuntu 24.04 : received the following error:
"[cli] INFO: Launching [key# omitted]..."
"pressure-vessel-wrap[11882]: E: Child process exited with code 1: bwrap: setting up uid map: Permission denied."
I have been told to check the /etc/subuid & /etc/subgid files to ensure both have:
[username]:100000:65536 , which both do.
Next, I was told to install uidmap, then log out & back in. I have also restarted since doing this, and my problem still exists.
The next step I wasn't sure about, so I came here for verification:
"Ubuntu 24.04 uses AppArmor, which may be blocking bwrap", referring to the permission fault. "Create a file, apparmor.d/[gamename], containing the following:
/usr/bin/bwrap {
/[game path]/** rm->,
/[game path]/** rw->,
}
and restart AppArmor: sudo apparmor_parser -r /etc/apparmor.d/[yourgame]"

Any explanation of what this might do, or if any of this is incorrect, would be welcome. Thanks!

@ObiWanPEZ
Copy link
Author

I'd be happier if there was a single solution for the program, rather than each individual game.

@Etaash-mathamsetty
Copy link
Member

Are you using the snap ?

@ObiWanPEZ
Copy link
Author

I am not, but did open / reinstall the new version, when it ceased to work.

@Etaash-mathamsetty
Copy link
Member

Etaash-mathamsetty commented Nov 8, 2024

apparmor shouldn't be involved here at all unless something fishy is happening (like using the snap)

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