1
0
Fork 0
forked from soccera/rdo
fixed parsing vulnerability rdo
Find a file
sw1tchbl4d3 24638bc999 Add sessions feature
This is by far the heaviest feature of rdo, justifying
its own file for its 140loc.

It creates sessions, inspired by the way doas does it.
We use the /run/rdo temporary folder to store files in the
format of /run/rdo/pid-ts, pid being the PID of the process
that executed rdo, and ts being the timestamp at which said
process started.

As no 2 processes can have the exact same PID and startup time
(startup time is measured in the milliseconds), this seems secure.

Closes #4.
2021-07-15 23:47:27 +02:00
.gitignore First Commit 2021-07-13 21:33:12 +02:00
LICENSE First Commit 2021-07-13 21:33:12 +02:00
Makefile Various Makefile additions 2021-07-14 06:13:34 +02:00
rdo.c Add sessions feature 2021-07-15 23:47:27 +02:00
rdo_sample.conf Add sessions feature 2021-07-15 23:47:27 +02:00
README.md Changed dependencies to list format 2021-07-15 14:45:21 +02:00
sessions.h Add sessions feature 2021-07-15 23:47:27 +02:00

RootDO AUR

This little "project" aims to be a very slim alternative to both sudo and doas.

Installation

If you are on Arch Linux, you can download the package via the AUR.

If you are using any other linux distro, you can build it yourself by following these instructions:

git clone https://codeberg.org/sw1tchbl4d3/rdo
cd rdo
make
sudo make install

After that, you'll have to configure rdo to allow you to use it. To do this, edit /etc/rdo.conf, and set the username variable to your own.

After that you're good to go!

And to uninstall:

sudo make uninstall

Usage

rdo [command]

Dependencies

  • libbsd