Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2017 16:49:26 +0300
From:      KOT MATPOCKuH <matpockuh@gmail.com>
To:        Kristof Provost <kristof@sigsegv.be>
Cc:        =?UTF-8?B?R29yYW4gTWVracSH?= <meka@tilda.center>,  Oleg Ginzburg <olevole@olevole.ru>, FreeBSD Current <freebsd-current@freebsd.org>, freebsd-jail@freebsd.org
Subject:   Re: VNET jail and dhclient
Message-ID:  <CALmdT0Vrs9A3OrLzjN3vA4%2B1ohcOZBwr1LBStAkiqfuYmMyowQ@mail.gmail.com>
In-Reply-To: <02259035-2DA5-49CF-AEC0-15CC123E9FD4@sigsegv.be>
References:  <20171009072547.jauim6tlfennydf5@hal9000.meka.no-ip.org> <6D37D4AC-9DF4-4D55-8614-43CFC6BDD45E@sigsegv.be> <CAMsb%2BmaactJTDcK=j%2BawqkXB6YitQ_dQTp9vvs=a%2BTFjrQTA7w@mail.gmail.com> <20171011192826.xkscmrovch3g7gni@thinker.meka.no-ip.org> <CALmdT0Vpw8X59f63F-hOd2x9mAdRkcEqs=_t5gBgOS7KmMCtuw@mail.gmail.com> <02259035-2DA5-49CF-AEC0-15CC123E9FD4@sigsegv.be>

next in thread | previous in thread | raw e-mail | index | archive | help
dhclient called very simple:
jail# dhclient epair71b.71
chroot
exiting.
jail# echo $?
1

I'm running 12.0-CURRENT r325051 and:
# sysctl kern.chroot_allow_open_directories
kern.chroot_allow_open_directories: 1

And I found some another workaround:
# dhclient -p /var/empty/pid epair71b.71
Cannot open or create pidfile: Operation not permitted
DHCPDISCOVER on epair71b.71 to 255.255.255.255 port 67 interval 6

2017-11-16 16:07 GMT+03:00 Kristof Provost <kristof@sigsegv.be>:

> On 16 Nov 2017, at 14:04, KOT MATPOCKuH wrote:
>
> Hello, all!
>
> I'm got same problem...
>
> Can you show how you call dhclient? What FreeBSD version are you running?
>
> What=E2=80=99s the output of sysctl kern.chroot_allow_open_directories?
>
> Regards,
> Kristof
>



--=20
MATPOCKuH



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALmdT0Vrs9A3OrLzjN3vA4%2B1ohcOZBwr1LBStAkiqfuYmMyowQ>