Skip to content

Commit

Permalink
release: airup v0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sisungo committed May 25, 2024
1 parent 98e95f7 commit 36b6f0d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion airup-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["sisungo <[email protected]>"]
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"

Expand Down
2 changes: 1 addition & 1 deletion airup/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "airup"
authors = ["sisungo <[email protected]>"]
version = "0.10.0"
version = "0.10.1"
edition = "2021"
license = "MIT"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion airupd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "airupd"
authors = ["sisungo <[email protected]>"]
version = "0.10.0"
version = "0.10.1"
edition = "2021"
license = "MIT"
publish = false
Expand Down
9 changes: 7 additions & 2 deletions airupd/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 36b6f0d

Please sign in to comment.