1fbb804f35
This daemon will request the password of the user, check that the user is in the sudo group and if everything checks out elevate the sudo process to root after which the sudo process can exec the target process.
71 lines
1.0 KiB
TOML
71 lines
1.0 KiB
TOML
[package]
|
|
name = "userutils"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[[bin]]
|
|
name = "id"
|
|
path = "src/bin/id.rs"
|
|
|
|
[[bin]]
|
|
name = "getty"
|
|
path = "src/bin/getty.rs"
|
|
|
|
[[bin]]
|
|
name = "groupadd"
|
|
path = "src/bin/groupadd.rs"
|
|
|
|
[[bin]]
|
|
name = "groupdel"
|
|
path = "src/bin/groupdel.rs"
|
|
|
|
[[bin]]
|
|
name = "groupmod"
|
|
path = "src/bin/groupmod.rs"
|
|
|
|
[[bin]]
|
|
name = "login"
|
|
path = "src/bin/login.rs"
|
|
|
|
[[bin]]
|
|
name = "passwd"
|
|
path = "src/bin/passwd.rs"
|
|
|
|
[[bin]]
|
|
name = "su"
|
|
path = "src/bin/su.rs"
|
|
|
|
[[bin]]
|
|
name = "sudo"
|
|
path = "src/bin/sudo.rs"
|
|
|
|
[[bin]]
|
|
name = "useradd"
|
|
path = "src/bin/useradd.rs"
|
|
|
|
[[bin]]
|
|
name = "userdel"
|
|
path = "src/bin/userdel.rs"
|
|
|
|
[[bin]]
|
|
name = "usermod"
|
|
path = "src/bin/usermod.rs"
|
|
|
|
[dependencies]
|
|
clap = "2.33.0"
|
|
extra = { git = "https://gitlab.redox-os.org/redox-os/libextra.git" }
|
|
orbclient = "0.3.47"
|
|
redox-daemon = "0.1.3"
|
|
redox_liner = "0.5.2"
|
|
libc = "0.2.171"
|
|
libredox = "0.1.3"
|
|
redox_termios = "0.1.3"
|
|
redox_event = "0.4"
|
|
redox-scheme = "0.5.0"
|
|
redox_syscall = "0.5"
|
|
redox_users = "0.4.6"
|
|
termion = "4"
|
|
|
|
[profile.release]
|
|
lto = true
|