2015-10-28 14:07:09 +05:30
|
|
|
.Dd October 28, 2015
|
2015-05-16 13:15:35 +05:30
|
|
|
.Dt XBPS-UUNSHARE 1
|
2015-03-05 23:14:20 +05:30
|
|
|
.Sh NAME
|
|
|
|
.Nm xbps-uunshare
|
|
|
|
.Nd XBPS utility to chroot and bind mount with linux user namespaces
|
|
|
|
.Sh SYNOPSYS
|
|
|
|
.Nm xbps-uunshare
|
|
|
|
.Op OPTIONS
|
|
|
|
.Ar CHROOTDIR
|
|
|
|
.Ar COMMAND
|
|
|
|
.Op ARGS
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility allows users to chroot and bind mount required pseudo-filesystems
|
|
|
|
(/dev, /proc and /sys) in the target
|
|
|
|
.Ar CHROOTDIR
|
|
|
|
to execute
|
|
|
|
.Ar COMMAND .
|
2015-05-06 15:10:19 +05:30
|
|
|
.Pp
|
2015-03-05 23:14:20 +05:30
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility uses by default Linux namespaces to isolate IPC, PIDs and mounts to
|
|
|
|
the calling process. Thanks to
|
|
|
|
.Xr user_namespaces 7
|
|
|
|
the user does not need any privilege to create an isolated lightweight container.
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width -x
|
2015-05-06 15:10:19 +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-05 23:14:20 +05:30
|
|
|
.El
|
|
|
|
.Sh NOTES
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility uses Linux specific features (namespaces) and it's not meant to be portable to
|
|
|
|
other Operating Systems. The following kernel options must be enabled:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width CONFIG_NAMESPACES -compact -offset indent
|
|
|
|
.It Sy CONFIG_NAMESPACES
|
|
|
|
.It Sy CONFIG_IPC_NS
|
|
|
|
.It Sy CONFIG_USER_NS
|
2015-04-13 19:41:54 +05:30
|
|
|
.It Sy CONFIG_UTS_NS
|
2015-03-05 23:14:20 +05:30
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-checkvers 1 ,
|
|
|
|
.Xr xbps-create 1 ,
|
|
|
|
.Xr xbps-dgraph 1 ,
|
2015-10-28 14:07:09 +05:30
|
|
|
.Xr xbps-fbulk 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-uchroot 1 ,
|
|
|
|
.Xr xbps.d 5
|
2015-03-05 23:14:20 +05:30
|
|
|
.Sh AUTHORS
|
|
|
|
.An Juan Romero Pardines <xtraeme@gmail.com>
|
|
|
|
.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.
|
2015-03-05 23:14:20 +05:30
|
|
|
.Pp
|
|
|
|
Report bugs in https://github.com/voidlinux/xbps/issues
|