diff --git a/CHANGELOG b/CHANGELOG index 428c616..3f4aa4b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,9 @@ +Changes in v0.10.1: + * feature: added support of SELinux + * BREAKING: renamed `system.\[un\]load_extension` to `system.\[un\]register_extension` + * stability: registered signal handlers for code errors when we are `pid = 1` so it won't terminate + * code quality: added unit tests + Changes in v0.10.0: * feature: separate log extensions and `fallback-logger` from `airupd` to independent processes * feature: an extension system based on RPC diff --git a/SECURITY.md b/SECURITY.md index 687904b..3e28092 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,7 +2,7 @@ ## Supported Versions The `HEAD` and the latest release are supported by the Airup developers. The maintained versions are: - - Mainline: `0.10.0` + - Mainline: `0.10.1` - Stable: `0.9.4` ## Reporting a Vulnerability diff --git a/airup-sdk/Cargo.toml b/airup-sdk/Cargo.toml index 7289983..eb11786 100644 --- a/airup-sdk/Cargo.toml +++ b/airup-sdk/Cargo.toml @@ -4,7 +4,7 @@ authors = ["sisungo "] description = "SDK library of Airup" documentation = "https://docs.rs/airup-sdk" repository = "https://github.com/sisungo/airup" -version = "0.10.0" +version = "0.10.1" edition = "2021" license = "MIT" diff --git a/airup/Cargo.toml b/airup/Cargo.toml index 11a5b34..26238ec 100644 --- a/airup/Cargo.toml +++ b/airup/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "airup" authors = ["sisungo "] -version = "0.10.0" +version = "0.10.1" edition = "2021" license = "MIT" publish = false diff --git a/airupd/Cargo.toml b/airupd/Cargo.toml index 8aa1f1b..8bbe12b 100644 --- a/airupd/Cargo.toml +++ b/airupd/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "airupd" authors = ["sisungo "] -version = "0.10.0" +version = "0.10.1" edition = "2021" license = "MIT" publish = false diff --git a/airupd/src/env.rs b/airupd/src/env.rs index 413023b..afb4790 100644 --- a/airupd/src/env.rs +++ b/airupd/src/env.rs @@ -33,8 +33,13 @@ impl Cmdline { /// Parses a new [`Cmdline`] instance from the command-line arguments. This function will automatically detect the /// environment to detect the style of the parser. pub fn parse() -> Self { - if cfg!(target_os = "linux") && airupfx::process::as_pid1() { - // TODO: Allow avoiding this branch even if we are `pid = 1` and running on Linux. + if cfg!(target_os = "linux") + && airupfx::process::as_pid1() + && !matches!( + airupfx::env::take_var("AIRUP_CMDLINE").as_deref(), + Ok("unix") + ) + { Self::parse_as_linux_init() } else { Self::parse_as_unix_command()