Debian Bug report logs - #765443
ltsp-server: Unset variables set by libpam-tmpdir in ltsp-chroot?

version graph

Package: ltsp-client-core; Maintainer for ltsp-client-core is Debian LTSP Maintainers <team+ltsp@tracker.debian.org>; Source for ltsp-client-core is src:ltsp (PTS, buildd, popcon).

Reported by: Petter Reinholdtsen <pere@hungry.com>

Date: Wed, 15 Oct 2014 07:51:01 UTC

Severity: normal

Tags: fixed-upstream

Found in version ltsp/5.5.3-1

Fixed in version ltsp/5.5.4-1

Done: Vagrant Cascadian <vagrant@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#765443; Package ltsp-client-core. (Wed, 15 Oct 2014 07:51:06 GMT) (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
New Bug report received and forwarded. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Wed, 15 Oct 2014 07:51:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Petter Reinholdtsen <pere@hungry.com>
To: submit@bugs.debian.org
Subject: ltsp-server: Unset variables set by libpam-tmpdir in ltsp-chroot?
Date: Wed, 15 Oct 2014 09:46:10 +0200
Package: ltsp-client-core
Version: 5.5.3-1
Severity: normal
User: debian-edu@lists.debian.org
Usertags: debian-edu

When using libpam-tmpdir on the LTSP server and then calling
'ltsp-chroot' to do operations in the LTSP chroot, the temp directory
variables are inherited and causing 'apt-get upgrade' (because of
postinst scripts using the temp directory variables) etc. to fail
because the temporary directory do not exist.  Can ltsp-chroot be
changed to unset the temp directory variables if they point to a
non-existing directory?

These are the variables set by libpam-tempdir:

  TMPDIR=/tmp/user/1000
  TEMP=/tmp/user/1000
  TEMPDIR=/tmp/user/1000
  TMP=/tmp/user/1000

-- 
Happy hacking
Petter Reinholdtsen



Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#765443; Package ltsp-client-core. (Wed, 15 Oct 2014 22:09:10 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Wed, 15 Oct 2014 22:09:10 GMT) (full text, mbox, link).


Message #10 received at 765443@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: Petter Reinholdtsen <pere@hungry.com>, 765443@bugs.debian.org
Subject: Re: Bug#765443: ltsp-server: Unset variables set by libpam-tmpdir in ltsp-chroot?
Date: Wed, 15 Oct 2014 15:04:11 -0700
[Message part 1 (text/plain, inline)]
On 2014-10-15, Petter Reinholdtsen wrote:
> When using libpam-tmpdir on the LTSP server and then calling
> 'ltsp-chroot' to do operations in the LTSP chroot, the temp directory
> variables are inherited and causing 'apt-get upgrade' (because of
> postinst scripts using the temp directory variables) etc. to fail
> because the temporary directory do not exist.  Can ltsp-chroot be
> changed to unset the temp directory variables if they point to a
> non-existing directory?
>
> These are the variables set by libpam-tempdir:
>
>   TMPDIR=/tmp/user/1000
>   TEMP=/tmp/user/1000
>   TEMPDIR=/tmp/user/1000
>   TMP=/tmp/user/1000

I'm not sure what to make of this one, honestly.

Creating the directories would be error prone and likely to leave cruft
behind.

Unsetting the variables seems to circumvent libpam-tmpdir entirely,
though would be simple enough. I guess I lean towards this...

Conditionally checking for the presence of the dir and unsetting each
variable individually seems only slightly less bad that blindly
unsetting the variables, and a lot more code...


live well,
  vagrant
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#765443; Package ltsp-client-core. (Wed, 15 Oct 2014 22:18:05 GMT) (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Wed, 15 Oct 2014 22:18:05 GMT) (full text, mbox, link).


Message #15 received at 765443@bugs.debian.org (full text, mbox, reply):

From: Petter Reinholdtsen <pere@hungry.com>
To: Vagrant Cascadian <vagrant@debian.org>, 765443@bugs.debian.org
Subject: Re: Bug#765443: ltsp-server: Unset variables set by libpam-tmpdir in ltsp-chroot?
Date: Thu, 16 Oct 2014 00:15:14 +0200
[Vagrant Cascadian]
> I'm not sure what to make of this one, honestly.

I would go with unsetting all of them or checking if they exist in the
chroot and unsetting if they don't.  I fail to see why it would be
that much more code.

We are talking about something like this:

  unset TMPDIR TEMP TEMPDIR TMP

or

  for var in TMPDIR TEMP TEMPDIR TMP ; do
      eval "dir=\$$var"
      if [ -d /chroot/$dir ] ; then
      	 :
      else
         eval "unset $var"
      fi
  done

Definitely more code, but not really a lot.

-- 
Happy hacking
Petter Reinholdtsen



Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#765443; Package ltsp-client-core. (Thu, 16 Oct 2014 00:06:05 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Thu, 16 Oct 2014 00:06:05 GMT) (full text, mbox, link).


Message #20 received at 765443@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: Petter Reinholdtsen <pere@hungry.com>, 765443@bugs.debian.org
Subject: Re: Bug#765443: ltsp-server: Unset variables set by libpam-tmpdir in ltsp-chroot?
Date: Wed, 15 Oct 2014 17:03:04 -0700
[Message part 1 (text/plain, inline)]
Control: tags -1 pending fixed-upstream

On 2014-10-15, Petter Reinholdtsen wrote:
> I would go with unsetting all of them or checking if they exist in the
> chroot and unsetting if they don't.  I fail to see why it would be
> that much more code.
>
> We are talking about something like this:
>
>   unset TMPDIR TEMP TEMPDIR TMP

Went with that approach:

  https://bazaar.launchpad.net/~ltsp-upstream/ltsp/ltsp-trunk/revision/2608


live well,
  vagrant
[Message part 2 (application/pgp-signature, inline)]

Added tag(s) fixed-upstream and pending. Request was from Vagrant Cascadian <vagrant@debian.org> to 765443-submit@bugs.debian.org. (Thu, 16 Oct 2014 00:06:05 GMT) (full text, mbox, link).


Reply sent to Vagrant Cascadian <vagrant@debian.org>:
You have taken responsibility. (Wed, 22 Oct 2014 07:09:28 GMT) (full text, mbox, link).


Notification sent to Petter Reinholdtsen <pere@hungry.com>:
Bug acknowledged by developer. (Wed, 22 Oct 2014 07:09:28 GMT) (full text, mbox, link).


Message #27 received at 765443-close@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: 765443-close@bugs.debian.org
Subject: Bug#765443: fixed in ltsp 5.5.4-1
Date: Wed, 22 Oct 2014 07:04:54 +0000
Source: ltsp
Source-Version: 5.5.4-1

We believe that the bug you reported is fixed in the latest version of
ltsp, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 765443@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@debian.org> (supplier of updated ltsp package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 21 Oct 2014 23:32:58 -0700
Source: ltsp
Binary: ltsp-server ltsp-server-standalone ltsp-client-core ltsp-client ltsp-client-builder
Architecture: source all
Version: 5.5.4-1
Distribution: unstable
Urgency: medium
Maintainer: LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>
Changed-By: Vagrant Cascadian <vagrant@debian.org>
Description:
 ltsp-client - complete LTSP client environment
 ltsp-client-builder - build an LTSP environment in the installer target (udeb)
 ltsp-client-core - basic LTSP client environment
 ltsp-server - basic LTSP server environment
 ltsp-server-standalone - complete LTSP server environment
Closes: 761891 765065 765443 765694
Changes:
 ltsp (5.5.4-1) unstable; urgency=medium
 .
   * New upstream version:
     - Support for disabling systemd services with RM_SYSTEM_SERVICES.
       (Closes: #765065)
 .
     - Disable cups-browsed and ModemManager services by default.
       (Closes: #761891, #765065).
 .
     - Set up hostname.domain in /etc/hosts (LP: #1093088).
 .
     - Fix use of SHUTDOWN_TIME with LDM to use ltsp-logout-action instead.
       (LP: #604908).
 .
     - Fix ssh, xdmcp and telnet screen scripts by checking for empty
       argument (LP: #1020113, #1175618).
 .
     - Default to "server" in ssh screen script so that ssh_known_hosts
       file generated by ltsp-update-sshkeys will match.
 .
     - ltsp-build-client: Do not use full path to libeatmydata.so.
       (Closes: #765694)
 .
     - Unset temporary directory variables to avoid problems when directory
       is missing inside the chroot (Closes: #765443).
 .
     - update-kernels: Update ARM code to generate a generic bootscript.
 .
   * debian/control:
     - Add u-boot-tools to ltsp-client-core Depends on armhf/armel.
     - Update Standards-Version to 3.9.6, no changes needed.
Checksums-Sha1:
 c8d0fd4ed31ee1dc89d7f951a3680362689b07c7 2285 ltsp_5.5.4-1.dsc
 a1cebda26315ebd3d3dbbc16753a6e60cb349fec 311424 ltsp_5.5.4.orig.tar.xz
 e60ea122eaa866b49876063cb30b5cda15cd8625 73860 ltsp_5.5.4-1.debian.tar.xz
 7c8c57c7704bb25bc5cfddcfab0396e817fd77fb 266194 ltsp-server_5.5.4-1_all.deb
 5d7c29217dad4155abf746ecf5372a67be592b4e 145910 ltsp-server-standalone_5.5.4-1_all.deb
 92ff52f2a81b26c5e1be9c9f5565bb591d2b6d06 11124 ltsp-client-builder_5.5.4-1_all.udeb
Checksums-Sha256:
 1ba43a010e7f6e94e492fc3a1cb944f9aebd23ef69b7373c500025d1fa0bb0d5 2285 ltsp_5.5.4-1.dsc
 48104820c6beecf6017d5a287521ea32239179a78a30361af77b0bef72a728f3 311424 ltsp_5.5.4.orig.tar.xz
 bbca8fbaef2b3a7c48200a6f796507589096aef2179e022f5e586e4b6e540dcd 73860 ltsp_5.5.4-1.debian.tar.xz
 7e003538dd627e1a919466bb336f72c7a6e74788c2419ef5e560b8c8d4808c6a 266194 ltsp-server_5.5.4-1_all.deb
 ff712bf03387c6e061d68c040eacdc3179a6abf2b89304551ef66e8bb1a7cbb3 145910 ltsp-server-standalone_5.5.4-1_all.deb
 db8e27f48355443a7c8a6dc03ee3e216103cc1431ffc4a1a5d15efe9d4612bf3 11124 ltsp-client-builder_5.5.4-1_all.udeb
Files:
 78fa9f6d4ab028ae6a3ccf6da47778ad 2285 misc extra ltsp_5.5.4-1.dsc
 e7e37c2cb1b471e09e31280d9c4f85cb 311424 misc extra ltsp_5.5.4.orig.tar.xz
 471fb08f52ad33b98f670232988cbec5 73860 misc extra ltsp_5.5.4-1.debian.tar.xz
 dd2bd33f28be7c10372e1e32481ef850 266194 misc extra ltsp-server_5.5.4-1_all.deb
 fbf87330a329f0ecd6c75338dce562aa 145910 misc extra ltsp-server-standalone_5.5.4-1_all.deb
 063d87b89edb652455e9b034b794109d 11124 debian-installer extra ltsp-client-builder_5.5.4-1_all.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJUR1LeAAoJELeLgtSBS5G2rVAP/jUhOkiNdz55bjxf2WpP9YUF
0flE/GV4g46UHZUIhakkUC3exOaMOR//lnyZGEmmlNDUn0+dO2Opzr7C8wTMdbOS
4QMMFfcRivlYKhtNwlSfhiW9wtHxi3V6MT6culSlp5v453CKggFPbkwuh2voqbcu
KKGeRIcFfE7Cw3iL1slZwae9mXcMQ7QKOiu9rACHWQoAAy3ceJFk5TGXtID0OYrj
/4L7nvE2nujN2XeeBIoHlwPX4b01OPaH+siDShB/BRICc6tykgzQ5KFQJXP3z420
pT8x7uoN+jluyfFC+S+tCg0UNI+XPfNRlYQUFGfsTsRIMKTr2nA8k/mwHyrFtU5E
zHG83Q79S1jhrCDGaZ4sAH9FrlZ8HuqHfwJDC9lAqoRCYuH+E7+bYaslj+AocVvn
xuvv/cW6LPxdvDOhV5vHDl1ZwR+fTJOY+k+w5IC5cASJCiBloT6vdXgnnRKotGzs
YaAWk8Sa0GqF0QYIHewq9j22bvTEgAbqDyTRDNKteXbT7asTmyC84MzRJyPJjYZa
zo7PkgB9ClIhAVy7pyeyBYBdOL29GPIk+fUXGy3gCB9nQPRS8VLB7tYyN0dmj1GG
e155iss1hP1Dzyz0EDaq/fBd6ZVv97hmx34YbDoaKSinN+DU32HFpUrW+1eadwh/
gAJsfk2TMZ8F0aNBe3lE
=BZBw
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 29 Nov 2014 07:31:38 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 13:08:37 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.