]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Avoid getting '-1:-1' in devices cgroup list
authorCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 10 Dec 2014 13:32:10 +0000 (14:32 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Fri, 12 Dec 2014 16:25:00 +0000 (17:25 +0100)
commit5acbb8f99eefc87ea542e5bb3e820ebe68dc2069
tree9378b779e53fa3af842f8d7a28e48027f9eb7a86
parentce1d2f63152290098450fa2beecdee79cf929456
Avoid getting '-1:-1' in devices cgroup list

When calling virCgroupAllowAllDevices we get these invalid entries
in the device cgroup config.
    b -1:-1 rw
    c -1:-1 rw
Check for positive values before outputting the major and minor to
avoid that.
src/util/vircgroup.c