Package: cryptsetup
Version: 20050111-3
Severity: wishlist
Tags: patch

For /tmp to work properly its permissions must be set to 1777 otherwise
only root can write to /tmp resulting in several undesired effects, for
example users not being able to log in via kdm.
The attached patch fixes this by mounting the mapped device to /tmp
after the filesystem has been created, running a chmod and unmount it again.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages cryptsetup depends on:
ii  dmsetup                     2:1.01.00-4  The Linux Kernel Device Mapper use
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libdevmapper1.01            2:1.01.00-4  The Linux Kernel Device Mapper use
ii  libgcrypt11                 1.2.0-11     LGPL Crypto library - runtime libr
ii  libgpg-error0               1.0-1        library for common error values an
ii  libpopt0                    1.7-5        lib for parsing cmdline parameters

-- no debconf information
--- cryptdisks.orig     2005-04-04 00:12:14.000000000 +0000
+++ cryptdisks  2005-04-04 16:46:53.000000000 +0000
@@ -145,6 +145,9 @@
 
                        if test "x$MAKETMP" = "xyes" && test -b $MAPPER/$dst; 
then
                                mke2fs $MAPPER/$dst 2>/dev/null >/dev/null
+                               mount -t ext2 $MAPPER/$dst /tmp
+                               chmod 1777 /tmp
+                               umount /tmp
                        fi
                fi
        done

Reply via email to