graysky2 / profile-sync-daemon

Symlinks and syncs browser profile dirs to RAM thus reducing HDD/SDD calls and speeding-up browsers.
https://wiki.archlinux.org/index.php/Profile-sync-daemon
Other
899 stars 84 forks source link

support doas instead of sudo #322

Closed kugland closed 2 years ago

kugland commented 2 years ago

I’m using doas exclusively in my system. I have /usr/bin/sudo as a symlink to /usr/bin/doas, which works most of the time. However, profile-sync-daemon fails to use overlayfs because it runs sudo with the parameter -k, which is unsupported by doas.

Apart from that, it should work. I have this line in my doas.conf:

permit nopass <USERNAME> as root cmd /usr/bin/psd-overlay-helper

graysky2 commented 2 years ago

I do not have any resource to extend to another privilege escalation tool, since sudo is a standard, I use it.

kugland commented 2 years ago

I do not have any resource to extend to another privilege escalation tool, since sudo is a standard, I use it.

If I sent a pull request adding support for OpenBSD doas, would you consider merging it?

graysky2 commented 2 years ago

Depends on how deeply the code is modified. If it is major, I will likely not want to do it.

frap129 commented 2 years ago

@kugland I submitted a PR to add doas support, see https://github.com/graysky2/profile-sync-daemon/pull/323