Identd in jail.

From: Piotr Chytla (pch_at_fouk.org)
Date: 02/15/05

  • Next message: sekchye goh: "multiple crypto accelerator cards in one FreeBSD box"
    Date: Tue, 15 Feb 2005 20:33:43 +0100
    To: freebsd-security@freebsd.org
    
    

    Hi

    Few days ago I've problem with running identd in jail on 4.10-stable
    I've found that getcred() sysctl isn't permitted from within jail on 4.x.
    R.Watson suggest some "cheap hack" for this but I've solved this
    without patching the kernel.

    My patched ident gets result of getcred() sysctl from jauthd daemon via
    unix socket. Jauthd is simply getcred proxy, it gets two sockadddr_in
    from jailed process and sends ucred.

    Jauthd daemon can be extend to verify data recived from jailed process,
    and of course to listen in many jails .

    I know that this isn't far better then "cheap hack" :)) but for sure it don't
    give getcred sysctl for everyone in the system, and in all jails.

    http://fouk.org/~pch/patches/builtins.c.patch

    applay this patch to /usr/src/usr.sbin/inetd/builtins.c and add AUTHJAIL to
    Makefile

    http://fouk.org/~pch/patches/jauthd.c

    /pch

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


  • Next message: sekchye goh: "multiple crypto accelerator cards in one FreeBSD box"

    Relevant Pages

    • Re: Call for a hacker.... security.bsd.see_other_uids in jails only
      ... I like the idea of per-jail sysctl MIB trees, ... When jail gets created, the generic sysctl code would traverse ... the primary sysctl tree (excluding the jail. ... FreeBSD committer ...
      (freebsd-current)
    • Re: Call for a hacker.... security.bsd.see_other_uids in jails only
      ... the generic sysctl code would traverse ... +> the primary sysctl tree (excluding the jail. ... security.jail.trees then. ...
      (freebsd-current)
    • Re: jail manipulation of routing table
      ... > perhaps another sysctl altogether would be better). ... folk might know why it's a bad idea to deny jail routing sockets. ... "Processes in jail are limited to creating UNIX/IPv4/route sockets ...
      (freebsd-questions)
    • Re: [RFC] relinquish_fs() syscall
      ... > So someone finds a way to break into the jailed process. ... as root (since an attacker can just use some other exploit to gain root ... > emerge from the jail someday. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Jail security
      ... >> A jailed process cannot leave its jail. ... >> jail itself, but that's rather unlikely. ... >> cannot interact with another jail or the host. ... but I have tried many o fthe common chroot ...
      (freebsd-questions)