Re: [PATCHv2 6/7] lxc: add virProcessRunInMountNamespace

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

 



On Mon, Dec 23, 2013 at 10:55:50PM -0700, Eric Blake wrote:
[..snip..] 
> +    if (virAsprintf(&path, "/proc/%llu/ns/mnt", (unsigned long long)pid) < 0)
> +        goto cleanup;
> +
> +    if ((fd = open(path, O_RDONLY)) < 0) {
> +        virReportSystemError(errno, "%s",
> +                             _("Kernel does not provide mount namespace"));
> +        goto cleanup;
> +    }

So in case mount namespaces are unavailable we'll fail these operations
entirely? I think this is the right thing to do but it will break
distros that have a too old kernel. So shutting down of containers will
no longer work (as it did before).

Cheers,
 -- Guido

--
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]