Skip to content

Commit

Permalink
use more descriptive func name for mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Mar 8, 2024
1 parent bf0dfae commit c957ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions try
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ EOF
export SOCKET

# Running mapper in a subshell to suppress job control [1] + Done message
(mapper&)
(uid_gid_mapper&)

# --mount: mounting and unmounting filesystems will not affect the rest of the system outside the unshare
# --user: the process will have a distinct set of UIDs, GIDs and capabilities.
Expand Down Expand Up @@ -559,7 +559,7 @@ error() {
# Change uid/gid mapping
################################################################################

mapper() {
uid_gid_mapper() {
cat "$SOCKET" > /dev/null
# Get the pid of the unshare process with current pid as parent
pid=$(pgrep -P $$ -f unshare)
Expand Down

0 comments on commit c957ce4

Please sign in to comment.