ports/163653: [PATCH] devel/dbus: use /tmp for socket files
delphij at gmail.com
Wed Dec 28 05:20:11 UTC 2011
The following reply was made to PR ports/163653; it has been noted by GNATS.
From: Xin LI <delphij at gmail.com>
To: Doug Barton <dougb at freebsd.org>
Cc: bug-followup at freebsd.org, delphij at freebsd.org
Subject: Re: ports/163653: [PATCH] devel/dbus: use /tmp for socket files
Date: Tue, 27 Dec 2011 20:46:07 -0800
On Tue, Dec 27, 2011 at 8:40 PM, Doug Barton <dougb at freebsd.org> wrote:
> Is there any reason not to use /var/run for this? Not everyone cleans
> out /tmp on reboot, but /var/run should always be cleaned (unless the
> user has done something wacky, in which case they are on their own).
Yes, primarily because dbus expects random names and and all users
needs to be able to create the socket (so parent directory needs to be
1777 rather than the normal ones).
By the way I really don't think /var/run would be cleaned (nor it
should) because it's important to be able to create a subdirectory
owned by particular user (e.g. a web server) so unprivileged part of
these daemons can still make changes to e.g. pid files.
> BTW, changing it away from /var/tmp is a great idea. I could then remove
> the code I have to clean it up at boot time.
> =C2=A0 =C2=A0 =C2=A0 =C2=A0You can observe a lot just by watching. -- Yog=
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Breadth of IT experience, and depth of knowled=
ge in the DNS.
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Yours for the right price. =C2=A0:) =C2=A0http=
Xin LI <delphij at delphij.net> https://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die
More information about the freebsd-gnome