1. 10 Sep, 2013 3 commits
  2. 04 Sep, 2013 4 commits
  3. 03 Sep, 2013 5 commits
  4. 02 Sep, 2013 6 commits
  5. 29 Aug, 2013 2 commits
  6. 30 Aug, 2013 18 commits
  7. 29 Aug, 2013 2 commits
    • Andrey Vagin's avatar
      net: mount sysfs in a new mount name-space · cec93fa1
      Andrey Vagin authored
      The current scheme is racy. It use open_detache_mount in a current
      name-space. If a mount namespace is created by someone else between
      mount and umount(detach) in open_detache_mount, the mount will be
      propagated in the new mntns, then it is detached in a current ns and
      rmdir fails, because it's still mounted in athother mntns.
      
      This patch creates a new mount namespace for mounting sysfs.
      Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      cec93fa1
    • Andrew Vagin's avatar
      files: declare fd_params->pos as off_t · 5bf25d36
      Andrew Vagin authored
      Currently pos has type unsigned long, so its size depends on
      architecture. pos is saved as 64-bit value in the image file and it
      isn't restored, if it is equal to -1. Due to convertation on 32-bit
      platforms -1 is converted into UINT_MAX and we get error on restore.
      
      $ zdtm.sh ns/static/tun
      ...
      (00.398513)      5: Error (files-reg.c:534): Can't restore file pos: Illegal seek
      (00.398888)      5: Error (files-reg.c:489): Can't open file /dev/net/tun: Illegal seek
      ...
      id: 0x15 flags: 0x2 pos: 0x000000ffffffff fown: { uid: 0 euid: 0 signum: 0 pid_type: 0 pid: 0 }  name: "/dev/net/tun"
      
      crtools is compiled with _FILE_OFFSET_BITS=64, so off_t is always 64-bit.
      Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      5bf25d36