Skip to content

Commit

Permalink
Merge pull request #251 from losynix/upstream_udev
Browse files Browse the repository at this point in the history
Use upstream udev-rs
  • Loading branch information
losynix committed Apr 6, 2023
2 parents e87c97f + d35a593 commit bb302c8
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 54 deletions.
159 changes: 107 additions & 52 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion usbsas-usbdev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env_logger = "0.10"
log = "0.4"
mio = { version = "0.8", features = ["os-ext"] }
thiserror = "1.0"
udev = { git = "https://github.com/losynix/udev-rs", branch = "socket_fd_from_monitor", features = ["mio"] }
udev = { git = "https://github.com/Smithay/udev-rs", rev = "ae6f8faf0418fe3ba7d80a4aa239e247b4f3e75e", features = ["mio"] }
usbsas-comm = { path = "../usbsas-comm" }
usbsas-config = { path = "../usbsas-config" }
usbsas-mock = { path = "../usbsas-mock", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion usbsas-usbdev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn handle_udev_events(
let monitor = udev::MonitorBuilder::new()?.match_subsystem_devtype("usb", "usb_device")?;
let mut poll = Poll::new()?;

usbsas_sandbox::usbdev::seccomp_thread(monitor.socket_raw_fd(), poll.as_raw_fd())?;
usbsas_sandbox::usbdev::seccomp_thread(monitor.as_raw_fd(), poll.as_raw_fd())?;

let config = conf_parse(&config)?;

Expand Down

0 comments on commit bb302c8

Please sign in to comment.