Skip to content

server: Use a separate binary to keep PAM password around #494

Open
bilelmoussaoui wants to merge 2 commits into
mainfrom
bilelmoussaoui/fix-server
Open

server: Use a separate binary to keep PAM password around #494
bilelmoussaoui wants to merge 2 commits into
mainfrom
bilelmoussaoui/fix-server

Conversation

@bilelmoussaoui

Copy link
Copy Markdown
Collaborator

See commits.

Because we want the service to be started when the session starts. Otherwise we won't be able
to pass the PAM secret if auto login is enabled to the daemon binary.
Currently, we used to fork/exec the daemon from pam module, pass it the
secret through stdin, till oo7-daemon is started by systemd which would
pass the dbus session bus env variable back to the main fork/exec
oo7-daemon process so it can start the session. That ended up being a
racy implementation.

Instead, use a separate helper binary for fork/exec, make it store the
secret and pass it to oo7-daemon once it is up and ready through a memfd
passed via SCM_RIGHTS on a Unix socket.
@bilelmoussaoui bilelmoussaoui force-pushed the bilelmoussaoui/fix-server branch from c347b38 to 0a31584 Compare June 17, 2026 21:42
@github-actions

Copy link
Copy Markdown

📊 Code Coverage Report

Metric Value
Current PR Coverage 88.04%
Main Branch Coverage 88.27%
Coverage Change 📉 -0.23%

Coverage report generated by cargo-tarpaulin

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

Successfully merging this pull request may close these issues.

1 participant