Skip to content

Commit

Permalink
fix id output to not print security context
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Feb 20, 2024
1 parent d6c6269 commit 0c87461
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/gidmapping.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
TRY_TOP="${TRY_TOP:-$(git rev-parse --show-toplevel --show-superproject-working-tree)}"
TRY="$TRY_TOP/try"

control=$(id -G)
testing=$("$TRY" id -G 2>/dev/null)
control=$(id -Gn)
testing=$("$TRY" -D "$(mktemp -d)" id -Gn 2>/dev/null)

if [ "$control" = "$testing" ]
then
Expand Down
4 changes: 2 additions & 2 deletions test/uidmapping.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
TRY_TOP="${TRY_TOP:-$(git rev-parse --show-toplevel --show-superproject-working-tree)}"
TRY="$TRY_TOP/try"

control=$(id)
testing=$(sudo "$TRY" -u "$USER" id)
control=$(id -un)
testing=$(sudo "$TRY" -D "$(mktemp -d)" -u "$USER" id -un)

if [ "$control" = "$testing" ]
then
Expand Down

0 comments on commit 0c87461

Please sign in to comment.