From: John M Collins <jmc@xisl.com>
To: linux-kernel@vger.kernel.org
Subject: Fchown on unix domain sockets?
Date: Sun, 31 Oct 2004 23:55:00 +0100 [thread overview]
Message-ID: <200410312255.00621.jmc@xisl.com> (raw)
Please CC any reply to jmc AT xisl.com as I'm not subscribed.
I wanted to change the ownership on a unix domain socket in a program (running
as root) I was writing and I was wondering if "fchown" worked on the socket
descriptor (after I'd run "bind" of course).
It doesn't, you have to use "chown" on the path name - however "fchown"
silently does nothing, it doesn't report an error.
I don't mind it not working but I think it should report an error. This is on
2.6.3 kernel.
I tried it on HP/UX 11 and it gave EINVAL (which the HP manual page doesn't
document) and on Solaris 9 which likewise silently did nothing.
--
John Collins Xi Software Ltd www.xisl.com
next reply other threads:[~2004-10-31 22:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-31 22:55 John M Collins [this message]
2004-11-01 14:20 ` Fchown on unix domain sockets? Jan Engelhardt
2004-11-01 14:41 ` John M Collins
2004-11-01 14:49 ` Jan Engelhardt
2004-11-01 15:43 ` John M Collins
2004-11-01 17:27 ` Jan Engelhardt
2004-11-01 22:27 ` David Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200410312255.00621.jmc@xisl.com \
--to=jmc@xisl.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.