Re: [PATCH 1/2] qemu: Update cgroup on RNG hotplug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[...]

> +int
> +qemuTeardownRNGCgroup(virDomainObjPtr vm,
> +                      virDomainRNGDefPtr rng)
> +{
> +    qemuDomainObjPrivatePtr priv = vm->privateData;
> +    int rv;
> +
> +    if (rng->backend == VIR_DOMAIN_RNG_BACKEND_RANDOM) {
> +        VIR_DEBUG("Setting Cgroup ACL for RNG device");

s/Setting/Tearing down/

(or something similar - Unsetting, Removing)

Looks reasonable otherwise,

ACK

John

> +        rv = virCgroupDenyDevicePath(priv->cgroup,
> +                                     rng->source.file,
> +                                     VIR_CGROUP_DEVICE_RW, false);
> +        virDomainAuditCgroupPath(vm, priv->cgroup, "deny",
> +                                 rng->source.file,
> +                                 "rw", rv == 0);
> +        if (rv < 0 &&
> +            !virLastErrorIsSystemErrno(ENOENT))
> +            return -1;
> +    }
> +
> +    return 0;
> +}
> +
> +
[...]

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux