Commit 36cbe4a
committed
[OPENJDK-3655] alternative fix for script permissions
Adjust the permissions of installed files such that files that
should be executable have o+x.
Remove unnecessary chowns and chmods that set g+w etc on files
that should not be modified by running applications anyway.
The results should be:
$ podman run --rm -ti ubi9/openjdk-21:latest find /opt/jboss /usr/local/s2i -type f -printf "%M %u:%g %h/%f\n"
-rw-r--r-- root:root /opt/jboss/container/openjdk/jdk/jvm-options
-rw-r--r-- root:root /opt/jboss/container/s2i/core/s2i-core
-rw-r--r-- root:root /opt/jboss/container/maven/default/maven.sh
-rw-r--r-- root:root /opt/jboss/container/maven/default/jboss-settings.xml
-rw-r--r-- root:root /opt/jboss/container/maven/s2i/maven-overrides
-rw-r--r-- root:root /opt/jboss/container/maven/s2i/maven-s2i
-rw-r--r-- root:root /opt/jboss/container/java/proxy/proxy-options
-rw-r--r-- root:root /opt/jboss/container/java/proxy/parse-proxy-url.sh
-rw-r--r-- root:root /opt/jboss/container/java/proxy/translate-no-proxy.sh
-rwxr-xr-x root:root /opt/jboss/container/java/run/run-java.sh
-rwxr-xr-x root:root /opt/jboss/container/java/jvm/debug-options
-rwxr-xr-x root:root /opt/jboss/container/java/jvm/java-default-options
-rw-r--r-- root:root /opt/jboss/container/java/s2i/maven-overrides
-rw-r--r-- root:root /opt/jboss/container/java/s2i/maven-s2i-overrides
-rw-r--r-- root:root /opt/jboss/container/java/s2i/s2i-core-hooks
-rw-r--r-- root:root /opt/jboss/container/util/logging/logging.sh
-rwxr-xr-x root:root /usr/local/s2i/run
-rwxr-xr-x root:root /usr/local/s2i/save-artifacts
-rwxr-xr-x root:root /usr/local/s2i/assemble
-rwxr-xr-x root:root /usr/local/s2i/usage
Signed-off-by: Jonathan Dowland <[email protected]>1 parent 2011eaa commit 36cbe4a
File tree
17 files changed
+43
-136
lines changed- modules
- jdk
- 17
- 21
- 8
- jre
- 17
- 21
- 8
- jvm
- artifacts/opt/jboss/container/java/jvm
- maven
- default
- s2i
- proxy
- run
- artifacts/opt/jboss/container/java/run
- s2i
- bash
- core
- util/logging
17 files changed
+43
-136
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 8 | + | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 8 | + | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 8 | + | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
8 | | - | |
9 | 6 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 7 | + | |
17 | 8 | | |
18 | 9 | | |
19 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
8 | | - | |
9 | 6 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 7 | + | |
17 | 8 | | |
18 | 9 | | |
19 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 7 | + | |
15 | 8 | | |
16 | 9 | | |
17 | 10 | | |
| |||
File mode changed.
File mode changed.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 7 | + | |
| 8 | + | |
17 | 9 | | |
18 | 10 | | |
19 | 11 | | |
20 | 12 | | |
21 | 13 | | |
22 | | - | |
23 | 14 | | |
24 | 15 | | |
25 | 16 | | |
| |||
0 commit comments