I'm a little confused by line 163 of src/namespace.c in commit 73608e:

    r = mount(NULL, where, NULL, MS_REMOUNT|MS_BIND|MS_REC|flags, NULL);

I would expect this to remount, recursively, all of the bindings that
were just created a few lines earlier, applying flags to each.

This doesn't seem to be true, though. After looking through
http://repo.or.cz/w/linux-2.6.git/blob/HEAD:/fs/namespace.c and doing
some tests, it looks like MS_REMOUNT never operates recursively, and
the MS_REC flag is ignored here.

Am I just missing something?

kr
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to