1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), Märzch 28, 1992
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Modified by Michael Haardt <u31b3hs@pool.informatik.rwth-aachen.de>
26 .\" Modified Wed Juli 21 22:18:17 1993 by Rik Faith <faith@cs.unc.edu>
27 .\" Modified 21 August 1994 by Michael Chastain <mec@shell.portal.com>
29 .\" Modified 13 Juni 1996 by aeb - Added a warning: . may be outside / tree.
30 .\" Modified Wed November 6 03:50:45 1996 by Eric S. Raymond <esr@thyrsus.com>
31 .\" Modified by Joseph S. Myers <jsm28@cam.ac.uk>, 970821
33 .\" Translated into German by Ralf Demmer, Translation & Consulting
34 .\" rdemmer@rdemmer.de, http://www.rdemmer.de
37 .TH CHROOT 2 "20. April 1999" "Linux 2.0.30" "Systemaufrufe"
39 chroot \- Root-Verzeichnis wechseln
41 .B #include <unistd.h>
43 .BI int chroot(const char * path );
48 angegebenen Root-Verzeichnis.
49 Dieses Verzeichnis wird für Pfadnamen verwendet, die mit / beginnen.
50 Das Root-Verzeichnis wird an alle Child-Prozesse des aktuellen Prozesses
53 Nur der Super-User kann das Root-Verzeichnis ändern.
55 Beachten Sie, dass dieser Aufruf keine Auswirkung auf das aktuelle
56 Arbeitsverzeichnis hat, d.h. `.' kann sich außerhalb des mit `/' beginnenden
59 Bei Erfolg wird 0 zurückgegeben. Tritt ein Fehler auf, ist der Rückgabewert \-1
62 wird entsprechend gesetzt.
64 In Abhängigkeit vom Dateisystem können andere Fehlerwerte zurückgegeben werden.
65 Die verbreitetsten Fehler sind hier aufgelistet:
69 Die tatsächliche UID ist nicht Null.
73 befindet sich außerhalb Ihres verfügbaren Adressbereichs.
80 Die Datei existiert nicht.
83 Zu wenig Kernelspeicher verfügbar.
88 ist kein gültiges Verzeichnis.
91 Die Sucherlaubnis auf einen Teil des path-Prefix wurde verweigert.
94 Es wurden zu viele symbolische Links bei der Auflösung des
99 Es ist ein E/A-Fehler (engl. I/O) aufgetreten.
101 SVr4, SVID, 4.4BSD, X/OPEN. Diese Funktion ist kein Bestandteil der
102 POSIX.1-Spezifikation.
103 SVr4 dokumentiert zusätzlich die Fehlerbedingungen EINTR, ENOLINK und EMULTIHOP.
104 X/OPEN dokumentiert die Fehlerbedingungen EIO, ENOMEM oder EFAULT nicht.
105 Diese Schnittstelle ist durch X/OPEN als Legacy vermerkt.