Skip to content

Commit 0d1ce6e

Browse files
committed
Moved chmod instructions for $HOME (/home/jboss) from nss-wrapper module to user module
Signed-off-by: Jayashree Huttanagoudar <[email protected]>
1 parent 864841e commit 0d1ce6e

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

modules/user/configure.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ 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
910

1011
# OPENJDK-533: Some container runtimes (Docker) will fail to start if
1112
# the running UID cannot chdir to $HOME

modules/util/nss-wrapper/configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ set -euo pipefail
33

44
# set up a copy of the passwd file which nss_wrapper will use.
55
cp /etc/passwd /home/jboss/passwd
6-
chmod ug+rwX /home/jboss /home/jboss/passwd
6+
chmod ug+rwX /home/jboss/passwd

tests/features/general.feature

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Feature: Miscellaneous general settings unit tests
2+
3+
@ubi8
4+
@redhat-openjdk-18/openjdk18-openshift
5+
@openjdk/openjdk-11-rhel7
6+
Scenario: Check the attributes of /home/jboss using stat
7+
When container is started with args
8+
| arg | value |
9+
| command | stat /home/jboss |
10+
Then available container log should contain Access: (0771/drwxrwx--x)

0 commit comments

Comments
 (0)