devel/py-freebsd and deprecation of jail(2)

James Gritton jamie at freebsd.org
Thu Aug 16 20:39:06 UTC 2018


Hello,

I'd like to have jsil(2) moved to COMPAT_FREEBSD11 for the release of 
12.0, which means that userspace utilities will need to be moved off of 
jail(2) and onto jail_set(2).

In the case of py-freebsd, the PyFB_jail function uses the old jail(2) 
interface.  It's simple enough to change that to use jail_setv(3) 
instead, and add libjail.  Perhaps it would be better to add a new 
function for a more complete interface to jail_set(2), but that's beyond 
the scope of just making sure the program doesn't stop working.  
Considering it uses Python 2.7, I don't know if there's much interest in 
updating its functionality.

I'm including an updated version of patch-src-jail.c, as well as a new 
patch-src-.libraries.def - but I don't know how to make the later patch 
actually get used; so all I can say right now is this ought to work if I 
knew how to get the patches right.

Thanks,
  Jamie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-src-.libraries.def
Type: text/x-diff
Size: 197 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20180816/4feffe1a/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-src-jail.c
Type: text/x-diff
Size: 1044 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20180816/4feffe1a/attachment-0001.diff>


More information about the freebsd-python mailing list