[libvirt] [PATCH v3 10/15] vircgroup: introduce virCgroupV2AllowDevice

Ján Tomko jtomko at redhat.com
Tue Jun 18 15:00:52 UTC 2019


On Thu, Apr 25, 2019 at 09:44:27AM +0200, Pavel Hrdina wrote:
>In order to allow device we need to create key and value which will be
>used to update BPF map.  virBPFUpdateElem() can override existing
>entries in BPF map so we need to check if that entry exists in order to
>track number of entries in our map.
>
>This can add rule for specific device but major and minor can be both
>-1 which follows the same behavior as in cgroup v1.
>
>Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
>---
> src/util/vircgroupv2.c | 32 ++++++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190618/7e15e935/attachment-0001.sig>


More information about the libvir-list mailing list