Commit Graph

6 Commits (1c87371196756ee5b21689f90adcccdec9f6ad5d)

Author SHA1 Message Date
Luka Vandervelden 4eefe465f4 Providers are auto-guessed when adding services. 2019-08-10 22:29:11 +02:00
Luka Vandervelden 9e7921a803 `service add` can be specified token providers. 2019-08-10 22:02:11 +02:00
Luka Vandervelden 5dd27e1101 Priviledges management.
- `service status` does not require priviledges anymore… if the
    `status` binary is owned by root and has the setuid and setguid
    flags. Hopefully, that binary only checks that a service’s process
    exists.
2019-06-10 14:32:30 +02:00
Luka Vandervelden 5eb0849abd Project organisation for WIP separate binaries.
- The idea would be to allow running specific commands from SUID
    binaries when unpriviledged users should be able to run them. Such
    commands include getting services status, which need root
    priviledges to be implemented but shouldn’t be required by users.
  - Because the repository now builds several binaries, src/main.cr is
    now src/service.cr and a WIP src/status.cr has been added.
  - The `status` binary will likely be installed in libexec in the
    future, with the SUID bit set.
2019-06-09 18:08:59 +02:00
Luka Vandervelden 8a6829d803 Running daemons as a different user is now possible. 2019-06-09 17:14:18 +02:00
Luka Vandervelden 61c9f33f89 Sources split. 2019-06-09 16:59:05 +02:00