Fixing permissions and uid/gid on tarball.

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2020-10-21 15:25:47 -05:00
parent 1e545bf79b
commit 640dc1effd
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
2 changed files with 12 additions and 3 deletions

View File

@ -536,6 +536,8 @@
<goal>single</goal> <goal>single</goal>
</goals> </goals>
<configuration> <configuration>
<overrideUid>0</overrideUid>
<overrideGid>0</overrideGid>
<descriptors> <descriptors>
<descriptor>src/main/assembly/jetty-assembly.xml</descriptor> <descriptor>src/main/assembly/jetty-assembly.xml</descriptor>
</descriptors> </descriptors>

View File

@ -17,8 +17,14 @@
<!-- we'll build up shell scripts with execute in separate file-set --> <!-- we'll build up shell scripts with execute in separate file-set -->
<exclude>bin/*.sh</exclude> <exclude>bin/*.sh</exclude>
</excludes> </excludes>
<fileMode>0400</fileMode> <!-- The archive is generated with the uid / gid of the user that
<directoryMode>0700</directoryMode> built the jetty release. which is highly unlikely to
exist on the target machines that unpack this tarball.
We set the user / group / other to have read-only access
to files, and read-execute access to directories
in the unpacked contents. -->
<fileMode>0444</fileMode>
<directoryMode>0755</directoryMode>
</fileSet> </fileSet>
<fileSet> <fileSet>
<directory>${assembly-directory}</directory> <directory>${assembly-directory}</directory>
@ -26,7 +32,8 @@
<includes> <includes>
<include>bin/*.sh</include> <include>bin/*.sh</include>
</includes> </includes>
<fileMode>0500</fileMode> <!-- Set read-execute for shell scripts -->
<fileMode>0555</fileMode>
</fileSet> </fileSet>
</fileSets> </fileSets>
</assembly> </assembly>