From owner-freebsd-jail@freebsd.org Sun Sep 4 16:17:25 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F250A9DC9A for ; Sun, 4 Sep 2016 16:17:25 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F22EE160 for ; Sun, 4 Sep 2016 16:17:23 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (p5DC0F31D.dip0.t-ipconnect.de [93.192.243.29]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u84GHEBr095490 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 4 Sep 2016 16:17:14 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host p5DC0F31D.dip0.t-ipconnect.de [93.192.243.29] claimed to be ultrabook.yoonka.com Subject: Re: Changing jail's IP automatically To: freebsd-jail@freebsd.org References: <872dfbe1-3f39-bf5f-44b2-611bd92a1210@gjunka.com> <4fa37d2e14665ff5a00548626e55142f@gritton.org> <20160903155222.GV83214@kib.kiev.ua> From: Grzegorz Junka Message-ID: <8a1b6a26-5199-6a6a-9e4d-ec9bd0d28010@gjunka.com> Date: Sun, 4 Sep 2016 16:17:07 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160903155222.GV83214@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2016 16:17:25 -0000 On 03/09/2016 15:52, Konstantin Belousov wrote: > On Sat, Sep 03, 2016 at 09:33:08AM -0600, James Gritton wrote: >> On 2016-09-02 15:08, Grzegorz Junka wrote: >>> I am using a jail on my laptop and I often connect to different >>> WiFi's, which of course assign different IPs to my laptop. I set up >>> the jail by adding an alias to wlan0 and I need to update the IP every >>> time I switch the WiFi network. Is it possible to create a jail with >>> IP assigned dynamically, e.g. from DHCP, or at least switch between >>> predefined IPs more easily than by editing /etc/jail.conf? >> You can always add addresses later. > I use private address in the jail, and NAT it on outside interface. > This worked fine on a roaming laptop with DHCP, several years ago. Does it require to use vnet in the jail? From owner-freebsd-jail@freebsd.org Sun Sep 4 16:32:28 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9A0BA9D1DD for ; Sun, 4 Sep 2016 16:32:28 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7E61FC45 for ; Sun, 4 Sep 2016 16:32:27 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (p5DC0F31D.dip0.t-ipconnect.de [93.192.243.29]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u84GWQf2095723 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 4 Sep 2016 16:32:26 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host p5DC0F31D.dip0.t-ipconnect.de [93.192.243.29] claimed to be ultrabook.yoonka.com Subject: Re: Changing jail's IP automatically References: <872dfbe1-3f39-bf5f-44b2-611bd92a1210@gjunka.com> <4fa37d2e14665ff5a00548626e55142f@gritton.org> To: "freebsd-jail@freebsd.org" From: Grzegorz Junka Message-ID: <9fd404a3-f1cc-4510-1d38-5ca8dc85f5d3@gjunka.com> Date: Sun, 4 Sep 2016 16:32:19 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2016 16:32:29 -0000 Probably it would, I didn't try. Is this is the proper way of solving this issue? On 03/09/2016 15:49, James Lodge wrote: > Would PF and NAT not work for you? NAT to the WLAN0 IP (DHCP assigned) using PF macros and have a separate subnet for your jails? This would be PAT so you might have issues with accessing services inbound if you're using the same port in multiple jails. Just an idea..... > > Sent from my iPad > >> On 3 Sep 2016, at 16:33, James Gritton wrote: >> >>> On 2016-09-02 15:08, Grzegorz Junka wrote: >>> I am using a jail on my laptop and I often connect to different >>> WiFi's, which of course assign different IPs to my laptop. I set up >>> the jail by adding an alias to wlan0 and I need to update the IP every >>> time I switch the WiFi network. Is it possible to create a jail with >>> IP assigned dynamically, e.g. from DHCP, or at least switch between >>> predefined IPs more easily than by editing /etc/jail.conf? >> You can always add addresses later. I would create the jail without any IP address specified in jail.conf, and then have a exec.poststart script that sets the address using something like "jail -m name=foo ip4.addr=1.2.3.4". And similarly when the network switches, it would need to trigger a similar script that resets the address. >> >> It's a little more complicated that than though: network daemons will be bound to the old address after the switch, so you'll need to run the proper service(8) commands to restart those, in the right order. Or depending on the service, maybe a kick of some sort (like a kill -1) would do the trick. >> >> And at start time, if the jail has no IP address of its own, anything it runs will use the regular system IP addresses. That's definitely not what you want. Unfortunately, jail(8) doesn't have a way to run a script in the system environment after the jail is created but before exec.start is run. That would be the right place to set the initial address. So barring that, you may want to have network services not started up at all, until this poststart script sets the address. So it's still not a simple issue. >> >> - Jamie >> _______________________________________________ >> freebsd-jail@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-jail >> To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" From owner-freebsd-jail@freebsd.org Sun Sep 4 16:34:30 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1E4AA9D33A for ; Sun, 4 Sep 2016 16:34:30 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 374D4D00 for ; Sun, 4 Sep 2016 16:34:29 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (p5DC0F31D.dip0.t-ipconnect.de [93.192.243.29]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u84GYR7A095821 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 4 Sep 2016 16:34:27 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host p5DC0F31D.dip0.t-ipconnect.de [93.192.243.29] claimed to be ultrabook.yoonka.com Subject: Re: Changing jail's IP automatically References: <872dfbe1-3f39-bf5f-44b2-611bd92a1210@gjunka.com> <4fa37d2e14665ff5a00548626e55142f@gritton.org> To: freebsd-jail@freebsd.org From: Grzegorz Junka Message-ID: <2e2ab827-a88b-b374-5d86-b8d8da98872b@gjunka.com> Date: Sun, 4 Sep 2016 16:34:20 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <4fa37d2e14665ff5a00548626e55142f@gritton.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2016 16:34:30 -0000 On 03/09/2016 15:33, James Gritton wrote: > On 2016-09-02 15:08, Grzegorz Junka wrote: >> I am using a jail on my laptop and I often connect to different >> WiFi's, which of course assign different IPs to my laptop. I set up >> the jail by adding an alias to wlan0 and I need to update the IP every >> time I switch the WiFi network. Is it possible to create a jail with >> IP assigned dynamically, e.g. from DHCP, or at least switch between >> predefined IPs more easily than by editing /etc/jail.conf? > > You can always add addresses later. I would create the jail without > any IP address specified in jail.conf, and then have a exec.poststart > script that sets the address using something like "jail -m name=foo > ip4.addr=1.2.3.4". And similarly when the network switches, it would > need to trigger a similar script that resets the address. > > It's a little more complicated that than though: network daemons will > be bound to the old address after the switch, so you'll need to run > the proper service(8) commands to restart those, in the right order. > Or depending on the service, maybe a kick of some sort (like a kill > -1) would do the trick. > > And at start time, if the jail has no IP address of its own, anything > it runs will use the regular system IP addresses. That's definitely > not what you want. Unfortunately, jail(8) doesn't have a way to run a > script in the system environment after the jail is created but before > exec.start is run. That would be the right place to set the initial > address. So barring that, you may want to have network services not > started up at all, until this poststart script sets the address. So > it's still not a simple issue. > > - Jamie Thanks. It shouldn't be a problem since I usually restart the whole system when switching between networks. And so the jail wouldn't need to be updated with a new IP. I will try to assign the IP from a script then once the jail has been started. From owner-freebsd-jail@freebsd.org Sun Sep 4 16:51:19 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 772FFA9D8DB for ; Sun, 4 Sep 2016 16:51:19 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B8296B8 for ; Sun, 4 Sep 2016 16:51:18 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 62FD228430; Sun, 4 Sep 2016 18:51:16 +0200 (CEST) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id B091828411; Sun, 4 Sep 2016 18:51:15 +0200 (CEST) Message-ID: <57CC5103.9090200@quip.cz> Date: Sun, 04 Sep 2016 18:51:15 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: Grzegorz Junka , "freebsd-jail@freebsd.org" Subject: Re: Changing jail's IP automatically References: <872dfbe1-3f39-bf5f-44b2-611bd92a1210@gjunka.com> <4fa37d2e14665ff5a00548626e55142f@gritton.org> <9fd404a3-f1cc-4510-1d38-5ca8dc85f5d3@gjunka.com> In-Reply-To: <9fd404a3-f1cc-4510-1d38-5ca8dc85f5d3@gjunka.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2016 16:51:19 -0000 Grzegorz Junka wrote on 09/04/2016 18:32: > Probably it would, I didn't try. Is this is the proper way of solving > this issue? If I was you I will definitely use 1:1 biNAT. Because then you can write PF rules in way without knowing the future IP assigned by DHCP. (you will use interface name, not IP on this interface) > On 03/09/2016 15:49, James Lodge wrote: >> Would PF and NAT not work for you? NAT to the WLAN0 IP (DHCP assigned) >> using PF macros and have a separate subnet for your jails? This would >> be PAT so you might have issues with accessing services inbound if >> you're using the same port in multiple jails. Just an idea..... From owner-freebsd-jail@freebsd.org Mon Sep 5 00:21:51 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F643B72C48 for ; Mon, 5 Sep 2016 00:21:51 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 680F9A32 for ; Mon, 5 Sep 2016 00:21:51 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: by mail-it0-x232.google.com with SMTP id e124so124503503ith.0 for ; Sun, 04 Sep 2016 17:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dvbldtBeC1gYyZUwqA9lsAtXJd3TJreO3MDizSWawz4=; b=wVYfSrMNQXSU7tlUoJxaGVQVwq79JdOeGVS71H0FT6xDXieUWRlvQqEo7TGWODSh2Y A1NAlYj+HKX+zg9o4UOP/b1+pNiiL1bE3FsI9GLM+EGWCbsr7diPwijt+uZrsv3LGazh 4MVrnDqmhhKgHr/+dj/h+uJeC3JE8TggM1FmTWzuA9mdAaa4ZgYX4pYcLLm5HHvssvWO N7DTqBzmPF0gFdU53/gHtcPpi2gT9cQ2Fw2mL9FZO2xHIksju2KkFnXM+9V/tWe+SaPG YBLDyxcrC1VDp1Xc1eTpDCxvnl0OIyfRWiTxKis/IHNUElDhnkcPFPklmOyM0MFZg9/F nPDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dvbldtBeC1gYyZUwqA9lsAtXJd3TJreO3MDizSWawz4=; b=mrB9v+pKX/eymSA38BufP5/3nXj0xIsWiF6C23PmOgrlB2y2irDdhFoXc0uUy9q1ee aDJt1i93nAVkZWiIeUuSgeC+gkHkbV63It6mghBT9e9qlwJ5ri6kdQ1jfXX21guzcVsh GrAzuWpsapZHK2cnnWZKN//OhALEbxW/c/OSbMkF6S/Tw7uRe65NI+i+gdFV1r0SlJsz MpNl9OIZ1W0fURLAhPfzJ+XXPD9xqv7r0rOrsj+m8OGdKAM0THaTFwEO9PXO99Fl16av TRpiaFuxwstYnApix9JDebFrxcDX27+9icpXnRcM0wyAZYQGSjprpe5Q/CUaPcmSKx4y zOFQ== X-Gm-Message-State: AE9vXwMwsNUiy/S+6hFm1Dt6edHrU12CjTHoHzMnHFe30QzhTiuiKZeFTsscM/nMh3UVuHm3/ILyay57gTQhSA== X-Received: by 10.36.152.11 with SMTP id n11mr20649553itd.18.1473034910829; Sun, 04 Sep 2016 17:21:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.104.133 with HTTP; Sun, 4 Sep 2016 17:21:20 -0700 (PDT) In-Reply-To: <9fd404a3-f1cc-4510-1d38-5ca8dc85f5d3@gjunka.com> References: <872dfbe1-3f39-bf5f-44b2-611bd92a1210@gjunka.com> <4fa37d2e14665ff5a00548626e55142f@gritton.org> <9fd404a3-f1cc-4510-1d38-5ca8dc85f5d3@gjunka.com> From: Dewayne Geraghty Date: Mon, 5 Sep 2016 10:21:20 +1000 Message-ID: Subject: Re: Changing jail's IP automatically To: Grzegorz Junka Cc: "freebsd-jail@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2016 00:21:51 -0000 No it doesn't require vnet. I've used this technique for years on ipfw using kernel NAT. From owner-freebsd-jail@freebsd.org Mon Sep 5 04:20:20 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 085D1B71315 for ; Mon, 5 Sep 2016 04:20:20 +0000 (UTC) (envelope-from James@Lodge.me.uk) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0106.outbound.protection.outlook.com [104.47.2.106]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7FD7ACC2 for ; Mon, 5 Sep 2016 04:20:18 +0000 (UTC) (envelope-from James@Lodge.me.uk) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gavinlodge.onmicrosoft.com; s=selector1-Lodge-me-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=wXtqy6ZhbzzMuB1s2GeS+yuDz9JBYSwkhmrIuJKUpKQ=; b=H1O8jrgfGyIXsbCXbW4ggIrLyd8dJIvVzGZbAhgfMrluI5PN366Gm1NxkgCaGGJsyelsvB5rRgOQvzk9+LuCm+R+ZCWC3j8615Scc4rsMKvO6raRagvT7URBQwv0VJwQYK99ozpdNg5VDSIPgBWXHSswlrzOMiqVLtqM4IN90nc= Received: from AM4PR0601MB2081.eurprd06.prod.outlook.com (10.167.123.24) by AM4PR0601MB2083.eurprd06.prod.outlook.com (10.167.123.26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9; Sun, 4 Sep 2016 16:43:20 +0000 Received: from AM4PR0601MB2081.eurprd06.prod.outlook.com ([10.167.123.24]) by AM4PR0601MB2081.eurprd06.prod.outlook.com ([10.167.123.24]) with mapi id 15.01.0609.013; Sun, 4 Sep 2016 16:43:20 +0000 From: James Lodge To: Grzegorz Junka CC: "freebsd-jail@freebsd.org" Subject: Re: Changing jail's IP automatically Thread-Topic: Changing jail's IP automatically Thread-Index: AQHSBV4uLgfUvG4DUEy/8y53b6bozaBn5jQAgAAEjYWAAZ5RgIAAAxXN Date: Sun, 4 Sep 2016 16:43:20 +0000 Message-ID: <761D111F-F968-477B-9247-DABD205CEE1C@Lodge.me.uk> References: <872dfbe1-3f39-bf5f-44b2-611bd92a1210@gjunka.com> <4fa37d2e14665ff5a00548626e55142f@gritton.org> , <9fd404a3-f1cc-4510-1d38-5ca8dc85f5d3@gjunka.com> In-Reply-To: <9fd404a3-f1cc-4510-1d38-5ca8dc85f5d3@gjunka.com> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=James@Lodge.me.uk; x-originating-ip: [81.174.132.199] x-ms-office365-filtering-correlation-id: 0146b7b3-4288-4be3-8557-08d3d4e2945d x-microsoft-exchange-diagnostics: 1; AM4PR0601MB2083; 6:HCOf5ivC5+8olETnDchvljvyzDuK5sFOwoprhLpEY/JXiXjAF4yjcFOz5Zn0AgF7tsk7xiALNzzu2mZ58ZonWB1spxXu9xVaWGdNKqeACn9YJKhYXisJCJ+ea+Y3ZldegoCQKLhcyB22Xtx7fWjEvc5+MNAjCyefQusYCsiDspA+F70zPbdD929NIX5p2swbaBkuB2qxWoxvVG+UhfIgzjYoY116SiKigqbL4pxCSCDZMYmS6yERj/Yy0lpFMa4Bg86U+8BPomEaALrV4OPXX71pVi69q8ktPH/EPGGzjAp1JT720QCXyK/NP8PRmsVo; 5:wDuTNl8PZvzSvxxiNcYGJsgLBd94SrDn/3M1Xwz441Zkm8mFgA3puq+uRfLJTOqQp2X0iNCHSgSdKn+n4F12qk/ntrmO+TLe5HE+7r45mfrnruldf7XlBfkkcGlQhLCgedwBQnkdYWYJ+WXgUncOpQ==; 24:C+2Nm8hr1u3Gwn1Wy1Ok90YY/Y4bmnFqWci0PokIVLoOVEOGEForjeJNiMDeMPmLeWMC9EMvCFv9Wfqw2oB0rv0Ba1dPSExNzVBOfDPlJjo=; 7:eRkDmD033stN6ZzNBlpZdz1SBmvo8NnPfNeWLg/ArL5v75ycEuZ+zD5aaTVL9LzeaQVqjKc/1D1jqbsQ3+c5+PsBa90F7b/huM6V5rC/Vi0lFMj9gN6oQy0MTcifA6ExmzS1VEQZ4z6pIyK8Lro2yyIZPqRWikXB26NNYoa52whBQKe/deBMHgsknuRAEYPoqdlfF+bWRr9lznWOns8M5SwYghhSvbk7/cfvPKABz04x5JzE87Sm7zfVEsZj4FMM x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM4PR0601MB2083; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(75325880899374)(21532816269658); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6043046)(6042046); SRVR:AM4PR0601MB2083; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0601MB2083; x-forefront-prvs: 00550ABE1F x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(24454002)(377424004)(199003)(189002)(2906002)(83716003)(2900100001)(2950100001)(87936001)(11100500001)(92566002)(97736004)(101416001)(4326007)(105586002)(7846002)(74482002)(7736002)(189998001)(122556002)(19580405001)(19580395003)(93886004)(82746002)(106116001)(106356001)(80792005)(8936002)(3480700004)(6116002)(10400500002)(102836003)(305945005)(5660300001)(86362001)(110136002)(5002640100001)(3846002)(586003)(8676002)(50986999)(54356999)(3280700002)(81156014)(81166006)(3660700001)(76176999)(77096005)(66066001)(15975445007)(33656002)(36756003)(5003630100001)(68736007)(104396002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM4PR0601MB2083; H:AM4PR0601MB2081.eurprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: Lodge.me.uk does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Lodge.me.uk X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Sep 2016 16:43:20.5125 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ded56ae9-7c77-4cf6-bbfd-39e6a505742d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0601MB2083 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2016 04:20:20 -0000 > On 4 Sep 2016, at 17:32, Grzegorz Junka wrote: >=20 > Probably it would, I didn't try. Is this is the proper way of solving thi= s issue? >=20 >=20 >> On 03/09/2016 15:49, James Lodge wrote: >> Would PF and NAT not work for you? NAT to the WLAN0 IP (DHCP assigned) u= sing PF macros and have a separate subnet for your jails? This would be PAT= so you might have issues with accessing services inbound if you're using t= he same port in multiple jails. Just an idea..... >>=20 >> Sent from my iPad >>=20 >>>> On 3 Sep 2016, at 16:33, James Gritton wrote: >>>>=20 >>>> On 2016-09-02 15:08, Grzegorz Junka wrote: >>>> I am using a jail on my laptop and I often connect to different >>>> WiFi's, which of course assign different IPs to my laptop. I set up >>>> the jail by adding an alias to wlan0 and I need to update the IP every >>>> time I switch the WiFi network. Is it possible to create a jail with >>>> IP assigned dynamically, e.g. from DHCP, or at least switch between >>>> predefined IPs more easily than by editing /etc/jail.conf? >>> You can always add addresses later. I would create the jail without an= y IP address specified in jail.conf, and then have a exec.poststart script = that sets the address using something like "jail -m name=3Dfoo ip4.addr=3D1= .2.3.4". And similarly when the network switches, it would need to trigger= a similar script that resets the address. >>>=20 >>> It's a little more complicated that than though: network daemons will b= e bound to the old address after the switch, so you'll need to run the prop= er service(8) commands to restart those, in the right order. Or depending = on the service, maybe a kick of some sort (like a kill -1) would do the tri= ck. >>>=20 >>> And at start time, if the jail has no IP address of its own, anything i= t runs will use the regular system IP addresses. That's definitely not wha= t you want. Unfortunately, jail(8) doesn't have a way to run a script in t= he system environment after the jail is created but before exec.start is ru= n. That would be the right place to set the initial address. So barring t= hat, you may want to have network services not started up at all, until thi= s poststart script sets the address. So it's still not a simple issue. >>>=20 >>> - Jamie >>> _______________________________________________ >>> freebsd-jail@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-jail >>> To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-jail@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" There are many way to handle it, using NAT would be the easiest and the way= products like VirtualBox and VMware workstation handles it's on a desktop/= laptop.=20 From owner-freebsd-jail@freebsd.org Tue Sep 6 11:38:33 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6FE67BC6C5E for ; Tue, 6 Sep 2016 11:38:33 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 07B83BFE for ; Tue, 6 Sep 2016 11:38:32 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (ip-109-84-3-81.web.vodafone.de [109.84.3.81]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u86BcTUX053908 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 6 Sep 2016 11:38:29 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host ip-109-84-3-81.web.vodafone.de [109.84.3.81] claimed to be ultrabook.yoonka.com To: "freebsd-jail@freebsd.org" From: Grzegorz Junka Subject: timerfd in FreeBSD jail? Message-ID: Date: Tue, 6 Sep 2016 11:38:23 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 11:38:33 -0000 I am trying to compile dart-sdk in Centos 6 that's running in a FreeBSD jail. I am getting the following error: runtime/bin/eventhandler_linux.cc:114: error: Failed creating timerfd file descriptor: 38 Is this a limitation of the jail or I need to enable something to have it available? Grzegorz From owner-freebsd-jail@freebsd.org Tue Sep 6 13:07:18 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC710B96CD3 for ; Tue, 6 Sep 2016 13:07:18 +0000 (UTC) (envelope-from eto.freebsd@ethome.sk) Received: from smtpout6.dnsserver.eu (smtpout6.dnsserver.eu [92.240.253.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 919ADCB2 for ; Tue, 6 Sep 2016 13:07:18 +0000 (UTC) (envelope-from eto.freebsd@ethome.sk) Received: from [92.240.253.67] (helo=smtp3s109.dnsserver.eu) by smtpout6.dnsserver.eu with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bhFia-0007Yl-14 for freebsd-jail@freebsd.org; Tue, 06 Sep 2016 14:43:12 +0200 Received: from [80.242.44.220] (helo=mona.office.misuthova.sk) by smtp3s109.dnsserver.eu with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.83 (FreeBSD)) (envelope-from ) id 1bhFib-0003kb-Ct for freebsd-jail@freebsd.org; Tue, 06 Sep 2016 14:43:13 +0200 Date: Tue, 6 Sep 2016 14:35:24 +0200 From: "Martin \"eto\" Misuth" To: freebsd-jail@freebsd.org Subject: Re: timerfd in FreeBSD jail? Message-ID: <20160906143524.221f4994@mona.office.misuthova.sk> In-Reply-To: References: Organization: ethome.sk MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 80.242.44.220 X-SA-Exim-Mail-From: eto.freebsd@ethome.sk X-SA-Exim-Scanned: No (on smtp3s109.dnsserver.eu); SAEximRunCond expanded to false X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 13:07:18 -0000 On Tue, 6 Sep 2016 11:38:23 +0000 Grzegorz Junka wrote: > I am trying to compile dart-sdk in Centos 6 that's running in a FreeBSD > jail. I am getting the following error: > > runtime/bin/eventhandler_linux.cc:114: error: Failed creating timerfd > file descriptor: 38 You probably already understand, that this is caused by Linux kernel specific techology called timerfd (file descriptor acting as timer/clock). As far as I know FreeBSD doesn't support many such specifically Linux only features natively. Although there is Linux API emulator provided as kernel module, this is not 100% compatible (it lags a bit behind the times given pace at which Linux rolls). Usually older software works, but you might have problem with never one. Second complication is jail, you need to recreate Linux emulation setup in-jail, if you plan to use "Linux jails". As you wrote "Centos 6 jail", I guess your jail, is an real Linux jail (you have Linux emulation enabled on host and expose Linux emulated interfaces in jail and all other necessery things, and Linux binaries work). In that case you are out of luck, until FreeBSD Linux emu layer gains timerfd support (what I guess won't happen anytime soon). However things you can still do, is to check whether this dart-sdk codebase doesn't provides compile time option to use alternative mechanisms for timing, as config option. As timerfd is relatively new (circa 2007), codebase might have provisions for some other mechanism. > > Is this a limitation of the jail or I need to enable something to have > it available? > > Grzegorz This is limitation of Linux emulation. eto From owner-freebsd-jail@freebsd.org Tue Sep 6 13:08:27 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 35B83B96D1F; Tue, 6 Sep 2016 13:08:27 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E6D39D03; Tue, 6 Sep 2016 13:08:26 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (ip-109-84-3-81.web.vodafone.de [109.84.3.81]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u86D8OvF055819 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 6 Sep 2016 13:08:24 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host ip-109-84-3-81.web.vodafone.de [109.84.3.81] claimed to be ultrabook.yoonka.com Subject: Re: timerfd in FreeBSD jail? To: James Gritton References: <7c43d0f1052c93b1e074c4dd2ee8340d@gritton.org> Cc: freebsd-jail@freebsd.org, owner-freebsd-jail@freebsd.org From: Grzegorz Junka Message-ID: Date: Tue, 6 Sep 2016 13:08:18 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <7c43d0f1052c93b1e074c4dd2ee8340d@gritton.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 13:08:27 -0000 On 06/09/2016 12:49, James Gritton wrote: > On 2016-09-06 05:38, Grzegorz Junka wrote: >> I am trying to compile dart-sdk in Centos 6 that's running in a >> FreeBSD jail. I am getting the following error: >> >> runtime/bin/eventhandler_linux.cc:114: error: Failed creating timerfd >> file descriptor: 38 >> >> Is this a limitation of the jail or I need to enable something to have >> it available? > > No idea, given that error message and unfamiliarity with the source. > Is there a linux system call or at least library function you can > narrow it down to? > > - Jamie Yes, this is when compiling sipxecs https://github.com/sipXcom/sipxecs, which uses the dart-sdk package (dart_1.9.1-1_amd64.deb). The dart-sdk has been installed as instructed in this email (by unpacking a .deb): https://groups.google.com/forum/#!msg/sipxcom-dev/EeRsfbh32CA/QXalcr0S2p4J And the actual file with the error is here (probably not the same version): https://github.com/dart-lang/sdk/blob/master/runtime/bin/eventhandler_linux.cc#L114 So, the linux call would be timerfd_create Grzegorz From owner-freebsd-jail@freebsd.org Tue Sep 6 13:18:29 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3EC2BBC4157; Tue, 6 Sep 2016 13:18:29 +0000 (UTC) (envelope-from jamie@gritton.org) Received: from gritton.org (gritton.org [199.192.165.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.gritton.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D6213C3; Tue, 6 Sep 2016 13:18:28 +0000 (UTC) (envelope-from jamie@gritton.org) Received: from gritton.org (gritton.org [199.192.165.131]) by gritton.org (8.15.2/8.15.2) with ESMTPS id u86Cnpja080361 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 6 Sep 2016 06:49:52 -0600 (MDT) (envelope-from jamie@gritton.org) Received: (from www@localhost) by gritton.org (8.15.2/8.15.2/Submit) id u86Cnp4s080360; Tue, 6 Sep 2016 06:49:51 -0600 (MDT) (envelope-from jamie@gritton.org) X-Authentication-Warning: gritton.org: www set sender to jamie@gritton.org using -f To: Grzegorz Junka Subject: Re: timerfd in FreeBSD jail? X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 06 Sep 2016 06:49:51 -0600 From: James Gritton Cc: freebsd-jail@freebsd.org, owner-freebsd-jail@freebsd.org In-Reply-To: References: Message-ID: <7c43d0f1052c93b1e074c4dd2ee8340d@gritton.org> X-Sender: jamie@gritton.org User-Agent: Roundcube Webmail/1.2.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 13:18:29 -0000 On 2016-09-06 05:38, Grzegorz Junka wrote: > I am trying to compile dart-sdk in Centos 6 that's running in a > FreeBSD jail. I am getting the following error: > > runtime/bin/eventhandler_linux.cc:114: error: Failed creating timerfd > file descriptor: 38 > > Is this a limitation of the jail or I need to enable something to have > it available? No idea, given that error message and unfamiliarity with the source. Is there a linux system call or at least library function you can narrow it down to? - Jamie From owner-freebsd-jail@freebsd.org Tue Sep 6 13:19:21 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78131BC418E for ; Tue, 6 Sep 2016 13:19:21 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D96E61C for ; Tue, 6 Sep 2016 13:19:20 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (ip-109-84-3-81.web.vodafone.de [109.84.3.81]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u86DJIoU055994 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 6 Sep 2016 13:19:19 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host ip-109-84-3-81.web.vodafone.de [109.84.3.81] claimed to be ultrabook.yoonka.com Subject: Re: timerfd in FreeBSD jail? To: freebsd-jail@freebsd.org References: <20160906143524.221f4994@mona.office.misuthova.sk> From: Grzegorz Junka Message-ID: <3fd19a50-fef3-6504-5113-66a2bab0aa81@gjunka.com> Date: Tue, 6 Sep 2016 13:19:13 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160906143524.221f4994@mona.office.misuthova.sk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 13:19:21 -0000 On 06/09/2016 12:35, Martin "eto" Misuth wrote: > On Tue, 6 Sep 2016 11:38:23 +0000 > Grzegorz Junka wrote: > >> I am trying to compile dart-sdk in Centos 6 that's running in a FreeBSD >> jail. I am getting the following error: >> >> runtime/bin/eventhandler_linux.cc:114: error: Failed creating timerfd >> file descriptor: 38 > You probably already understand, that this is caused by Linux kernel > specific techology called timerfd (file descriptor acting as timer/clock). > As far as I know FreeBSD doesn't support many such specifically Linux only > features natively. > > Although there is Linux API emulator provided as kernel module, this is not 100% > compatible (it lags a bit behind the times given pace at which Linux rolls). > Usually older software works, but you might have problem with never one. > > Second complication is jail, you need to recreate Linux emulation setup > in-jail, if you plan to use "Linux jails". > > As you wrote "Centos 6 jail", I guess your jail, is an real Linux jail (you have > Linux emulation enabled on host and expose Linux emulated interfaces in > jail and all other necessery things, and Linux binaries work). > > In that case you are out of luck, until FreeBSD Linux emu layer gains timerfd > support (what I guess won't happen anytime soon). > > However things you can still do, is to check whether this dart-sdk codebase > doesn't provides compile time option to use alternative mechanisms for timing, > as config option. > > As timerfd is relatively new (circa 2007), codebase might have provisions > for some other mechanism. > >> Is this a limitation of the jail or I need to enable something to have >> it available? >> >> Grzegorz > This is limitation of Linux emulation. > > eto > _______________________________________________ > freebsd-jail@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" OK, I was hoping that this is similar to creating ping sockets in jail, that it needs to be enabled on the host for jail to actually be able to execute ping. How would I know that this is not implemented in the linux emulation layer rather than disabled on the host? And yes, I have the linux environment enabled and set up in the jail and it mostly works fine. But I didn't put it under any stress yet. I will see if the dart-sdk package can be somehow compiled without the timer_fd options. Thanks Grzegorz From owner-freebsd-jail@freebsd.org Tue Sep 6 13:30:57 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D90AFBC47C4 for ; Tue, 6 Sep 2016 13:30:57 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from gritton.org (gritton.org [199.192.165.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.gritton.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A756CF88 for ; Tue, 6 Sep 2016 13:30:57 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from gritton.org (gritton.org [199.192.165.131]) by gritton.org (8.15.2/8.15.2) with ESMTPS id u86DUrbM081602 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 6 Sep 2016 07:30:53 -0600 (MDT) (envelope-from jamie@freebsd.org) Received: (from www@localhost) by gritton.org (8.15.2/8.15.2/Submit) id u86DUrjr081601; Tue, 6 Sep 2016 07:30:53 -0600 (MDT) (envelope-from jamie@freebsd.org) X-Authentication-Warning: gritton.org: www set sender to jamie@freebsd.org using -f To: Grzegorz Junka Subject: Re: timerfd in FreeBSD jail? X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 06 Sep 2016 07:30:53 -0600 From: James Gritton Cc: freebsd-jail@freebsd.org In-Reply-To: References: <7c43d0f1052c93b1e074c4dd2ee8340d@gritton.org> Message-ID: X-Sender: jamie@freebsd.org User-Agent: Roundcube Webmail/1.2.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 13:30:57 -0000 > On 2016-09-06 07:08, Grzegorz Junka wrote: >> On 06/09/2016 12:49, James Gritton wrote: >> On 2016-09-06 05:38, Grzegorz Junka wrote: >> I am trying to compile dart-sdk in Centos 6 that's running in a >> FreeBSD jail. I am getting the following error: >> >> runtime/bin/eventhandler_linux.cc:114: error: Failed creating timerfd >> file descriptor: 38 >> >> Is this a limitation of the jail or I need to enable something to have >> it available? >> No idea, given that error message and unfamiliarity with the source. >> Is there a linux system call or at >least library function you can >> narrow it down to? > > Yes, this is when compiling sipxecs https://github.com/sipXcom/sipxecs, > which uses the dart-sdk package >(dart_1.9.1-1_amd64.deb). The dart-sdk > has been installed as instructed in this email (by unpacking a .deb): > > https://groups.google.com/forum/#!msg/sipxcom-dev/EeRsfbh32CA/QXalcr0S2p4J > > And the actual file with the error is here (probably not the same > version): > > https://github.com/dart-lang/sdk/blob/master/runtime/bin/eventhandler_linux.cc#L114 > > So, the linux call would be timerfd_create It's not a jail problem, but a linux emulation problem. timerfd_create isn't implemented in FreeBSD's linux emulation. Of note, the "38" is linux's ENOSYS errno code. - Jamie From owner-freebsd-jail@freebsd.org Tue Sep 6 13:35:54 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DF16BC4ADF for ; Tue, 6 Sep 2016 13:35:54 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1868C979 for ; Tue, 6 Sep 2016 13:35:53 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (ip-109-84-3-81.web.vodafone.de [109.84.3.81]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u86DZobX056362 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 6 Sep 2016 13:35:51 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host ip-109-84-3-81.web.vodafone.de [109.84.3.81] claimed to be ultrabook.yoonka.com Subject: Re: timerfd in FreeBSD jail? References: <7c43d0f1052c93b1e074c4dd2ee8340d@gritton.org> Cc: freebsd-jail@freebsd.org From: Grzegorz Junka Message-ID: Date: Tue, 6 Sep 2016 13:35:45 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 13:35:54 -0000 On 06/09/2016 13:30, James Gritton wrote: >> On 2016-09-06 07:08, Grzegorz Junka wrote: >>> On 06/09/2016 12:49, James Gritton wrote: >>> On 2016-09-06 05:38, Grzegorz Junka wrote: >>> I am trying to compile dart-sdk in Centos 6 that's running in a >>> FreeBSD jail. I am getting the following error: >>> >>> runtime/bin/eventhandler_linux.cc:114: error: Failed creating timerfd >>> file descriptor: 38 >>> >>> Is this a limitation of the jail or I need to enable something to have >>> it available? >>> No idea, given that error message and unfamiliarity with the >>> source. Is there a linux system call or at >least library function >>> you can narrow it down to? >> >> Yes, this is when compiling sipxecs >> https://github.com/sipXcom/sipxecs, which uses the dart-sdk package >> >(dart_1.9.1-1_amd64.deb). The dart-sdk has been installed as >> instructed in this email (by unpacking a .deb): >> >> https://groups.google.com/forum/#!msg/sipxcom-dev/EeRsfbh32CA/QXalcr0S2p4J >> >> >> And the actual file with the error is here (probably not the same >> version): >> >> https://github.com/dart-lang/sdk/blob/master/runtime/bin/eventhandler_linux.cc#L114 >> >> >> So, the linux call would be timerfd_create > > It's not a jail problem, but a linux emulation problem. timerfd_create > isn't implemented in FreeBSD's linux emulation. Of note, the "38" is > linux's ENOSYS errno code. > > - Jamie Oh, great, thanks for pointing that out. Grzegorz From owner-freebsd-jail@freebsd.org Tue Sep 6 14:15:23 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28ABDBC6BA4 for ; Tue, 6 Sep 2016 14:15:23 +0000 (UTC) (envelope-from eto.freebsd@ethome.sk) Received: from smtpout6.dnsserver.eu (smtpout6.dnsserver.eu [92.240.253.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E06D2974 for ; Tue, 6 Sep 2016 14:15:22 +0000 (UTC) (envelope-from eto.freebsd@ethome.sk) Received: from [92.240.253.67] (helo=smtp3s109.dnsserver.eu) by smtpout6.dnsserver.eu with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bhH9h-000LH3-Kd for freebsd-jail@freebsd.org; Tue, 06 Sep 2016 16:15:17 +0200 Received: from [80.242.44.220] (helo=mona.office.misuthova.sk) by smtp3s109.dnsserver.eu with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.83 (FreeBSD)) (envelope-from ) id 1bhH9j-000EMH-5e for freebsd-jail@freebsd.org; Tue, 06 Sep 2016 16:15:19 +0200 Date: Tue, 6 Sep 2016 16:07:31 +0200 From: "Martin \"eto\" Misuth" To: freebsd-jail@freebsd.org Subject: Re: timerfd in FreeBSD jail? Message-ID: <20160906160731.6060d41a@mona.office.misuthova.sk> In-Reply-To: <3fd19a50-fef3-6504-5113-66a2bab0aa81@gjunka.com> References: <20160906143524.221f4994@mona.office.misuthova.sk> <3fd19a50-fef3-6504-5113-66a2bab0aa81@gjunka.com> Organization: ethome.sk MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 80.242.44.220 X-SA-Exim-Mail-From: eto.freebsd@ethome.sk X-SA-Exim-Scanned: No (on smtp3s109.dnsserver.eu); SAEximRunCond expanded to false X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 14:15:23 -0000 On Tue, 6 Sep 2016 13:19:13 +0000 Grzegorz Junka wrote: > OK, I was hoping that this is similar to creating ping sockets in jail, > that it needs to be enabled on the host for jail to actually be able to > execute ping. Well unfortunately that is not the case, as you see. > How would I know that this is not implemented in the linux > emulation layer rather than disabled on the host? I would be interested in resource documenting emulated Linux syscall table (on wiki perhaps) myself, maybe it is buried somewhere in the docs, but I haven't found it yet. Supposedly SmartOS has similar emulator which is much more recent, I wonder if FreeBSD masters could reuse some stuff from them. Seems Like emu is not really top priority (as in supporting most recent stuffs) for FreeBSD project right now. > > And yes, I have the linux environment enabled and set up in the jail and > it mostly works fine. But I didn't put it under any stress yet. I will > see if the dart-sdk package can be somehow compiled without the timer_fd > options. Third option, if you have time and willforce, is to ditch jail altogether, and to try running your CentOS install in bhyve hypervisor. That way you will lose some cycles in emulation, but as full virtual computer is provided, resulting CentOS install should work same as in any other VM. On the bright side you can then unload Linux emulation kernel modules from host. eto From owner-freebsd-jail@freebsd.org Tue Sep 6 14:21:37 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4254CBC6DCB for ; Tue, 6 Sep 2016 14:21:37 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A8765E29 for ; Tue, 6 Sep 2016 14:21:36 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (ip-109-84-3-81.web.vodafone.de [109.84.3.81]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u86ELXJf057161 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 6 Sep 2016 14:21:34 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host ip-109-84-3-81.web.vodafone.de [109.84.3.81] claimed to be ultrabook.yoonka.com Subject: Re: timerfd in FreeBSD jail? To: freebsd-jail@freebsd.org References: <20160906143524.221f4994@mona.office.misuthova.sk> <3fd19a50-fef3-6504-5113-66a2bab0aa81@gjunka.com> <20160906160731.6060d41a@mona.office.misuthova.sk> From: Grzegorz Junka Message-ID: <975c9375-9241-64ea-602d-10ed3a47b46d@gjunka.com> Date: Tue, 6 Sep 2016 14:21:28 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160906160731.6060d41a@mona.office.misuthova.sk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 14:21:37 -0000 On 06/09/2016 14:07, Martin "eto" Misuth wrote: > On Tue, 6 Sep 2016 13:19:13 +0000 > Grzegorz Junka wrote: >> OK, I was hoping that this is similar to creating ping sockets in jail, >> that it needs to be enabled on the host for jail to actually be able to >> execute ping. > Well unfortunately that is not the case, as you see. > >> How would I know that this is not implemented in the linux >> emulation layer rather than disabled on the host? > I would be interested in resource documenting emulated Linux syscall table > (on wiki perhaps) myself, maybe it is buried somewhere in the docs, but I > haven't found it yet. > > Supposedly SmartOS has similar emulator which is much more recent, I wonder > if FreeBSD masters could reuse some stuff from them. Seems Like emu is > not really top priority (as in supporting most recent stuffs) for FreeBSD > project right now. > >> And yes, I have the linux environment enabled and set up in the jail and >> it mostly works fine. But I didn't put it under any stress yet. I will >> see if the dart-sdk package can be somehow compiled without the timer_fd >> options. > Third option, if you have time and willforce, is to ditch jail altogether, and > to try running your CentOS install in bhyve hypervisor. That way you will lose > some cycles in emulation, but as full virtual computer is provided, resulting > CentOS install should work same as in any other VM. > > On the bright side you can then unload Linux emulation kernel modules from host. > > eto > _______________________________________________ > freebsd-jail@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" I was planning to use bhyve but it wants to consume an up-front specified amount of hard drive and memory. I am running the emulation on my laptop with 4GB or RAM and have only limited amount of SSD disk available, so running a jail was much lighter on resources. Grzegorz From owner-freebsd-jail@freebsd.org Wed Sep 7 21:26:54 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A5A5BD065C for ; Wed, 7 Sep 2016 21:26:54 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CA089A49 for ; Wed, 7 Sep 2016 21:26:53 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p57BB8B4A.dip0.t-ipconnect.de [87.187.139.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 5E5DE83E52D; Wed, 7 Sep 2016 23:25:44 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id C64D23688; Wed, 7 Sep 2016 12:47:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1473245237; bh=cz6LmDNX+8lllfIsPETTNFU4B5jOg2oSOqcYGm+6Z/k=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=XF+co3mYB0s411VmtrIBcLzyAhSzDU4XZLJ9XrZfGDo3ZbPKlDOjU1EoOGIugfaLp a2Mx1QLosEFjQ0AgGindzIIqniG3nzeFnQ5jacr2ubT2AUSR+jfG5qqRwGosg8aQhX 2xjf4H6lxA62xxO9F2hXlarITv9wzQDkp+ZkQ7fZ0HtjTPVg7asi8PsmgqDTdzktYr gBbhuha1S+3Siog9KgWKmw2vQw5C5nJtVY8EegM6uSsgiRf/Orb9VT+ozasSY/uB0C PtjApW4Qb5wF/1lqUzEy0dc56Mctglq7ro5nrf4pu7TV9y8hKXC6WLGd25cXZY1QQb PuyGiXATiIaDg== Received: (from www@localhost) by webmail.leidinger.net (8.15.2/8.14.4/Submit) id u87AlHfP040890; Wed, 7 Sep 2016 12:47:17 +0200 (CEST) (envelope-from Alexander@leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@leidinger.net using -f Received: from 217.197.101.97 ([217.197.101.97]) by webmail.leidinger.net (Horde Framework) with HTTPS; Wed, 07 Sep 2016 12:47:17 +0200 Date: Wed, 07 Sep 2016 12:47:17 +0200 Message-ID: <20160907124717.Horde.tvT-rVc7tsg2atFz9NEFFv3@webmail.leidinger.net> From: Alexander Leidinger To: "Martin \"eto\" Misuth" Cc: freebsd-jail@freebsd.org Subject: Re: timerfd in FreeBSD jail? References: <20160906143524.221f4994@mona.office.misuthova.sk> <3fd19a50-fef3-6504-5113-66a2bab0aa81@gjunka.com> <20160906160731.6060d41a@mona.office.misuthova.sk> In-Reply-To: <20160906160731.6060d41a@mona.office.misuthova.sk> User-Agent: Horde Application Framework 5 Content-Type: multipart/signed; boundary="=_ZfpMKRp8KwcBfFE21bIeNES"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 5E5DE83E52D.A8181 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=2.264, required 6, autolearn=disabled, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, FSL_HELO_BARE_IP_2 1.50, RCVD_NUMERIC_HELO 0.86) X-EBL-MailScanner-SpamScore: ss X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1473888379.6734@Apg4z4TC6DiHJ+S14Mmsmg X-EBL-Spam-Status: No X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2016 21:26:54 -0000 This message is in MIME format and has been PGP signed. --=_ZfpMKRp8KwcBfFE21bIeNES Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting "Martin \"eto\" Misuth" (from Tue, 6=20=20 Sep=202016 16:07:31 +0200): > On Tue, 6 Sep 2016 13:19:13 +0000 > Grzegorz Junka wrote: >> How would I know that this is not implemented in the linux >> emulation layer rather than disabled on the host? > I would be interested in resource documenting emulated Linux syscall tabl= e > (on wiki perhaps) myself, maybe it is buried somewhere in the docs, but I > haven't found it yet. What is implemented as a syscall: https://svnweb.freebsd.org/base/head/sys/amd64/linux/syscalls.master?view= =3Dmarkup But this doesn't include the ioctl's. There's also (but not up-to-date): https://wiki.freebsd.org/action/show/linux-kernel?action=3Dshow Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_ZfpMKRp8KwcBfFE21bIeNES Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJXz/A1AAoJEKrxQhqFIICEHgAP/A2Bbw86kygbsFc7um8FM1TL 0E0NyiD02j+4pCh+rq8zMFqzXjiPBQuhM3ME68+E3pa8pbA+0Mxf8eAHLDe1Ur08 I5i6LfL3A+RQN0aCaGD+6h7ewsEdYgMaRy7q2H23eOWWSTU4+3dTqSkRSAbwQOWC 0EB0qFBVXIkk9V005psKXeUDM8hTy39Ym34tsNrzKnZnXcQFuEbg1UVbnTkhtYIH HQlHbo4R04FazzdLEEdCsbs9SYl4hQOGGP49z6w9fGh/+HeH+gxd2Dl68Cb3/hJd x6UP72gnwvy5jUwuRjOMrXSCHYKbp7Ow6ZFGHmvzqFIZglT86oJWdnHIuHHos6sG zq1b3mFPodZbDCsYsnPWFgJYRTqOhaHYsqvyIiLuIILBpGma1f5meilM4f02wiFK EmdksqXIrVPK9USsrPCvy8o3UblK0jBS4GNAzIwsT/0azwRZCBC1S1L07tD4GCUj edQmRy3gjJB8lPBjGV9WOLL3z2jgJfolLSLBzak9nJEiY6uHtUWZPxy7ZzVyRado KRWtyL4N6g+6FjyAHKRvrMQO1nQAUtL626aUAzQvSyEOlP2BqskfLumDTzuRzjZ9 Ohir1mwJdZqvbyHFHa0avEVQV6Tcmy8s6QFfAImCukgPskKh7EAh8hd+GhWLzC5s i9X0DoupZupYzhsJpCTP =2SwK -----END PGP SIGNATURE----- --=_ZfpMKRp8KwcBfFE21bIeNES-- From owner-freebsd-jail@freebsd.org Thu Sep 8 14:00:50 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25B6EBD052B for ; Thu, 8 Sep 2016 14:00:50 +0000 (UTC) (envelope-from eto.freebsd@ethome.sk) Received: from smtpout6.dnsserver.eu (smtpout6.dnsserver.eu [92.240.253.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBF23CB8 for ; Thu, 8 Sep 2016 14:00:49 +0000 (UTC) (envelope-from eto.freebsd@ethome.sk) Received: from [92.240.253.67] (helo=smtp3s109.dnsserver.eu) by smtpout6.dnsserver.eu with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bhzsc-000Lp8-3W for freebsd-jail@freebsd.org; Thu, 08 Sep 2016 16:00:38 +0200 Received: from [80.242.44.220] (helo=mona.office.misuthova.sk) by smtp3s109.dnsserver.eu with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.83 (FreeBSD)) (envelope-from ) id 1bhzsd-0009vs-H0 for freebsd-jail@freebsd.org; Thu, 08 Sep 2016 16:00:39 +0200 Date: Thu, 8 Sep 2016 15:52:49 +0200 From: "Martin \"eto\" Misuth" To: freebsd-jail@freebsd.org Subject: Re: timerfd in FreeBSD jail? Message-ID: <20160908155249.678ac6d5@mona.office.misuthova.sk> In-Reply-To: <20160907124717.Horde.tvT-rVc7tsg2atFz9NEFFv3@webmail.leidinger.net> References: <20160906143524.221f4994@mona.office.misuthova.sk> <3fd19a50-fef3-6504-5113-66a2bab0aa81@gjunka.com> <20160906160731.6060d41a@mona.office.misuthova.sk> <20160907124717.Horde.tvT-rVc7tsg2atFz9NEFFv3@webmail.leidinger.net> Organization: ethome.sk MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 80.242.44.220 X-SA-Exim-Mail-From: eto.freebsd@ethome.sk X-SA-Exim-Scanned: No (on smtp3s109.dnsserver.eu); SAEximRunCond expanded to false X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2016 14:00:50 -0000 On Wed, 07 Sep 2016 12:47:17 +0200 Alexander Leidinger wrote: > What is implemented as a syscall: > https://svnweb.freebsd.org/base/head/sys/amd64/linux/syscalls.master?view=markup Thank you, this is great ! I wonder what function linux_timerfd() does? Is that older timerfd implementation from [1], it doesn't seem to be related to timerfd_create()? [1] https://lwn.net/Articles/251413/ eto