X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=setns.c;h=e82bd261df077c8137a1056d8ebc63dceb5ad02f;hb=4dd3660b7612a0d6a87320645c2c93490b84b837;hp=7d82d53cec46bc163b7c6ac9b6e25a19a4295abf;hpb=e31c61c5ffecd28042d95979fb32f49bf96ad2fb;p=lxc-userspace.git diff --git a/setns.c b/setns.c index 7d82d53..e82bd26 100644 --- a/setns.c +++ b/setns.c @@ -1,7 +1,7 @@ #include #include #include -#include +#include #include static PyObject * @@ -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; }