RFR(XXS): 8066766: The commands in the modular images are	executable by the owner only
    Chris Hegarty 
    chris.hegarty at oracle.com
       
    Fri Dec  5 14:18:06 UTC 2014
    
    
  
Thanks Volker,
I agree with your change, or you can take the code from ImageBuilder. 
Either is fine with me.
     private void setExecutable(Path file) {
         try {
             Set<PosixFilePermission> perms = 
Files.getPosixFilePermissions(file);
             perms.add(PosixFilePermission.OWNER_EXECUTE);
             perms.add(PosixFilePermission.GROUP_EXECUTE);
             perms.add(PosixFilePermission.OTHERS_EXECUTE);
             Files.setPosixFilePermissions(file, perms);
         } catch (IOException ioe) {
             throw new UncheckedIOException(ioe);
         }
     }
-Chris.
On 05/12/14 14:07, Volker Simonis wrote:
> Hi,
>
> after the integration of the modular changes into jdk9-dev the
> executable commands in jdk/bin and jre/bin images are only executable
> by the file owner. This means that only the user who built the images
> can execute the programs.
>
> This can be easily fixed with the following trivial change:
>
> http://cr.openjdk.java.net/~simonis/webrevs/8066766/
> https://bugs.openjdk.java.net/browse/JDK-8066766
>
> Thanks,
> Volker
>
    
    
More information about the build-dev
mailing list