X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=setns.c;fp=setns.c;h=971665a1708c20eab4eb8fe6a2f036be32451ee9;hb=c295b2dd01f8b2a2c754da59e6ff3bcc2a6c14c9;hp=7d82d53cec46bc163b7c6ac9b6e25a19a4295abf;hpb=e2b59d88ca88c2b0a40a7e462426ef8a36a5be88;p=lxc-userspace.git diff --git a/setns.c b/setns.c index 7d82d53..971665a 100644 --- a/setns.c +++ b/setns.c @@ -15,12 +15,11 @@ chfscontext(PyObject *self, PyObject *args) int fd = open(filepath, O_RDONLY); if (fd < 0) { - //printf("Could not open ns file\n"); sts = -1; goto out; } - if (setns(fd, 666)) { + if (setns(fd, 0)) { sts = -1; } close(fd); @@ -59,7 +58,6 @@ chcontext(PyObject *self, PyObject *args) int fd = open(filepath, O_RDONLY); if (fd < 0) { -// printf("Could not open ns file\n"); sts = -1; goto out; }