client: New option -r for restricted mode

Redirections and the execute command let the user read and write files
and run programs on the local system.

Restricted mode prevents such access.  This is useful when you want to
grant somebody access to just Empire, but not to the host system's
user account that runs the client.

Signed-off-by: Marisa Giancarla <fstltna@me.com>
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Marisa Giancarla 2013-12-07 16:43:13 +01:00 committed by Markus Armbruster
parent 89b76644b2
commit 0a6eb70b28
4 changed files with 16 additions and 2 deletions

View file

@ -4,7 +4,7 @@ empire \- Empire client
.SH SYNOPSIS
.B empire
[
.B \-hkuv
.B \-hkruv
]
[
.BI \-2 " outfile"
@ -37,6 +37,9 @@ Help. Print brief usage information and exit.
.B \-k
If someone else is connected to your country, kill their connection.
.TP
.B \-r
Restricted mode: disable redirections and execute command.
.TP
.BI \-s " [host:]port"
Specify server \fIhost\fR and \fIport\fR.
.TP