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

cosmic-greeter fails to log in to cosmic session when SELinux is set to ENFORCING #35

Open
ryanabx opened this issue Apr 29, 2024 · 13 comments

Comments

@ryanabx
Copy link
Contributor

ryanabx commented Apr 29, 2024

start-cosmic works fine, cosmic-session works fine, so I'm pretty confused and I've been trying to figure out why cosmic-greeter won't log in to the session properly. All I get is a brief black screen with a panic in greetd:

thread 'main' panicked at greetd/src/session/worker.rs:200:14:
unable to exec: EACCES

I tried looking at it with RUST_BACKTRACE=full but the stack trace was completely unhelpful, going through a lot of unknown areas and some libc areas

I have these dependencies installed (not including dependencies derived from build depends) (Fedora)

  • greetd
  • greetd-selinux
  • dbus
  • pam
  • cosmic-comp
  • fprintd-pam
@Drakulix
Copy link
Member

Seems more like a greetd issue than a cosmic-greeter one?
Just a shot in the dark, does disabling selinux fix it?

@ryanabx
Copy link
Contributor Author

ryanabx commented Apr 29, 2024

I'll give it a go tonight (i.e. you'll hear from me in about 6 hours)

@ryanabx
Copy link
Contributor Author

ryanabx commented Apr 30, 2024

It was SELinux after all, I'll rename this issue and keep it open for tracking purposes, unless it would be preferred to close it

@ryanabx ryanabx changed the title cosmic-greeter fails to log in to cosmic session cosmic-greeter fails to log in to cosmic session when SELinux is set to ENFORCING Apr 30, 2024
@Drakulix
Copy link
Member

Feel free to keep this open, but I don't think there is something actionable for us, as this is likely a greetd-selinux problem.

@ryanabx
Copy link
Contributor Author

ryanabx commented Apr 30, 2024

Feel free to keep this open, but I don't think there is something actionable for us, as this is likely a greetd-selinux problem.

Makes sense, I'll file an upstream issue, and link it here when I do. Probably will keep this open just so people who stumble upon the issue know what's going on

@rrahl0
Copy link

rrahl0 commented May 18, 2024

@ryanabx, could you please reference the upstream issue, as I can't find it.

@ryanabx
Copy link
Contributor Author

ryanabx commented May 18, 2024

@ryanabx, could you please reference the upstream issue, as I can't find it.

My bad, I actually forgot to file that issue 😅

@rivenirvana
Copy link

Any updates regarding this issue? Is it confirmed to be a greetd-selinux problem?

@lauretano
Copy link

I'm excited about cosmic but sad about it being unavailable on my "production" workstations due to the selinuxing, so did some digging. the upstream issue discussion

Based on more recent discussion, a couple triggers include the rpm-ostree and OCI build processes and their handling of labeling.

Red Hat Bug 2224162 - selinux denial prevents logging in

see also ublue-os/main#223

and much more recent discussion here ostreedev/ostree-rs-ext#388

Mostly related threads, mentioning silverblue, ublue oci images, and even bluebuild custom oci images based on ublue and silverblue itself. I'm using a mix of those across all of my daily linux workstations oops.

@rrahl0
Copy link

rrahl0 commented May 31, 2024

are we sure it's actually greetd? I used the fedora server qcow2 image and installed cosmic (so no gnome is available) and it works out of the box.

@rivenirvana
Copy link

FWIW, I installed ryanabx's COPR on a F40 GNOME Workstation and I can log into COSMIC just fine as well.

@rrahl0
Copy link

rrahl0 commented May 31, 2024

@rivenirvana are you using gdm or cosmic-greeter (greetd)

@Drakulix
Copy link
Member

Drakulix commented Jun 3, 2024

are we sure it's actually greetd? I used the fedora server qcow2 image and installed cosmic (so no gnome is available) and it works out of the box.

It seems to be a combination of using greetd with SElinux and a read-only image based desktop.

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

5 participants