From 13a56a4ff176386a815904f98f67aa5b75ed6b87 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Mon, 3 Jun 2013 15:49:40 -0400 Subject: [PATCH] Bug fixes --- lxcsu | 2 +- setns.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.43.0