Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/sys/chroot.2
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)chroot.2 8.1 (Berkeley) 6/4/93 | .\" @(#)chroot.2 8.1 (Berkeley) 6/4/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd March 30, 2020 | .Dd June 26, 2020 | ||||
.Dt CHROOT 2 | .Dt CHROOT 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm chroot | .Nm chroot | ||||
.Nd change root directory | .Nd change root directory | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
▲ Show 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | |||||
.El | .El | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr chdir 2 , | .Xr chdir 2 , | ||||
.Xr jail 2 | .Xr jail 2 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
.Fn chroot | .Fn chroot | ||||
system call appeared in | system call appeared in | ||||
.Bx 4.2 . | .At v7 . | ||||
It was marked as | It was marked as | ||||
.Dq legacy | .Dq legacy | ||||
in | in | ||||
.St -susv2 , | .St -susv2 , | ||||
and was removed in subsequent standards. | and was removed in subsequent standards. | ||||
.Sh BUGS | .Sh BUGS | ||||
If the process is able to change its working directory to the target | If the process is able to change its working directory to the target | ||||
directory, but another access control check fails (such as a check for | directory, but another access control check fails (such as a check for | ||||
Show All 16 Lines |