From owner-freebsd-jail@FreeBSD.ORG Mon Feb 7 11:07:03 2011 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43EDE10656CF for ; Mon, 7 Feb 2011 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 234268FC14 for ; Mon, 7 Feb 2011 11:07:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p17B73GD027780 for ; Mon, 7 Feb 2011 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p17B72Yc027777 for freebsd-jail@FreeBSD.org; Mon, 7 Feb 2011 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 7 Feb 2011 11:07:02 GMT Message-Id: <201102071107.p17B72Yc027777@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-jail@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-jail@FreeBSD.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2011 11:07:03 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/154246 jail [jail] [patch] Bad symlink created if devfs mount poin o conf/150599 jail [patch] /etc/rc.d/jail does not set jailname. o conf/149050 jail [jail] rcorder ``nojail'' too coarse for Jail+VNET s conf/142972 jail [jail] [patch] Support JAILv2 and vnet in rc.d/jail o conf/141317 jail [patch] uncorrect jail stop in /etc/rc.d/jail o kern/133265 jail [jail] is there a solution how to run nfs client in ja o kern/119842 jail [smbfs] [jail] "Bad address" with smbfs inside a jail o bin/99566 jail [jail] [patch] fstat(1) according to specified jid o bin/32828 jail [jail] w(1) incorrectly handles stale utmp slots with 9 problems total. From owner-freebsd-jail@FreeBSD.ORG Tue Feb 8 17:08:30 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B05E106564A for ; Tue, 8 Feb 2011 17:08:30 +0000 (UTC) (envelope-from gnrp@gnrp.in-berlin.de) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by mx1.freebsd.org (Postfix) with ESMTP id D27F58FC12 for ; Tue, 8 Feb 2011 17:08:29 +0000 (UTC) X-Envelope-From: gnrp@gnrp.in-berlin.de X-Envelope-To: Received: from adolfputzen (laptopecke.physik-pool.tu-berlin.de [130.149.58.159]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id p18GUPjm029331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Tue, 8 Feb 2011 17:30:26 +0100 Date: Tue, 8 Feb 2011 17:30:32 +0100 From: Julian Fagir To: freebsd-jail@freebsd.org Message-ID: <20110208173032.38e0a073@adolfputzen> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.14.7; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/kBFS2/z_8wPD5P98fiXMbU4"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Subject: Getting hostname from jail_getid(3) or ezjail(5) X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-jail@freebsd.org List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2011 17:08:30 -0000 --Sig_/kBFS2/z_8wPD5P98fiXMbU4 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, I wanted to write a tool starting a shell in a jail. I know, jexec accomplishes this too, but I want to compile the name of the jail into the program, no commandline-parameters (more about this topic will be posted on this list soon). Thus, I used libjail, more specific jail_getid(3) to get the id of the jail and start a shell in it. The name of the jail is 'jail2', it was created by ezjail(5), and the important lines in /usr/local/etc/ezjail/jail2 are: export jail_jail2_hostname=3D"zweihorn2" export jail_jail2_ip=3D"IPADDRESS" export jail_jail22_rootdir=3D"/usr/jails/jail2" Anyway, when starting the jail, `jls` bravely shows as the hostname of the jail 'jail2'. But when I compile this program (with `cc -ljail jexec_sh.c -o jexec_sh`) #include #include #include #include #include #include #include #define JAIL_NAME "jail2" int main(int argc, char* argv[]) { char *jname; int jid; jid =3D jail_getid(JAIL_NAME); printf("Jail 2 is running: %d\n", jid); jname =3D jail_getname(jid); printf("Jailname: '%s' to jid %d\n", jname, jid); return(0); } jail_getid returns -1; meaning the jailname does not exist. When setting JAIL_NAME to "1" (or "2", etc., according to the jid, if I restarted it), t= he jid is correctly returned: zweihorn1# /home/julian/jexec_sh Jail 1 is running: 1 Jailname: '1' to jid 1 Am i missing something? jail_getid/jail_getname should return exactly the output I expected?! ezjail must be setting the name right as jls returns the correct name. jls does nearly the same, though requesting directly the para= ms without libjail, but libjail does that internally, too. Regards, Julian --Sig_/kBFS2/z_8wPD5P98fiXMbU4 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAk1Rb6gACgkQc7h7cu1Hpp61dgCfTHtiwH9M33CHSzGVh39tBvE5 sPoAnjz06lAWBpN7+Hm/yWbMCfpiqtcs =j+2d -----END PGP SIGNATURE----- --Sig_/kBFS2/z_8wPD5P98fiXMbU4-- From owner-freebsd-jail@FreeBSD.ORG Fri Feb 11 22:17:39 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5ED5106566C for ; Fri, 11 Feb 2011 22:17:39 +0000 (UTC) (envelope-from powerpchead@yahoo.com) Received: from nm9-vm0.bullet.mail.ne1.yahoo.com (nm9-vm0.bullet.mail.ne1.yahoo.com [98.138.91.67]) by mx1.freebsd.org (Postfix) with SMTP id 82C048FC15 for ; Fri, 11 Feb 2011 22:17:39 +0000 (UTC) Received: from [98.138.90.48] by nm9.bullet.mail.ne1.yahoo.com with NNFMP; 11 Feb 2011 22:03:46 -0000 Received: from [98.138.87.2] by tm1.bullet.mail.ne1.yahoo.com with NNFMP; 11 Feb 2011 22:03:46 -0000 Received: from [127.0.0.1] by omp1002.mail.ne1.yahoo.com with NNFMP; 11 Feb 2011 22:03:46 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 82322.99601.bm@omp1002.mail.ne1.yahoo.com Received: (qmail 20237 invoked by uid 60001); 11 Feb 2011 22:03:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1297461825; bh=gfTuxA8dQJfaG2spguozctqqJPM4rEL954Hx4gwZH1E=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=GUbn0SbkKPM8aPUQhCukzeH+SaeBwvxcdS5dQ0lS0ltEOa8+iALduSxeF4Vey82GA9+SAu0fA7HSV80v00t/azaTWyiBMa2T27vsb521d5PS6iKQMABhnC1wl0lUA4Muem5D179kQkBv/jKoP1+gOJcEujQ6LGKdXbDMI9d+JMI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=Q/pUTRJ6gSl0o5Sfiicw7mJYZUnYKEGbZiwcgmOq9VViRLktN2SPm9PTgAqtODDq66DGgiFdhhugBESqGxLISY0RgcfYUk57LZECh5R5DJwxDGsrpEdrXhhdjTX32OFRDSetaw6iUPCqv0tNPvCxZsYWfA0dFTU3KYAeXVfSYQI=; Message-ID: <427773.20226.qm@web111717.mail.gq1.yahoo.com> X-YMail-OSG: .qOCDPYVM1kw3ZjloIuW6T42RtVlw3HcGhnWTe9ygQBKsto WnxgwKARMW1n.uvgnD8Qox_BpXAh9WsjtCqMoqwTCZfStp24b3CetLiJd5mg 4xfRgHnNaqGha7mxqeFlM7hHiVIVPwn5Jjmy4FZ3kxHWYU9NDtFhhIpvgO7P CB5nDQLOcZV2YQdmv7Vedj.0q2CAsCSdqDnAHdpgqtawOVwDWxhLL1wAnn0t 3e1MwiD5aeEdOcBK8nlX6Z.zUxN7Qy0IG9mQT6uEMUrcIj401btTaRKhcwUT K3VjVa5gAkgWuhCl0kpIxfmM.KdO6VMbOwUcVmglXQhruZN4jt.Wz473EYd8 4Xtds2i4qc7CrejwnkseJ2SPKrVYCVn7Y35aehgQO8RVRKHDgPeHfEA-- Received: from [163.181.251.103] by web111717.mail.gq1.yahoo.com via HTTP; Fri, 11 Feb 2011 14:03:45 PST X-Mailer: YahooMailRC/555 YahooMailWebService/0.8.109.292656 Date: Fri, 11 Feb 2011 14:03:45 -0800 (PST) From: Steve Wong To: freebsd-jail@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 11 Feb 2011 22:46:17 +0000 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Gnome & Vino binding to all IP Addresses X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2011 22:17:40 -0000 I have a workstation which I want to have gnome desktop and the vino-server (vnc server) running, and a few jails created to run other services. While I have configured other daemons such as sshd to listen only to the host's IP address, I don't know how to configure gnome or its vino-server to listen only 1 IP address. This is preventing ezjail from creating any jails. Any help is appreciated.