Changeset 4d2d182 in mod_gnutls
- Timestamp:
- Jan 28, 2016, 3:03:36 PM (7 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- c0bb823
- Parents:
- b21bf4f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/common.bash
rb21bf4f r4d2d182 27 27 # MGS_NETNS_ACTIVE is used to track status, there's no harm in calling 28 28 # it multiple times (e.g. in the test-* script and runtests). 29 # 30 # Note that once the network is up, the reexec is wrapped in another 31 # user namespace to get rid of pseudo "root" access. The reason for 32 # this is that Apache tries to switch permissions to a non-root user 33 # when apparently started as root, and fails because no such user 34 # exists inside the namespace. Changing to a non-root user beforehand 35 # avoids that issue. 29 36 function netns_reexec 30 37 { 31 38 if [ -n "${USE_TEST_NAMESPACE}" ] && [ -z "${MGS_NETNS_ACTIVE}" ]; then 32 39 exec "${UNSHARE}" --net -r /bin/bash -c \ 33 "export MGS_NETNS_ACTIVE=1; ip link set up lo; exec ${ 0} ${@}"40 "export MGS_NETNS_ACTIVE=1; ip link set up lo; exec ${UNSHARE} --user ${0} ${@}" 34 41 fi 35 42 return 0
Note: See TracChangeset
for help on using the changeset viewer.