save/restore file permission in modules writing/reading

Mark Reinhold mr at sun.com
Tue Mar 2 09:26:32 PST 2010


> Date: Mon, 01 Mar 2010 22:50:58 -0800
> From: mandy.chung at sun.com

> The file permission of several files in the jdk is modified during the build.
> Upon installing a module, I would expect that the modules writing/reading would
> restore the file permission.
> 
> Currently, native cmds on all platforms and native libs on windows are assumed
> to have execute permission.  Would it be appropriate for the module file format
> to include the file permission info that can be saved/restored properly?

That's not necessary.  (If it were, we'd then have to figure out how to
encode file mode bits in a platform-independent way, etc.  Ugh.)

As the draft spec says, the module-file reader is responsible for setting
the mode bits on executables and pseudo-executables (.DLLs on Windows) as
necessary on the host system.  There's already logic in the reader to do
this.

- Mark



More information about the jigsaw-dev mailing list