2023-02-09 13:17:50 +05:30
|
|
|
.Dd Feb 9, 2023
|
2015-05-16 13:15:35 +05:30
|
|
|
.Dt XBPS-UCHROOT 1
|
2023-02-09 13:17:50 +05:30
|
|
|
.Os
|
2014-04-18 13:15:25 +05:30
|
|
|
.Sh NAME
|
|
|
|
.Nm xbps-uchroot
|
2015-10-30 11:15:26 +05:30
|
|
|
.Nd XBPS utility to chroot and bind mount with Linux namespaces
|
|
|
|
.Sh SYNOPSIS
|
2023-02-09 13:17:50 +05:30
|
|
|
.Nm
|
2014-04-18 13:15:25 +05:30
|
|
|
.Op OPTIONS
|
|
|
|
.Ar CHROOTDIR
|
|
|
|
.Ar COMMAND
|
|
|
|
.Op ARGS
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2020-04-14 23:18:50 +05:30
|
|
|
utility allows users to chroot and automatically bind mount required
|
|
|
|
pseudo-filesystems (/dev, /dev/shm, /proc and /sys) as well as
|
|
|
|
user specified directories in the target
|
2014-04-18 13:15:25 +05:30
|
|
|
.Ar CHROOTDIR
|
|
|
|
to execute
|
|
|
|
.Ar COMMAND .
|
2020-04-14 23:18:50 +05:30
|
|
|
.Pp
|
2014-04-18 13:15:25 +05:30
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility uses by default Linux namespaces to isolate IPC, PIDs and mounts to
|
|
|
|
the calling process. If running in a OpenVZ container, these namespace features
|
|
|
|
are simply disabled.
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width -x
|
2020-04-14 23:18:50 +05:30
|
|
|
.It Fl B Ar src:dest
|
|
|
|
Bind mounts
|
|
|
|
.Ar src
|
|
|
|
into
|
|
|
|
.Ar CHROOTDIR/dest
|
|
|
|
in read-only mode.
|
|
|
|
This option may be specified multiple times.
|
|
|
|
Please note that both
|
|
|
|
.Ar src
|
|
|
|
and
|
|
|
|
.Ar dest
|
|
|
|
must be absolute paths and must exist.
|
2015-05-06 14:54:47 +05:30
|
|
|
.It Fl b Ar src:dest
|
|
|
|
Bind mounts
|
|
|
|
.Ar src
|
|
|
|
into
|
|
|
|
.Ar CHROOTDIR/dest .
|
|
|
|
This option may be specified multiple times.
|
|
|
|
Please note that both
|
|
|
|
.Ar src
|
|
|
|
and
|
|
|
|
.Ar dest
|
|
|
|
must be absolute paths and must exist.
|
2015-03-26 07:45:17 +05:30
|
|
|
.It Fl O
|
2015-04-27 21:20:46 +05:30
|
|
|
Setups a temporary directory and then creates an overlay layer (via overlayfs)
|
|
|
|
with the lowerdir set to CHROOTDIR. Useful to create a temporary tree that does not
|
|
|
|
preserve changes in CHROOTDIR.
|
2015-04-21 00:14:42 +05:30
|
|
|
.It Fl o Ar opts
|
|
|
|
Arguments passed to the tmpfs mount, if the
|
|
|
|
.Fl O
|
2015-04-27 21:20:46 +05:30
|
|
|
and
|
|
|
|
.Fl t
|
|
|
|
options are specified.
|
2015-04-21 00:14:42 +05:30
|
|
|
This expects the same arguments that are accepted as options in tmpfs, as explained in
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr mount 1 .
|
2015-04-27 21:20:46 +05:30
|
|
|
.It Fl t
|
|
|
|
This makes the temporary directory to be mounted in tmpfs, so that everything is stored
|
|
|
|
in RAM. Note that this is only useful if used with the
|
|
|
|
.Fl O
|
|
|
|
option (overlayfs).
|
2019-11-05 21:00:39 +05:30
|
|
|
.It Fl -
|
|
|
|
Stop interpreting following arguments as options.
|
|
|
|
This option is useful if some of
|
|
|
|
.Ar ARGS
|
|
|
|
are options passed to
|
|
|
|
.Ar COMMAND .
|
2014-08-23 12:50:07 +05:30
|
|
|
.El
|
2014-04-18 13:15:25 +05:30
|
|
|
.Sh SECURITY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
executable must be setgid to function properly and shall only be executable by a specific
|
|
|
|
group to avoid security issues (4750).
|
|
|
|
.Sh NOTES
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility uses Linux specific features (namespaces) and it's not meant to be portable to
|
2014-08-23 12:50:07 +05:30
|
|
|
other Operating Systems. The following kernel options must be enabled:
|
|
|
|
.Pp
|
2014-09-30 15:06:08 +05:30
|
|
|
.Bl -tag -width CONFIG_NAMESPACES -compact -offset indent
|
2014-08-23 12:50:07 +05:30
|
|
|
.It Sy CONFIG_NAMESPACES
|
|
|
|
.It Sy CONFIG_IPC_NS
|
|
|
|
.It Sy CONFIG_PID_NS
|
2015-03-26 07:45:17 +05:30
|
|
|
.It Sy CONFIG_UTS_NS
|
|
|
|
.It Sy CONFIG_OVERLAY_FS
|
2014-08-23 12:50:07 +05:30
|
|
|
.El
|
2014-04-18 13:15:25 +05:30
|
|
|
.Sh SEE ALSO
|
2023-02-09 13:17:50 +05:30
|
|
|
.Xr xbps-alternatives 1 ,
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-checkvers 1 ,
|
|
|
|
.Xr xbps-create 1 ,
|
|
|
|
.Xr xbps-dgraph 1 ,
|
xbps-digest(1): new utility that replaces "xbps-uhelper digest".
See the manual page:
XBPS-DIGEST(1) General Commands Manual XBPS-DIGEST(1)
NAME
xbps-digest - XBPS utility to generate message digests
SYNOPSIS
xbps-digest [OPTIONS] [FILE] [FILE+N]
DESCRIPTION
The xbps-digest utility generates message digests for specified FILE or
stdin if unset.
OPTIONS
-m, --mode mode
Sets the message digest mode. Supported: sha256. If unset, defaults
to sha256.
-h, --help
Show the help message.
-V, --version
Show the version information.
SEE ALSO
xbps.d(5), xbps-checkvers(1), xbps-create(1), xbps-dgraph(1),
xbps-fbulk(1), xbps-install(1), xbps-pkgdb(1), xbps-query(1),
xbps-reconfigure(1), xbps-remove(1), xbps-rindex(1), xbps-uchroot(1),
xbps-uunshare(1)
AUTHORS
Juan Romero Pardines <xtraeme@gmail.com>
BUGS
Probably, but I try to make this not happen. Use it under your own
responsibility and enjoy your life.
Report bugs at https://github.com/void-linux/xbps/issues
June 12, 2019
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-12 18:04:58 +05:30
|
|
|
.Xr xbps-digest 1 ,
|
2015-10-28 14:07:09 +05:30
|
|
|
.Xr xbps-fbulk 1 ,
|
2019-06-12 21:27:03 +05:30
|
|
|
.Xr xbps-fetch 1 ,
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-install 1 ,
|
|
|
|
.Xr xbps-pkgdb 1 ,
|
|
|
|
.Xr xbps-query 1 ,
|
|
|
|
.Xr xbps-reconfigure 1 ,
|
|
|
|
.Xr xbps-rindex 1 ,
|
|
|
|
.Xr xbps-uunshare 1 ,
|
|
|
|
.Xr xbps.d 5
|
2014-04-18 13:15:25 +05:30
|
|
|
.Sh AUTHORS
|
2023-02-09 13:17:50 +05:30
|
|
|
.An Juan Romero Pardines Aq Mt xtraeme@gmail.com
|
2014-04-18 13:15:25 +05:30
|
|
|
.Sh BUGS
|
|
|
|
Probably, but I try to make this not happen. Use it under your own
|
2015-10-28 14:33:41 +05:30
|
|
|
responsibility and enjoy your life.
|
2014-04-18 13:15:25 +05:30
|
|
|
.Pp
|
2023-02-09 13:17:50 +05:30
|
|
|
Report bugs at
|
|
|
|
.Lk https://github.com/void-linux/xbps/issues
|