RFR: 8250968: Symlinks attributes not preserved when using jarsigner on zip files

Seán Coffey sean.coffey at oracle.com
Fri Aug 28 14:17:11 UTC 2020

I've been poking around the zip internals and am now able to locate the 
16 bits of interest. The position of these actual bits does appear to 
move around from one test run to another. For now, I guess it's 
sufficient to look for the pattern of interest in the signed zip file. 
New testcase added.



On 27/08/2020 15:58, Weijun Wang wrote:
>> Looks like it was a conscious design decision to only allow recording of POSIX permission bits for this field (& 0xFFF). I don't see anything about symlink support in zipfs docs.
> As long as that*byte*  is there and it’s not difficult to locate, we can manually add the*bit*  for symlink and see if jarsigner can keep it.
> —Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/security-dev/attachments/20200828/9ab9b15f/attachment.htm>

More information about the security-dev mailing list