[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#620887: Please add a shm_mkstemp() function



Package: libc6
Version: 2.11.2-13
Severity: wishlist
File: /lib/librt.so.1

Hi,

creating a POSIX shared memory object raises the same sorts of security
issues as opening a tempfile, like name collisions.

For templates there is the mkstemp(char *template) function that
handles all those issues in a safe and easy to use manner. For POSIX
share memory objects there should be an equivalent:

	int shm_mkstemp(char *template);

  The shm_mkstemp() function generates a unique temporary filename
  from template, creates and opens the POSIX shared memory object, and
  returns an open file descriptor for the object....

MfG
	Goswin

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (666, 'unstable'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-debian-xen-1 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6 depends on:
ii  libc-bin                      2.11.2-13  Embedded GNU C Library: Binaries
ii  libgcc1                       1:4.5.2-6  GCC support library

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0]         1.5.35     Debian configuration management sy
pn  glibc-doc                     <none>     (no description available)
ii  locales                       2.11.2-5   Embedded GNU C Library: National L

-- debconf information excluded



Reply to: