8000 All PAM modules are currently executed as root · Issue #108 · kavau/atrium · GitHub
[go: up one dir, main page]

Skip to content

All PAM modules are currently executed as root #108

Open

Description

@kavau

Currently all PAM modules are executed in the session runner as root. This has some nontrivial consequences:

  • pam_setcred() runs as root, as a consequence the session keyring is owned by root, and applications cannot add new keys.
  • The runner's proc/self/loginuid is changed to the user's UID, so cleanup actions are attributed to the user instead of the daemon.
  • The runner's PID is used as the session leader, instead of the compositor PID.

Each of those needs to be thought through carefully. The root-owned session keyring probably has the highest user-visible impact - a possible fix is to call pam_setcred() after the fork and privilege drop.

Activity

  1. added
    area:daemon
    soon
    bug
    on Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:daemonbugsoon

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0