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

Permission issues running tkey-ssh-agent with systemd on Ubuntu 24.04 #120

Open
dehanj opened this issue Aug 28, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@dehanj
Copy link
Member

dehanj commented Aug 28, 2024

Running the packaged tkey-ssh-agent with the systemd unit on Ubuntu 24.04 yields the error

Error while enumerating serial ports: lstat /dev/mqueue: permission denied. 

This is most likely due to changes to what app armor allows, so an app_armor profile is needed.

A workaround with AppArmor enabled is setting kernel.apparmor_restrict_unprivileged_unconfined=0 and kernel.apparmor_restrict_unprivileged_userns=0.
https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces

@dehanj dehanj added the bug Something isn't working label Aug 28, 2024
@dehanj dehanj changed the title Permission issues running tkey-ssh-agent service on Ubuntu 24.04 Permission issues running tkey-ssh-agent with systemd on Ubuntu 24.04 Aug 28, 2024
@durehed
Copy link

durehed commented Sep 3, 2024

I had this exact issue and the work around works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants