Skip to content

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

@dehanj

Description

@dehanj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions