Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libazureinit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ thiserror = "2.0.3"
tokio = { version = "1", features = ["full"] }
serde-xml-rs = "0.8.0"
serde_json = "1.0.96"
rustix = { version = "0.38", features = ["fs", "process"] }
rustix = { version = "1.1", features = ["fs", "process"] }
users = "0.11"
block-utils = "0.11.1"
tracing = "0.1.40"
Expand Down
5 changes: 2 additions & 3 deletions libazureinit/src/provision/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ pub(crate) fn provision_ssh(
query_sshd_config: bool,
) -> Result<(), Error> {
let home_dir = &user.home_dir;
// SAFETY: uid and gid values come from the users crate which returns valid system user IDs
let uid = unsafe { Uid::from_raw(user.uid) };
let gid = unsafe { Gid::from_raw(user.gid) };
let uid = Uid::from_raw(user.uid);
let gid = Gid::from_raw(user.gid);

let authorized_keys_path = if query_sshd_config {
tracing::info!(
Expand Down