Re: [PATCH] qemu_namespace: Fix detection of nested mount points

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

 



On Tue, Jan 03, 2023 at 17:27:27 +0100, Michal Privoznik wrote:
> When deciding whether to bind mount a path in domain's namespace,
> we look at the QEMU mount table (/proc/$pid/mounts) and try to
> match prefix of given path with one of mount points. Well, we
> do that in a bit clumsy way. For instance, if there's
> "/dev/hugepages" already mounted inside the namespace and we are
> deciding whether to bind mount "/dev/hugepages1G/..." we decide
> to skip over the path and NOT bind mount it. This is because
> plain STRPREFIX() is used and yes, the former is prefix of the
> latter. What we need to check also is whether the next character
> after the prefix is slash.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/qemu/qemu_namespace.c | 4 +++-

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>




[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