diff --git a/CHANGELOG.md b/CHANGELOG.md index bc94ce5c4..da718b734 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [0.2.0] - 2023-08-29 + +### Added +- `visudo` can set/fix file permissions using the `--perms` CLI flag +- `visudo` can set/fix the file owner using the `--owner` CLI flag +- Read `env_editor` from sudoers file for visudo +- Add basic support for `--list` in sudo + +### Changed +- `visudo` now uses a random filename for the temporary file you are editing +- `su` now runs with a PTY by default +- Included files with relative paths in the sudoers file are imported relative + from the sudoers file +- `sudo` now checks if ownership and setuid bits have been set correctly on + its binary +- When syslog messages are too large they will be split between multiple + messages to prevent message truncation +- We now accept a wider range of dependencies +- Our MSRV (minimum supported rust version) has been set at 1.70.0 + +### Fixed +- Set arg0 to the non-resolved filename when running a command, preventing + issues with symlinks when commands rely on link filenames + ## [0.2.0-dev.20230711] - 2023-07-11 ### Added @@ -52,6 +76,7 @@ - Use canonicalized paths for the executed binaries - Simplified CLI help to only display supported actions +[0.2.0]: https://github.com/memorysafety/sudo-rs/compare/v0.2.0-dev.20230711...v0.2.0 [0.2.0-dev.20230711]: https://github.com/memorysafety/sudo-rs/compare/v0.2.0-dev.20230703...v0.2.0-dev.20230711 [0.2.0-dev.20230703]: https://github.com/memorysafety/sudo-rs/compare/v0.2.0-dev.20230627...v0.2.0-dev.20230703 [0.2.0-dev.20230627]: https://github.com/memorysafety/sudo-rs/compare/v0.1.0-dev.20230620...v0.2.0-dev.20230627 diff --git a/Cargo.lock b/Cargo.lock index 6a28561c1..a0d0ec674 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -22,9 +22,9 @@ checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" [[package]] name = "log" -version = "0.4.19" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" +checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "pretty_assertions" @@ -38,7 +38,7 @@ dependencies = [ [[package]] name = "sudo-rs" -version = "0.2.0-dev.20230711" +version = "0.2.0" dependencies = [ "glob", "libc", diff --git a/Cargo.toml b/Cargo.toml index 0a9333e33..9858f6017 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sudo-rs" description = "A memory safe implementation of sudo and su." -version = "0.2.0-dev.20230711" +version = "0.2.0" license = "Apache-2.0 OR MIT" edition = "2021" repository = "https://github.com/memorysafety/sudo-rs" diff --git a/docs/man/su.1.md b/docs/man/su.1.md index af1658d40..7f047de8e 100644 --- a/docs/man/su.1.md +++ b/docs/man/su.1.md @@ -1,5 +1,5 @@ # NAME diff --git a/docs/man/sudo.8.md b/docs/man/sudo.8.md index bd4d050e5..fef6d46d2 100644 --- a/docs/man/sudo.8.md +++ b/docs/man/sudo.8.md @@ -1,5 +1,5 @@ # NAME diff --git a/docs/man/visudo.8.md b/docs/man/visudo.8.md index 44c9466c3..949b83813 100644 --- a/docs/man/visudo.8.md +++ b/docs/man/visudo.8.md @@ -1,5 +1,5 @@ # NAME