Package: openbsd-inetd
Version: 0.20040915-1
Severity: normal
Tags: patch
On *BSD, AF_UNIX socket files permission bits are ignored, but
on linux they're not, and should be created with mode 0777 to
match *BSD behaviour. In order to do that, the included patch
(below) temporarily changes umask to zero while creating the
socket, so that the socket file will be created with mode 0777.
-- System Information:
Debian Release: 3.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-k7-0
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Versions of packages openbsd-inetd depends on:
ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an
ii libwrap0 7.6-9 Wietse Venema's TCP wrappers libra
ii netbase 4.20 Basic TCP/IP networking system
-- no debconf information
--- inetd.c.orig Wed May 18 00:00:19 2005
+++ inetd.c Tue May 17 23:53:19 2005
@@ -1077,6 +1077,10 @@ setup()
errno = saveerrno;
}
}
+ } else if (sep->se_family == AF_UNIX) {
+ int saved_umask = umask(0);
+ r = bind(sep->se_fd, &sep->se_ctrladdr, sep->se_ctrladdr_size);
+ umask(saved_umask);
} else
r = bind(sep->se_fd, &sep->se_ctrladdr, sep->se_ctrladdr_size);
if (r < 0) {
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]