apognu / tuigreet

Graphical console greeter for greetd
GNU General Public License v3.0
992 stars 45 forks source link

Fedora SELinux #85

Closed scabala closed 1 year ago

scabala commented 1 year ago

Hi, it's great project, using it daily.

I had problems with --remember options running on Fedora with SELinux in enforcing mode. Here's what I did to make it work. Assuming that tuigreet is installed in /usr/local/bin:

sudo mkdir -p /var/cache/tuigreet
sudo chown greetd:greetd -R /var/cache/tuigreet

sudo semanage fcontext -a -t xdm_exec_t '/usr/local/bin/tuigreet'
sudo restorecon /usr/local/bin/tuigreet

sudo semenage fcontext -a -t xdm_var_lib_t '/var/cache/tuigreet(/.*)?'
sudo restorecon -R /var/cache/tuigreet

Hope it helps anybody. It should be useful if anyone wants to create RPM package for Fedora, too.

alebastr commented 1 year ago
sudo semanage fcontext -a -t xdm_exec_t '/usr/local/bin/tuigreet'
sudo restorecon /usr/local/bin/tuigreet

This should not be necessary, tuigreet inherits the context from greetd.

scabala commented 1 year ago

You're right, I undo it it still worked fine.

apognu commented 1 year ago

I assume this is not an issue anymore (and overall was not an issue with tuigreet itself)?