Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7811

TestUserGroupInformation#testGetServerSideGroups test fails in chroot

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.1
    • Fix Version/s: 0.23.1
    • Component/s: security, test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      It is common when running in chroot to have root's group vector preserved when running as your self.

      For example

      1. Enter chroot
        $ sudo chroot /myroot
      1. still root
        $ whoami
        root
      1. switch to user preserving root's group vector
        $ sudo -u user -P -s
      1. root's groups
        $ groups root
        a b c
      1. user's real groups
        $ groups user
        d e f
      1. user's effective groups
        $ groups
        a b c d e f
        -------------------------------

        Attachments

        1. HADOOP-7811.patch
          0.9 kB
          Jonathan Eagles

          Activity

            People

            • Assignee:
              jeagles Jonathan Eagles
              Reporter:
              jeagles Jonathan Eagles
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: