-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jailer: expose /dev/userfaultfd when present
The new functionality of userfaultfd-rs is to use /dev/userfaultfd, when present, to create userfault file descriptors. This commit adds logic to look if the device is present on the host and, if it is, find the minor device number at runtime (this is a misc device with a dynamic minor number) and create the device in the jail. Signed-off-by: Babis Chalios <[email protected]>
- Loading branch information
Showing
1 changed file
with
99 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters