* fchmod on a socket?
@ 2002-08-21 18:00 Dave Wilson
0 siblings, 0 replies; only message in thread
From: Dave Wilson @ 2002-08-21 18:00 UTC (permalink / raw)
To: linux-kernel
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-21 17:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-21 18:00 fchmod on a socket? Dave Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox