Hadoop Common
  1. Hadoop Common
  2. HADOOP-7811

TestUserGroupInformation#testGetServerSideGroups test fails in chroot

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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
        -------------------------------
      1. HADOOP-7811.patch
        0.9 kB
        Jonathan Eagles

        Activity

        Hide
        Jonathan Eagles added a comment -

        Thanks, Mahadev. I do my development in a chroot and this was a real pain for me.

        Show
        Jonathan Eagles added a comment - Thanks, Mahadev. I do my development in a chroot and this was a real pain for me.
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk #899 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/899/)
        HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev)

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202540
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #899 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/899/ ) HADOOP-7811 . TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202540 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-0.23-Build #95 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Build/95/)
        HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) - Merging r1202540 from trunk

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202542
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-0.23-Build #95 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Build/95/ ) HADOOP-7811 . TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) - Merging r1202540 from trunk mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202542 Files : /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-0.23-Build #78 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/78/)
        HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) - Merging r1202540 from trunk

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202542
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-0.23-Build #78 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/78/ ) HADOOP-7811 . TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) - Merging r1202540 from trunk mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202542 Files : /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk #865 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/865/)
        HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev)

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202540
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #865 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/865/ ) HADOOP-7811 . TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202540 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-0.23-Commit #185 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Commit/185/)
        HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) - Merging r1202540 from trunk

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202542
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-0.23-Commit #185 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Commit/185/ ) HADOOP-7811 . TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) - Merging r1202540 from trunk mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202542 Files : /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk-Commit #1299 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1299/)
        HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev)

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202540
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk-Commit #1299 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1299/ ) HADOOP-7811 . TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202540 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-0.23-Commit #173 (See https://builds.apache.org/job/Hadoop-Common-0.23-Commit/173/)
        HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) - Merging r1202540 from trunk

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202542
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Show
        Hudson added a comment - Integrated in Hadoop-Common-0.23-Commit #173 (See https://builds.apache.org/job/Hadoop-Common-0.23-Commit/173/ ) HADOOP-7811 . TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) - Merging r1202540 from trunk mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202542 Files : /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-0.23-Commit #172 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Commit/172/)
        HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) - Merging r1202540 from trunk

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202542
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-0.23-Commit #172 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Commit/172/ ) HADOOP-7811 . TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) - Merging r1202540 from trunk mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202542 Files : /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-trunk-Commit #1275 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1275/)
        HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev)

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202540
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Show
        Hudson added a comment - Integrated in Hadoop-Common-trunk-Commit #1275 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1275/ ) HADOOP-7811 . TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202540 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk-Commit #1349 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1349/)
        HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev)

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202540
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk-Commit #1349 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1349/ ) HADOOP-7811 . TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1202540 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
        Hide
        Mahadev konar added a comment -

        I just committed this. Thanks Jonathan.

        Show
        Mahadev konar added a comment - I just committed this. Thanks Jonathan.
        Hide
        Mahadev konar added a comment -

        +1 looks good.

        Show
        Mahadev konar added a comment - +1 looks good.
        Hide
        Jonathan Eagles added a comment -

        Findbugs warning is not related to this patch.

        Show
        Jonathan Eagles added a comment - Findbugs warning is not related to this patch.
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12503131/HADOOP-7811.patch
        against trunk revision .

        +1 @author. The patch does not contain any @author tags.

        +1 tests included. The patch appears to include 3 new or modified tests.

        +1 javadoc. The javadoc tool did not generate any warning messages.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        -1 findbugs. The patch appears to introduce 7 new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in .

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/371//testReport/
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HADOOP-Build/371//artifact/trunk/hadoop-common-project/patchprocess/newPatchFindbugsWarningshadoop-common.html
        Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/371//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12503131/HADOOP-7811.patch against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. -1 findbugs. The patch appears to introduce 7 new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed unit tests in . +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/371//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-HADOOP-Build/371//artifact/trunk/hadoop-common-project/patchprocess/newPatchFindbugsWarningshadoop-common.html Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/371//console This message is automatically generated.
        Hide
        Jonathan Eagles added a comment -

        Patch attempts to unify the ways that TestUserGroupInformation.testGetServerSideGroups and Shell.getGroupsForUserCommand call the unix id command.

        Show
        Jonathan Eagles added a comment - Patch attempts to unify the ways that TestUserGroupInformation.testGetServerSideGroups and Shell.getGroupsForUserCommand call the unix id command.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development