Re: Modified version of jexec allows non-root access into jails




On Sat, 30 Dec 2006, Colin Percival wrote:

Bill Moran wrote:
You also describe a scenerio where a user can create a jail of his own design and give himself root inside it, thus allowing him to use the setuid trick to get root on the host as well. The place this falls down is that the user would need to already have root to create the jail in the first place.

Not necessarily. An unprivileged user can create hard links to binaries he doesn't own, including suid binaries.

BTW, I understand that Solaris has now changed the default to be that users cannot hard link files they don't own. We have a sysctl option for that -- if this is now a widespread default, I wonder if we should be considering switching the default?

Robert N M Watson
Computer Laboratory
University of Cambridge
_______________________________________________
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: hardlink not working with directories on same file system
    ... >From what I've seen on LINUX, it appears even superuser ... definitely support hard links on directories when mounted on ... fails and how it in fact fails ... ... for superuser (root). ...
    (comp.os.linux)
  • Re: "Best Practice" for symbolic links ?
    ... > filesystem, and I wanted to keep consistent. ... > I note that Tru64 creates some symbolic links of its own in the root ... Solaris uses symbolic and hard links all over root volume. ... DeeDee, don't press that button! ...
    (comp.unix.admin)
  • Re: "Best Practice" for symbolic links ?
    ... > filesystem, and I wanted to keep consistent. ... > I note that Tru64 creates some symbolic links of its own in the root ... Solaris uses symbolic and hard links all over root volume. ... DeeDee, don't press that button! ...
    (comp.unix.tru64)
  • Re: Modified version of jexec allows non-root access into jails
    ... setuid trick to get root on the host as well. ... An unprivileged user can create hard links to binaries ... he doesn't own, including suid binaries. ...
    (freebsd-hackers)