mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
qemu_cgroup: Expose defaultDeviceACL
This is a list of devices that qemu needs for its run (apart from what's configured for domain). The devices on the list are enabled in the CGroups by default so they will be good candidates for initial /dev for new qemu. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
5ac52bd0fe
commit
a5896e8ca4
@ -42,7 +42,7 @@
|
||||
|
||||
VIR_LOG_INIT("qemu.qemu_cgroup");
|
||||
|
||||
static const char *const defaultDeviceACL[] = {
|
||||
const char *const defaultDeviceACL[] = {
|
||||
"/dev/null", "/dev/full", "/dev/zero",
|
||||
"/dev/random", "/dev/urandom",
|
||||
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
|
||||
|
@ -76,4 +76,5 @@ int qemuCgroupEmulatorAllNodesAllow(virCgroupPtr cgroup,
|
||||
qemuCgroupEmulatorAllNodesDataPtr *data);
|
||||
void qemuCgroupEmulatorAllNodesRestore(qemuCgroupEmulatorAllNodesDataPtr data);
|
||||
|
||||
extern const char *const defaultDeviceACL[];
|
||||
#endif /* __QEMU_CGROUP_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user