Your message dated Fri, 05 Jun 2009 12:04:16 +0200
with message-id <[email protected]>
and subject line Debian #500465: ant-phone: local bind: Operation not permitted
has caused the Debian Bug report #500465,
regarding ant-phone: local bind: Operation not permitted
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
500465: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500465
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ant-phone
Version: 0.2.1-1
Severity: important
Tags: patch
Launching ant-phone on my system gives the following error message:
local bind: Operation not permitted
This program was possibly killed by accident on last run.
In this case, try running it with option -r.
Error at session init.
The problem is that all user home directories are in AFS, which inhibits the
creation of .ant-phone/.socket.
According to FHS chapter 5 on /var/run, "System programs that maintain
transient UNIX-domain sockets must place them in this directory."
I am attaching a patch that moves the socket into the /var/run/ant-phone
directory and introduces a group phone.
Every user who uses ant-phone has to be a member of the phone group to access
that directory and be able to create the socket.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ant-phone depends on:
ii libasound2 1.0.16-2 ALSA library
ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libcairo2 1.6.4-6 The Cairo 2D vector graphics libra
ii libcapi20-3 1:3.9.20060704-3.4 libraries for CAPI support
ii libglib2.0-0 2.16.6-1 The GLib library of C routines
ii libgtk2.0-0 2.12.11-3 The GTK+ graphical user interface
ii libpango1.0-0 1.20.5-2 Layout and rendering of internatio
ii libsndfile1 1.0.17-4 Library for reading/writing audio
ant-phone recommends no packages.
Versions of packages ant-phone suggests:
ii isdnutils-base 1:3.9.20060704-3.4 ISDN utilities, the basic (minimal
-- no debconf information
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ant-phone depends on:
ii libasound2 1.0.16-2 ALSA library
ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libcairo2 1.6.4-6 The Cairo 2D vector graphics libra
ii libcapi20-3 1:3.9.20060704-3.4 libraries for CAPI support
ii libglib2.0-0 2.16.6-1 The GLib library of C routines
ii libgtk2.0-0 2.12.11-3 The GTK+ graphical user interface
ii libpango1.0-0 1.20.5-2 Layout and rendering of internatio
ii libsndfile1 1.0.17-4 Library for reading/writing audio
ant-phone recommends no packages.
Versions of packages ant-phone suggests:
ii isdnutils-base 1:3.9.20060704-3.4 ISDN utilities, the basic (minimal
-- no debconf information
--- ant-phone-0.2.1.orig/src/server.c
+++ ant-phone-0.2.1/src/server.c
@@ -45,8 +45,10 @@
char *server_local_socket_name(void) {
char *filename;
- if (asprintf(&filename, "%s/." PACKAGE "/%s",
- get_homedir(), SERVER_LOCAL_SOCKET_NAME) < 0) {
+/* if (asprintf(&filename, "%s/." PACKAGE "/%s",
+ get_homedir(), SERVER_LOCAL_SOCKET_NAME) < 0) { */
+ if (asprintf(&filename, "/var/run/" PACKAGE "/%s",
+ SERVER_LOCAL_SOCKET_NAME) < 0) {
errprintf(
"Warning: Couldn't allocate memory for history filename.\n");
return NULL;
--- ant-phone-0.2.1.orig/debian/prerm
+++ ant-phone-0.2.1/debian/prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+#
+# remove group phone
+#
+delgroup --quiet phone
+
+exit 0
--- ant-phone-0.2.1.orig/debian/postinst
+++ ant-phone-0.2.1/debian/postinst
@@ -0,0 +1,19 @@
+#!/bin/sh
+set -e
+
+#
+# create group phone
+#
+addgroup --system --quiet phone
+
+#
+# change group owner of /var/run/ant-phone to group phone
+#
+chown root.phone /var/run/ant-phone
+
+#
+# change mode of /var/run/ant-phone to 775
+#
+chmod 775 /var/run/ant-phone
+
+exit 0
--- ant-phone-0.2.1.orig/debian/dirs
+++ ant-phone-0.2.1/debian/dirs
@@ -1 +1,2 @@
usr/share/pixmaps
+var/run/ant-phone
--- End Message ---
--- Begin Message ---
Hi,
thanks very much for the patch.
Unfortunately, this doesn't fit into ant-phone's design (I'm also the
upstream author). As you wrote, FHS states "System programs...". OTOH,
ant-phone is explicitly not a system program, but a desktop application.
I.e., it doesn't implement the system-wide Singleton Pattern, and the
locking mechanism we are talking about would need to be user specific.
But feel free to discuss it on the upstream's mailing list. If other
people see it the same way, maybe I can change my mind.
I'm now closing this bug at least for Debian.
Thanks for considering.
bye,
Roland
--- End Message ---