Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update dns-lookup and inotify #597

Merged
merged 2 commits into from
Mar 20, 2024
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
26 changes: 18 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/enclave_proc/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl EnclaveProcSock {
pub fn start_monitoring(&mut self, exit_on_delete: bool) -> NitroCliResult<()> {
let path_clone = self.socket_path.clone();
let requested_remove_clone = self.requested_remove.clone();
let mut socket_inotify = Inotify::init().map_err(|e| {
let socket_inotify = Inotify::init().map_err(|e| {
new_nitro_cli_failure!(
&format!("Failed to initialize socket notifications: {:?}", e),
NitroCliErrorEnum::InotifyError
Expand All @@ -86,7 +86,8 @@ impl EnclaveProcSock {
// - IN_DELETE_SELF: triggered when the socket file inode gets removed.
// - IN_ATTRIB: triggered when the reference count of the file inode changes.
socket_inotify
.add_watch(
.watches()
.add(
self.socket_path.as_path(),
WatchMask::ATTRIB | WatchMask::DELETE_SELF,
)
Expand Down
2 changes: 1 addition & 1 deletion vsock_proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rust-version = "1.68"

[dependencies]
clap = "3.2"
dns-lookup = "1.0.1"
dns-lookup = "2.0.3"
env_logger = "0.10"
idna = "0.3.0"
log = "0.4"
Expand Down