[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amareshwari Sriramadasu updated MAPREDUCE-1415:
-----------------------------------------------

    Attachment: patch-1415-3.txt

Patch adds exists check for the File before doing setExecutable. 
Extended the testcase to pass a file in job.jar and validate its permissions 
because distributed cache files are set permissions during localization itself, 
testcase with distributed cache does not go through the code path of 
setExecutable.

All contrib tests passed. TestStreamingAsDifferentUser passed with both tt_user 
and some other user.

> With streaming jobs and LinuxTaskController, the localized streaming binary 
> has 571 permissions instead of 570
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-1415
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1415
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: contrib/streaming, security
>            Reporter: Vinod K V
>            Assignee: Amareshwari Sriramadasu
>             Fix For: 0.22.0
>
>         Attachments: patch-1415-1.txt, patch-1415-2.txt, patch-1415-3.txt, 
> patch-1415.txt
>
>
> After MAPREDUCE-856, all localized files are expected to have **0 permissions 
> for the sake of security.
> This was found by Karam while testing LinuxTaskController functionality after 
> MAPREDUCE-856.

-- 
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