From: Sapan Bhatia Date: Mon, 3 Jun 2013 19:49:40 +0000 (-0400) Subject: Bug fixes X-Git-Tag: lxc-userspace-1.0-0~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=13a56a4ff176386a815904f98f67aa5b75ed6b87;hp=68a4f67e919c4580ead80729b183506997627fbd;p=lxc-userspace.git Bug fixes --- diff --git a/lxcsu b/lxcsu index 2f1c0af..164344f 100755 --- a/lxcsu +++ b/lxcsu @@ -141,7 +141,7 @@ def main (): if (not options.pidns): setns.chcontext('/proc/%s/ns/pid'%pid) - if (!os.access('/proc/self'): + if (not os.access('/proc/self',0)): setns.proc_mount() # cgroups is not yet LXC-safe, so we need to use the course grained access control diff --git a/setns.c b/setns.c index fded30b..c40d52b 100644 --- a/setns.c +++ b/setns.c @@ -33,7 +33,7 @@ static PyObject * proc_mount(PyObject *self, PyObject *args) { int sts; - sts = mount("none","/proc","procfs",0,NULL); + sts = mount("none","/proc","proc",0,NULL); return Py_BuildValue("i", sts); }