diff options
author | Roger Leigh <rleigh@debian.org> | 2009-03-21 12:17:40 +0000 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2009-03-21 12:17:40 +0000 |
commit | ffae7b13223c8c5775c012615418fece145a6906 (patch) | |
tree | d82c5079e8f8a9cb5d11fc274c141cf65724a4a6 /bin | |
parent | e22d7c6169a313238e03c4a6719dbcbf40b2325a (diff) | |
download | schroot-ffae7b13223c8c5775c012615418fece145a6906.tar.gz |
[sbuild-session] Export additional auth variables into setup environment
Add the following auth PAM properties:
AUTH_RUSER
AUTH_RGROUP
AUTH_UID
AUTH_GID
AUTH_RUID
AUTH_RGID
AUTH_HOME
AUTH_SHELL
The main new property needed here is the passwd home directory,
needed by the 50sbuild setup script to create a home directory
inside the chroot.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/schroot/exec/00check | 8 | ||||
-rwxr-xr-x | bin/schroot/setup/00check | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/bin/schroot/exec/00check b/bin/schroot/exec/00check index 91dcdfa5..788ee22d 100755 --- a/bin/schroot/exec/00check +++ b/bin/schroot/exec/00check @@ -30,6 +30,14 @@ if [ $1 = "exec-start" ]; then if [ "$AUTH_VERBOSITY" = "verbose" ]; then echo "AUTH_USER=$AUTH_USER" + echo "AUTH_RUSER=$AUTH_RUSER" + echo "AUTH_RGROUP=$AUTH_RGROUP" + echo "AUTH_UID=$AUTH_UID" + echo "AUTH_GID=$AUTH_GID" + echo "AUTH_RUID=$AUTH_RUID" + echo "AUTH_RGID=$AUTH_RGID" + echo "AUTH_HOME=$AUTH_HOME" + echo "AUTH_SHELL=$AUTH_SHELL" echo "AUTH_VERBOSITY=$AUTH_VERBOSITY" echo "MOUNT_DIR=$MOUNT_DIR" echo "LIBEXEC_DIR=$LIBEXEC_DIR" diff --git a/bin/schroot/setup/00check b/bin/schroot/setup/00check index 62447dbf..09a33196 100755 --- a/bin/schroot/setup/00check +++ b/bin/schroot/setup/00check @@ -30,6 +30,14 @@ if [ $1 = "setup-start" ] || [ $1 = "setup-recover" ]; then if [ "$AUTH_VERBOSITY" = "verbose" ]; then echo "AUTH_USER=$AUTH_USER" + echo "AUTH_RUSER=$AUTH_RUSER" + echo "AUTH_RGROUP=$AUTH_RGROUP" + echo "AUTH_UID=$AUTH_UID" + echo "AUTH_GID=$AUTH_GID" + echo "AUTH_RUID=$AUTH_RUID" + echo "AUTH_RGID=$AUTH_RGID" + echo "AUTH_HOME=$AUTH_HOME" + echo "AUTH_SHELL=$AUTH_SHELL" echo "AUTH_VERBOSITY=$AUTH_VERBOSITY" echo "MOUNT_DIR=$MOUNT_DIR" echo "LIBEXEC_DIR=$LIBEXEC_DIR" |