> > It is. Ability to connect == write permissions on AF_UNIX socket. So
> > umask matters.
>
> I certainly appreciate that permissions on an AF_UNIX socket matter,
> but wondered why they were set to "sock->inode->i_mode" rather than
> simply 0666. Maybe - I thought - sock->inode->i_mode already has the
> umask applied in some way, and so re-appling it was not necessary.
> Where-from comes the mode that is in sock->inode->i_mode ?
net/socket.c::sock_alloc().
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/