Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2018 23:25:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 233262] security.jail.param.children sysctls don't display correctly
Message-ID:  <bug-233262-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233262

            Bug ID: 233262
           Summary: security.jail.param.children sysctls don't display
                    correctly
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

The children.max jail parameter is supposed to show the maximum number of c=
hild
jails allows by a jail, when using hierarchical jails.  From experiment, th=
is
parameter seems to work, but it's always displayed as 0.  The children.curr=
ent
parameter is supposed to be a read-only sysctl displaying the current numbe=
r of
children.  However it, too, always displays 0.  The jls command can correct=
ly
display these parameters for child jails, but I don't see any way to get th=
em
from within a jail.

Steps to reproduce:

[somers@fbsd12 ~]$ sudo jail -c name=3Dfoo host.hostname=3Dfoo children.max=
=3D99
persist
[somers@fbsd12 ~]$ jls -h jid name children.max children.cur=20=20=20=20
jid name children.max children.cur
7 foo 99 0
[somers@fbsd12 ~]$ sudo jexec foo /bin/sh
# sysctl security.jail.param.children
security.jail.param.children.max: 0
security.jail.param.children.cur: 0
# jail -c name=3Dbar host.hostname=3Dbar persist
# sysctl security.jail.param.children
security.jail.param.children.max: 0
security.jail.param.children.cur: 0
# exit
[somers@fbsd12 ~]$ jls -h jid name children.max children.cur
jid name children.max children.cur
7 foo 99 1
8 foo.bar 0 0

Tested on 12.0-BETA4 and 12.0-CURRENT as of r340301.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233262-227>