Skip to content

Commit

Permalink
mount,dev: add support for /dev/kvm
Browse files Browse the repository at this point in the history
This device is safe for unprivileged access, and is almost a must-have
for running virtual machines with any reasonable performance.
  • Loading branch information
Snaipe committed Oct 1, 2023
1 parent cf3f27c commit 19b878d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ void mount_entries(const char *root, const struct mount_entry *mounts, size_t nm
{ "random", S_IFCHR | 0666, makedev(1, 8) },
{ "urandom", S_IFCHR | 0666, makedev(1, 9) },
{ "net/tun", S_IFCHR | 0666, makedev(10, 200) },
{ "kvm", S_IFCHR | 0666, makedev(10, 232) },
};

for (size_t i = 0; i < lengthof(devices); ++i) {
Expand Down

0 comments on commit 19b878d

Please sign in to comment.