mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
qemu: do not allow /dev/rtc or /dev/hpet access via the devices cgroup
The RTC and HPET modes for the QEMU emulation tick have been dropped almost 9 years ago, in commit 25f3151ece1d5881826232bebccc21b588d4e03e. Do not allow them in the devices cgroup policy. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c0e04c2e62
commit
ab5ba57012
@ -484,7 +484,6 @@ chmod o+x /path/to/directory
|
||||
/dev/null, /dev/full, /dev/zero,
|
||||
/dev/random, /dev/urandom,
|
||||
/dev/ptmx, /dev/kvm,
|
||||
/dev/rtc, /dev/hpet
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
|
@ -495,7 +495,6 @@
|
||||
# "/dev/null", "/dev/full", "/dev/zero",
|
||||
# "/dev/random", "/dev/urandom",
|
||||
# "/dev/ptmx", "/dev/kvm",
|
||||
# "/dev/rtc","/dev/hpet"
|
||||
#]
|
||||
#
|
||||
# RDMA migration requires the following extra files to be added to the list:
|
||||
|
@ -47,7 +47,6 @@ const char *const defaultDeviceACL[] = {
|
||||
"/dev/null", "/dev/full", "/dev/zero",
|
||||
"/dev/random", "/dev/urandom",
|
||||
"/dev/ptmx", "/dev/kvm",
|
||||
"/dev/rtc", "/dev/hpet",
|
||||
NULL,
|
||||
};
|
||||
#define DEVICE_PTY_MAJOR 136
|
||||
|
@ -61,8 +61,6 @@ module Test_libvirtd_qemu =
|
||||
{ "5" = "/dev/urandom" }
|
||||
{ "6" = "/dev/ptmx" }
|
||||
{ "7" = "/dev/kvm" }
|
||||
{ "8" = "/dev/rtc" }
|
||||
{ "9" = "/dev/hpet" }
|
||||
}
|
||||
{ "save_image_format" = "raw" }
|
||||
{ "dump_image_format" = "raw" }
|
||||
|
Loading…
Reference in New Issue
Block a user