Re: Proposal to automatically make the owner/user of an accepted socket the current process

[email protected] (Michael van Elst)
Newsgroups gmane.os.netbsd.devel.kernel
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (Greg Troxel) writes:

>It may be that the firewall rules should be based on the process's
>uid/gid, and that the concept of sockets having owners is just a red herring.

Even filtering packets on some guessed uid/gid value is questionable
as processes don't send or receive packets. They do system calls
on socket descriptors.

You could add some filter to sockets and control addresses used by
bind(), connect() and sendto/sendmsg/sendmmsg() syscalls for each user.
The "privileged ports" that are restricted to root are then just a
special case.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.