Skip to content

Commit

Permalink
Test with just adding the cap_dac_read_search capability.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelton committed Dec 27, 2024
1 parent c251d21 commit 841fd17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/run-master-and-replica.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function run_ipa_container() {
(
set -x
umask 0
$docker run $readonly_run -d --name "$N" $OPTS \
$docker run --cap-add=cap_dac_read_search $readonly_run -d --name "$N" $OPTS \
-v $VOLUME:/data:Z $DOCKER_RUN_OPTS \
-e PASSWORD=Secret123 "$IMAGE" "$@"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/run-partial-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function run_and_wait_for () {
if [ -n "$seccomp" ] ; then
OPTS="$OPTS --security-opt seccomp=$seccomp"
fi
( set -x ; $docker run --name $NAME -d -h ipa.example.test \
( set -x ; $docker run --cap-add=cap_dac_read_search --name $NAME -d -h ipa.example.test \
$OPTS $IMAGE )
for j in $( seq 1 30 ) ; do
if $docker exec $NAME systemctl is-system-running --no-pager -l 2> /dev/null | grep -q -E 'running|degraded' ; then
Expand Down

0 comments on commit 841fd17

Please sign in to comment.