All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Wilson <lkml@botanicus.net>
To: linux-kernel@vger.kernel.org
Subject: fchmod on a socket?
Date: Wed, 21 Aug 2002 19:00:44 +0100	[thread overview]
Message-ID: <20020821190044.A2639@dw> (raw)

Hi there,
I'm unsure as to whether this is a bug or not, but if I try to do an
fchmod() on an fd for a UNIX domain socket, it returns success (0), but
does not actually change the permission mode.

--- strace
socket(PF_UNIX, SOCK_DGRAM, 0)          = 3
bind(3, {sin_family=AF_UNIX, path="/tmp/log.extended"}, 110) = 0
setsockopt(3, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0
fcntl64(3, F_SETFL, O_RDONLY|O_ASYNC)   = 0
fchmod(3, 0666)                         = 0
---

--- socket
  File: "/tmp/log.extended"
  Size: 0               Blocks: 0          Socket
Device: 1601h/5633d     Inode: 193160      Links: 1    
Access: (0755/srwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/   wheel)
---

Thanks,
Dave.

                 reply	other threads:[~2002-08-21 17:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20020821190044.A2639@dw \
    --to=lkml@botanicus.net \
    --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.