]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r298565:
authorjamie <jamie@FreeBSD.org>
Sat, 30 Apr 2016 03:19:07 +0000 (03:19 +0000)
committerjamie <jamie@FreeBSD.org>
Sat, 30 Apr 2016 03:19:07 +0000 (03:19 +0000)
commit0621c28d20a2e195bbf63594bb3b732d498fe738
tree10511ddea0a943379bbc66e00e5c9e4aa4af930f
parent5a2943388bb3676f2c36fcbe57a4c43a8d2ff753
MFC r298565:

  Add a new jail OSD method, PR_METHOD_REMOVE.  It's called when a jail is
  removed from the user perspective, i.e. when the last pr_uref goes away,
  even though the jail mail still exist in the dying state.  It will also
  be called if either PR_METHOD_CREATE or PR_METHOD_SET fail.

MFC r298683:

  Delay removing the last jail reference in prison_proc_free, and instead
  put it off into the pr_task.  This is similar to prison_free, and in fact
  uses the same task even though they do something slightly different.

MFC r298566:

  Pass the current/new jail to PR_METHOD_CHECK, which pushes the call
  until after the jail is found or created.  This requires unlocking the
  jail for the call and re-locking it afterward, but that works because
  nothing in the jail has been changed yet, and other processes won't
  change the important fields as long as allprison_lock remains held.

  Keep better track of name vs namelc in kern_jail_set.  Name should
  always be the hierarchical name (relative to the caller), and namelc
  the last component.

MFC r298668:

  Use crcopysafe in jail_attach.

PR: 48471
sys/kern/kern_jail.c
sys/sys/jail.h