Skip to content

Commit 0211be6

Browse files
authored
Merge pull request #261 from jmtd/OPENJDK-556-explicit-770
[OPENJDK-556] use explicit 770 in $HOME mode set
2 parents 23a89f0 + 4b0192b commit 0211be6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

modules/user/configure.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ set -e
66
# This ID is registered static ID for the JBoss EAP product
77
# on RHEL which makes it safe to use.
88
groupadd -r jboss -g 185 && useradd -u 185 -r -g root -G jboss -m -d /home/jboss -s /sbin/nologin -c "JBoss user" jboss
9-
chmod ug+rwX /home/jboss
109

11-
# OPENJDK-533: Some container runtimes (Docker) will fail to start if
12-
# the running UID cannot chdir to $HOME
13-
chmod og+x /home/jboss
10+
# OPENJDK-533, OPENJDK-556: correct permissions for OpenShift etc
11+
chmod 0770 /home/jboss

tests/features/general.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Feature: Miscellaneous general settings unit tests
77
When container is started with args
88
| arg | value |
99
| command | stat /home/jboss |
10-
Then available container log should contain Access: (0771/drwxrwx--x)
10+
Then available container log should contain Access: (0770/drwxrwx---)

0 commit comments

Comments
 (0)