Bug#321620: gdm doesn't honour umask setting

Piotr Kaczuba pepe at attika.ath.cx
Sat Aug 6 13:31:11 UTC 2005


Package: gdm
Version: 2.6.0.8-1
Severity: normal

Gdm doesn't use umask settings specified by pam-umask. Taking a closer
look at the source you can see that in several places there are umask()
function calls to set permissions on files created by gdm during
startup. So IMHO umask specified by pam-umask is set at startup, but
then changed by gdm at will so that in the end, it's 022. You can test
it for example in gnome by running 'touch /tmp/test' from gnome run
program menu option. Gdm shouldn't use umask() calls but specify
permissions by fchmod() or at least restore the permissions that it
found on startup.

Piotr Kaczuba


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.3-orbiter.x86-64.1
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)

Versions of packages gdm depends on:
ii  adduser                   3.66           Add and remove users and groups
ii  debconf                   1.4.56         Debian configuration management sy
ii  dpkg                      1.13.10        Package maintenance system for Deb
ii  gksu                      1.3.0-1        graphical frontend to su
ii  gnome-session             2.10.0-5       The GNOME 2 Session Manager
ii  gnome-terminal [x-termina 2.10.0-2       The GNOME 2 terminal emulator appl
ii  libart-2.0-2              2.3.17-1       Library of functions for 2D graphi
ii  libatk1.0-0               1.10.1-2       The ATK accessibility toolkit
ii  libattr1                  2.4.21-1.0.1   Extended attribute shared library
ii  libbonobo2-0              2.10.0-1       Bonobo CORBA interfaces library
ii  libbonoboui2-0            2.10.0-1       The Bonobo UI library
ii  libc6                     2.3.5-3        GNU C Library: Shared libraries an
ii  libgconf2-4               2.10.1-1       GNOME configuration database syste
ii  libglade2-0               1:2.5.1-2      library to load .glade files at ru
ii  libglib2.0-0              2.6.6-1        The GLib library of C routines
ii  libgnome2-0               2.10.1-1       The GNOME 2 library - runtime file
ii  libgnomecanvas2-0         2.10.2-2       A powerful object-oriented display
ii  libgnomeui-0              2.10.1-1       The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0            2.10.1-5       The GNOME virtual file-system libr
ii  libgtk2.0-0               2.6.9-1        The GTK+ graphical user interface 
ii  libice6                   6.8.2.dfsg.1-4 Inter-Client Exchange library
ii  liborbit2                 1:2.12.2-3     libraries for ORBit2 - a CORBA ORB
ii  libpam-modules            0.77-0.se5     Pluggable Authentication Modules f
ii  libpam-runtime            0.77-0.se5     Runtime support for the PAM librar
ii  libpam0g                  0.77-0.se5     Pluggable Authentication Modules l
ii  libpango1.0-0             1.8.2-1        Layout and rendering of internatio
ii  libpopt0                  1.7-5          lib for parsing cmdline parameters
ii  librsvg2-2                2.9.5-4        SAX-based renderer library for SVG
ii  libselinux1               1.24-1         SELinux shared libraries
ii  libsm6                    6.8.2.dfsg.1-4 X Window System Session Management
ii  libwrap0                  7.6.dbs-8      Wietse Venema's TCP wrappers libra
ii  libx11-6                  6.8.2.dfsg.1-4 X Window System protocol client li
ii  libxext6                  6.8.2.dfsg.1-4 X Window System miscellaneous exte
ii  libxi6                    6.8.2.dfsg.1-4 X Window System Input extension li
ii  libxml2                   2.6.20-1       GNOME XML library
ii  metacity [x-window-manage 1:2.10.3-2     A lightweight GTK2 based Window Ma
ii  twm [x-window-manager]    6.8.2.dfsg.1-4 Tab window manager
ii  xbase-clients             6.8.2.dfsg.1-4 miscellaneous X clients
ii  xlibs                     6.8.2.dfsg.1-4 X Window System client libraries m
ii  xterm [x-terminal-emulato 6.8.2.dfsg.1-4 X terminal emulator
ii  zlib1g                    1:1.2.3-3      compression library - runtime

Versions of packages gdm recommends:
ii  dialog                    1.0-20050306-1 Displays user-friendly dialog boxe
ii  whiptail                  0.51.6-29      Displays user-friendly dialog boxe
ii  zenity                    2.10.0-2       Display graphical dialog boxes fro

-- debconf information:
  gdm/daemon_name: /usr/bin/gdm
* shared/default-x-display-manager: gdm





More information about the Pkg-gnome-maintainers mailing list