socket ownership

Vladimir Pastukhov (vol@escortcorp.com)
Sun, 18 Apr 1999 00:10:03 +0600


Hi,

I've just noticed that under Linux sockets are created
with real uid/gid and not effective as I expected. This
is done by two lines in sock_alloc():

inode->i_uid = current->uid;
inode->i_gid = current->gid;

Shouldn't this be euid or fsuid, similar to files, pipes,
or even unix domain socket inodes on disk? If not, why?

--
Thanks,
Vladimir Pastukhov

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/