[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903248#action_12903248
 ] 

Ravi Gummadi commented on MAPREDUCE-1991:
-----------------------------------------

I meant the following for the following 8 linux task controller based tests:

TestLocalizationWithLinuxTaskController
TestTrackerDistributedCacheManagerWithLinuxTaskController
TestJobExecutionAsDifferentUser
TestStreamingAsDifferentUser
TestPipesAsDifferentUser
TestDebugSciptWithLinuxTaskController
TestKillSubProcessesWithLinuxTaskController
TestLinuxTaskController


Sample test run as tasktracker_user(Jobs in the test are run as same user as 
the user who started the tasktracker):

user1$ ant test 
-Dtaskcontroller-path=<Path_Of_Directory_In_which_taskController_Is_setup> 
-Dtaskcontroller-ugi=user1,group_of_user1 -Dtest.output=yes 
-Dtestcase=TestLocalizationWithLinuxTaskController

Sample test run as other_user(Jobs in the test are run as different user than 
the user who started the tasktracker):

user1$ ant test 
-Dtaskcontroller-path=<Path_Of_Directory_In_which_taskController_Is_setup> 
-Dtaskcontroller-ugi=other_user,group_of_other_user -Dtest.output=yes 
-Dtestcase=TestLocalizationWithLinuxTaskController


<Path_Of_Directory_In_which_taskController_Is_setup>  is the directory under 
which task-controller executable exists and its owner and group are set to 
root:tt_special_group and permissions are set to rwsr-s---. Here, 
tt_special_group is the group in which task tracker user is the only member(The 
user who is running the above ant commands is task tracker user).
other_user,group_of_other_user can be nobody,nobody(which mostly exist on all 
linux machines).

> taskcontroller allows stealing permissions on any local file
> ------------------------------------------------------------
>
>                 Key: MAPREDUCE-1991
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1991
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task-controller
>    Affects Versions: 0.22.0
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Blocker
>         Attachments: mapreduce-1991-v2.txt, mapreduce-1991.txt
>
>
> The linux task-controller setuid binary allows a malicious user to chmod any 
> file on the system to 644 (and as a side effect appends some junk to the end)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to