1. 11 Oct, 2012 4 commits
    • Pavel Emelyanov's avatar
      creds: Support supplementary groups · f429de66
      Pavel Emelyanov authored
      Dumping them is performed via parasite, since calling the getgroups
      is the only way of getting the complete list. Currently the nr of
      groups to dump is limited explicitly with the size of shared memory
      between crtools and parasite. This is MUCH more that we have seen
      on real apps so far.
      
      Restoring is done early, before restorer blob not to carry the undefined
      array of grpous in there. This is OK, since groups do not affect us at
      that point and are not affected by subsequent creds restore.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      f429de66
    • Pavel Emelyanov's avatar
      syscalls: Add getgroups syscall · 013d26bd
      Pavel Emelyanov authored
      Getting groups can be done vie proc, but there's only 32 on them,
      while task may have up to 65k :( We will use parasite for that and
      thus require this syscall definition.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      013d26bd
    • Pavel Emelyanov's avatar
      creds: Dump creds with the help of parasite · 699a33e1
      Pavel Emelyanov authored
      Currently move there the secbits dumping, which is not dumped
      via misc-dumping command. This patch is required to support
      per-task groups dumping (setgroups/getgroups) -- we'll have to
      drain the groups from parasite.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      699a33e1
    • Pavel Emelyanov's avatar
      parasite: Remove double args copy · 7db199c7
      Pavel Emelyanov authored
      There's a shared memory between crtools and parasite. No need in copying
      args back and forth, just get the args pointer in crtools and work on it.
      Where not possible (misc, fds drain) do explicit memecpy (to be fixed).
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      7db199c7
  2. 10 Oct, 2012 1 commit
  3. 09 Oct, 2012 1 commit
  4. 08 Oct, 2012 5 commits
  5. 07 Oct, 2012 4 commits
  6. 03 Oct, 2012 8 commits
  7. 02 Oct, 2012 3 commits
  8. 29 Sep, 2012 2 commits
  9. 02 Oct, 2012 5 commits
  10. 29 Sep, 2012 1 commit
  11. 28 Sep, 2012 6 commits