2011-08-15 17:56:02 +00:00
.TH SEUNSHARE "8" "May 2010" "seunshare" "User Commands"
.SH NAME
seunshare \- Run cmd with alternate homedir, tmpdir and/or SELinux context
.SH SYNOPSIS
.B seunshare
2014-05-12 17:19:20 +00:00
[ -v ] [ -C ] [ -k ] [ -t tmpdir ] [ -h homedir ] [ -Z context ] -- executable [args]
2011-08-15 17:56:02 +00:00
.br
.SH DESCRIPTION
.PP
Run the
.I executable
2023-06-01 14:39:13 +00:00
within the specified context, using custom home directory and /tmp directory. The seunshare command unshares from the default namespace, then mounts the specified homedir and tmpdir over the default homedir and /tmp. Finally it tells the kernel to execute the application under the specified SELinux context.
2011-08-15 17:56:02 +00:00
.TP
\fB \- h homedir\fR
2023-06-01 14:39:13 +00:00
Alternate homedir to be used by the application. Homedir must be owned by the user
2011-08-15 17:56:02 +00:00
.TP
\fB \- t\ tmpdir
2023-06-01 14:39:13 +00:00
Use alternate temporary directory to mount on /tmp. tmpdir must be owned by the user
2011-08-15 17:56:02 +00:00
.TP
2022-10-13 13:23:12 +00:00
\fB \- r\ runuserdir
2023-06-01 14:39:13 +00:00
Use alternate temporary directory to mount on XDG_RUNTIME_DIR (/run/user/$UID). runuserdir must be owned by the user
2022-10-13 13:23:12 +00:00
.TP
2011-06-13 17:24:38 +00:00
\fB \- C --capabilities\fR
2023-06-01 14:39:13 +00:00
Allow apps executed within the namespace to use capabilities. Default is no capabilities
2011-06-13 17:24:38 +00:00
.TP
2011-07-07 00:22:26 +00:00
\fB \- k --kill\fR
2023-06-01 14:39:13 +00:00
Kill all processes with matching MCS level
2011-07-07 00:22:26 +00:00
.TP
2011-08-15 17:56:02 +00:00
\fB \- Z\ context
2023-06-01 14:39:13 +00:00
Use alternate SELinux context while running the executable
2011-08-15 17:56:02 +00:00
.TP
\fB \- v\fR
Verbose output
2023-06-01 14:39:13 +00:00
.SH EXAMPLE
.nf
Run bash with temporary /home and /tmp directory
# USERHOMEDIR=`mktemp -d /tmp/home.XXXXXX`; USERTEMPDIR=`mktemp -d /tmp/temp.XXXXXX`
# seunshare -v -h ${USERHOMEDIR} -t ${USERTEMPDIR} -- /bin/bash
2011-08-15 17:56:02 +00:00
.SH "SEE ALSO"
.TP
runcon(1), sandbox(8), selinux(8)
.PP
.SH AUTHOR
This manual page was written by
.I Dan Walsh <dwalsh@redhat.com>
and
.I Thomas Liu <tliu@fedoraproject.org>