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 nvx/src/host/platform/linux/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub(crate) fn check_store_dir(path: &Path) -> io::Result<Option<String>> {

/// Returns why the directory `path` is not private to the current user, if it is not: unless it
/// is a directory, not a link to one, that belongs to the user and grants no one else any access.
pub(crate) fn check_owner_only_dir(path: &Path) -> io::Result<Option<String>> {
fn check_owner_only_dir(path: &Path) -> io::Result<Option<String>> {
let Some(directory) = open_plain_dir(path)? else {
return Ok(Some("is not a plain directory".to_owned()));
};
Expand Down
2 changes: 1 addition & 1 deletion nvx/src/host/platform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ pub(crate) fn sync_dir(dir: &Path) -> Result<()> {
/// Refuses a VMM working directory that exceeds Windows' process-creation limit, without
/// accessing the filesystem.
#[cfg(windows)]
pub(crate) fn check_working_dir(path: &std::path::Path) -> Result<()> {
fn check_working_dir(path: &std::path::Path) -> Result<()> {
use std::os::windows::ffi::OsStrExt;
use windows_sys::Win32::Foundation::MAX_PATH;

Expand Down
2 changes: 1 addition & 1 deletion nvx/src/host/platform/other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ pub(crate) fn check_store_dir(_path: &Path) -> io::Result<Option<String>> {
}

/// Fails: this host cannot check who may access a directory.
pub(crate) fn check_owner_only_dir(_path: &Path) -> io::Result<Option<String>> {
fn check_owner_only_dir(_path: &Path) -> io::Result<Option<String>> {
Err(unsupported())
}

Expand Down
Loading