Re: security.bsd.see_other_uids for jails



joerg@xxxxxxxxxxxxxxxxx wrote:
On Sun, May 28, 2006 at 03:46:06PM +0200, Anatoli Klassen wrote:
Hi All,

if security.bsd.see_other_uids is set to 0, users from the main system can still see processes from jails if they have (by accident) the save uid.

For me it's wrong behavior because the main system and the jail are two different systems where uids are independent.

Sorry but you have far bigger security problems if you create such a
setup. E.g. "users" from the outer system can ptrace the processes in
the jail with the same uid.


But ptrace uses the same function p_cansee for security check.

Does it mean than "outer" user is more privileged as "jailed" root? Is it intended?

Regards,
Anatoli

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: security.bsd.see_other_uids for jails
    ... can still see processes from jails if they have (by accident) the save uid. ... For me it's wrong behavior because the main system and the jail are two ... E.g. "users" from the outer system can ptrace the processes in ...
    (freebsd-hackers)
  • Re: security.bsd.see_other_uids for jails
    ... David Malone wrote: ... can still see processes from jails if they have (by accident) the save uid. ... But my question is if it's really intended that jail is not real virtual system but just a way to limit interaction from jail to host and not vice versa. ...
    (freebsd-hackers)
  • Re: OpenSSH Security (just a question, please no f-war)
    ... > Which reminds me that we should really tweak the code and put it in a ... > jail instead of a chroot. ... to be distinct from any other UID on the system. ...
    (FreeBSD-Security)
  • Re: OpenSSH Security (just a question, please no f-war)
    ... > Which reminds me that we should really tweak the code and put it in a ... > jail instead of a chroot. ... to be distinct from any other UID on the system. ...
    (FreeBSD-Security)
  • Re: security.bsd.see_other_uids for jails
    ... still see processes from jails if they have the save uid. ... But my question is if it's really intended that jail is not real virtual system but just a way to limit interaction from jail to host and not vice versa. ... It is more precise to think of jail as a subsetting service than a virtualizing service: processes in jails see a subset of the system resources, ... This means that applications in the "host" environment overlap with the jail environments by virtue of also having access to that subset, as they can directly name files in the file system subset, IP and port bindings, processes, and so on. ...
    (freebsd-hackers)