Debian Bug report logs - #806562
freebsd-utils: add jls, jexec support

version graph

Package: freebsd-utils; Maintainer for freebsd-utils is (unknown);

Reported by: Hideki Yamane <henrich@debian.or.jp>

Date: Sat, 28 Nov 2015 22:27:02 UTC

Severity: normal

Tags: patch

Fixed in version freebsd-utils/10.1~svn273304+ds1-1

Done: Steven Chamberlain <steven@pyro.eu.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#806562; Package freebsd-utils. (Sat, 28 Nov 2015 22:27:06 GMT) (full text, mbox, link).


Acknowledgement sent to Hideki Yamane <henrich@debian.or.jp>:
New Bug report received and forwarded. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sat, 28 Nov 2015 22:27:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Hideki Yamane <henrich@debian.or.jp>
To: submit@bugs.debian.org
Subject: freebsd-utils: add jls, jexec support
Date: Sun, 29 Nov 2015 07:25:08 +0900
[Message part 1 (text/plain, inline)]
Package: freebsd-utils
Tags: patch

Hi,

 At Tokyo Debian meeting, SUGIMOTO Norimitsu <dictoss@live.jp> demonstrates
 kFreeBSD and it's interesting. And I heard about it lacks full jail support
 since jls and jexec doesn't be included. So, I made a patch for it :)

 It works, confirmed by Norimitsu as below 

$ sudo dpkg -i freebsd-utils_10.1~svn273304+jail1-1_kfreebsd-amd64.deb

[norimitu@test-kf2]$ sudo jail -J /var/run/jail/1.jid -c jid=1 \
  name=jail1 \
  path=/srv/jail/jail_kf64_1 \
  host.hostname=jail_kf64_1 \
  ip4.addr=192.168.22.61 \
  command=/bin/sh -- -c "/etc/init.d/rc S && /etc/init.d/rc 2"

## exec jls
[norimitu@test-kf2]$ sudo jls
   JID  IP Address      Hostname                      Path
     1  192.168.22.61   jail_kf64_1                   /srv/jail/jail_kf64_1


## exec jexec
[norimitu@test-kf2]$ sudo jexec 1 touch /root/foobar.txt

## check file that was created with jexec
[norimitu@test-kf2]$ sudo ls -l /srv/jail/jail_kf64_1/root
合計 0
-rw-r--r-- 1 root root 0 11月 23 15:52 foobar.txt

## seems ok :)

-- 
Regards,

 Hideki Yamane     henrich @ debian.or.jp/org
 http://wiki.debian.org/HidekiYamane
[freebsd-utils_jail-support.patch (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#806562; Package freebsd-utils. (Tue, 08 Dec 2015 19:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Steven Chamberlain <steven@pyro.eu.org>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Tue, 08 Dec 2015 19:30:03 GMT) (full text, mbox, link).


Message #10 received at 806562@bugs.debian.org (full text, mbox, reply):

From: Steven Chamberlain <steven@pyro.eu.org>
To: Hideki Yamane <henrich@debian.or.jp>, 806562@bugs.debian.org
Subject: Re: Bug#806562: freebsd-utils: add jls, jexec support
Date: Tue, 8 Dec 2015 19:26:26 +0000
[Message part 1 (text/plain, inline)]
Hi,

Hideki Yamane wrote:
>  At Tokyo Debian meeting, SUGIMOTO Norimitsu <dictoss@live.jp> demonstrates
>  kFreeBSD and it's interesting. And I heard about it lacks full jail support
>  since jls and jexec doesn't be included. So, I made a patch for it :)

This is brilliant!  I use kfreebsd jails a lot.  I had to install SSH
inside them all so I could run commands inside of them.  Now I can use
jls/jexec which is much easier.  Thanks!

Uploading this to unstable now.  I will try to include it in the
upcoming jessie-kfreebsd release too.

> [norimitu@test-kf2]$ sudo jail -J /var/run/jail/1.jid -c jid=1 \
>   name=jail1 \
>   path=/srv/jail/jail_kf64_1 \
>   host.hostname=jail_kf64_1 \
>   ip4.addr=192.168.22.61 \
>   command=/bin/sh -- -c "/etc/init.d/rc S && /etc/init.d/rc 2"

Just be careful, that by default, /dev/ inside the jail allows access
to all the host system's disks and other things.  To restrict it, you
must create a devfs ruleset, and apply it in the jail before starting
it, explained here:
https://wiki.debian.org/Debian_GNU/kFreeBSD/Jails#Starting_or_stopping_a_jail

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
[signature.asc (application/pgp-signature, inline)]

Reply sent to Steven Chamberlain <steven@pyro.eu.org>:
You have taken responsibility. (Tue, 08 Dec 2015 22:09:04 GMT) (full text, mbox, link).


Notification sent to Hideki Yamane <henrich@debian.or.jp>:
Bug acknowledged by developer. (Tue, 08 Dec 2015 22:09:04 GMT) (full text, mbox, link).


Message #15 received at 806562-close@bugs.debian.org (full text, mbox, reply):

From: Steven Chamberlain <steven@pyro.eu.org>
To: 806562-close@bugs.debian.org
Subject: Bug#806562: fixed in freebsd-utils 10.1~svn273304+ds1-1
Date: Tue, 08 Dec 2015 22:06:45 +0000
Source: freebsd-utils
Source-Version: 10.1~svn273304+ds1-1

We believe that the bug you reported is fixed in the latest version of
freebsd-utils, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 806562@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steven Chamberlain <steven@pyro.eu.org> (supplier of updated freebsd-utils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 08 Dec 2015 18:52:10 +0000
Source: freebsd-utils
Binary: freebsd-utils freebsd-utils-udeb kldutils kldutils-udeb kbdcontrol kbdcontrol-udeb vidcontrol freebsd-net-tools freebsd-net-tools-udeb freebsd-nfs-server freebsd-nfs-common geom freebsd-ppp devd devd-udeb ktrace pf powerd mkuzip
Architecture: source
Version: 10.1~svn273304+ds1-1
Distribution: unstable
Urgency: medium
Maintainer: GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>
Changed-By: Steven Chamberlain <steven@pyro.eu.org>
Description:
 devd       - device state change monitoring daemon
 devd-udeb  - device state change monitoring daemon (udeb)
 freebsd-net-tools - FreeBSD networking tools
 freebsd-net-tools-udeb - FreeBSD networking tools (udeb)
 freebsd-nfs-common - NFS support files common to client and server
 freebsd-nfs-server - FreeBSD server utilities needed for NFS on GNU/kFreeBSD
 freebsd-ppp - FreeBSD Point-to-Point Protocol (PPP) userland daemon
 freebsd-utils - FreeBSD utilities needed for GNU/kFreeBSD
 freebsd-utils-udeb - FreeBSD utilities needed for GNU/kFreeBSD (udeb)
 geom       - modular disk I/O request transformation framework
 kbdcontrol - command-line tool to change keyboard layout on GNU/kFreeBSD
 kbdcontrol-udeb - command-line tool to change keyboard layout on GNU/kFreeBSD (udeb)
 kldutils   - tools for managing kFreeBSD modules
 kldutils-udeb - tools for managing kFreeBSD modules (udeb)
 ktrace     - A kernel call tracer
 mkuzip     - Disk image compression utility
 pf         - The OpenBSD Packet Filter
 powerd     - System utility for power control and energy saving
 vidcontrol - command-line tool to control the system console on GNU/kFreeBSD
Closes: 806562
Changes:
 freebsd-utils (10.1~svn273304+ds1-1) unstable; urgency=medium
 .
   [ Steven Chamberlain ]
   * Upload to unstable
   * Support +ds source_version suffix in svn_revision
 .
   [ Hideki Yamane ]
   * Add jls(8) and jexec(8) tools for jails administration
     (Closes: #806562)
Checksums-Sha1:
 d57c81b42638425c112eefbda5e061f2a0309681 3481 freebsd-utils_10.1~svn273304+ds1-1.dsc
 b9347f2321035bd7498385d6aef53a8a97816419 2167329 freebsd-utils_10.1~svn273304+ds1.orig.tar.gz
 f95349b4bbc39127e55b075f4401cfb5802a4733 74392 freebsd-utils_10.1~svn273304+ds1-1.debian.tar.xz
Checksums-Sha256:
 7161ed98d27a0b0479e497f68e3d6429e6a2b362685fa7c6cce1584c6490c24d 3481 freebsd-utils_10.1~svn273304+ds1-1.dsc
 d6c1149296becc9f12c1969f41ee3690ee4d568a7609415d1b7ca055c1f41ab9 2167329 freebsd-utils_10.1~svn273304+ds1.orig.tar.gz
 6989f17db7ff28c4c9b473283c5d78b60bad20e653992ebb772e053fde798de5 74392 freebsd-utils_10.1~svn273304+ds1-1.debian.tar.xz
Files:
 a43c52bea95e2d42409932c14ddf17dc 3481 utils important freebsd-utils_10.1~svn273304+ds1-1.dsc
 90fe4854ee724f63e73fead8ecc70664 2167329 utils important freebsd-utils_10.1~svn273304+ds1.orig.tar.gz
 fe90f6bcb5235e8a0f2b716da7c21d56 74392 utils important freebsd-utils_10.1~svn273304+ds1-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWZyxHAAoJELrpzbaMAu5TRtMH/iHRKiiKQHiGHkPUN2lZOws2
OpFxT7NuI6u+ETUI6TJGfJb0V5K2DtvH/lG7nZAJNGt52ztB/00mSuF7Fpp0g97e
jEVZKzYQhnqDqJOoxzujpCexd+pP3U7SVF+vWk3dx5D6yFwwzhwO1S2YfzpBXFSM
0FN8TeAwJ7AxTegEp+oHq/bkv6WZRN/S2Pcv3930DPjgViGYgXpwFDAbchkDodgg
zB0+LBcyIwQ4gTm2N8FCcY5OO5wxLG5c8NuR96jHts04hpxzQnVbWhv0IOcjCODR
28yuGCoFc2O6oeFdz3HOK3Y06Twv/xM9evr7LA/nnOJ166w27d1gZBY+o4MRc1M=
=guMj
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 07 Jan 2016 07:36:05 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Jun 5 03:24:21 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.