Added missing descriptions for --*-key params in secon man page.

Fixed secon help, merged descriptions for --current-* and --self-*
params.

Signed-off-by: Lukas Vrabec <lvrabec@redhat.com>
This commit is contained in:
Lukas Vrabec 2016-01-11 10:30:41 +01:00 committed by Steve Lawrence
parent dd7a9363d9
commit 0fc39ca4f7
2 changed files with 35 additions and 27 deletions

View File

@ -69,6 +69,9 @@ gets the exec context from the specified process PID
\fB\-\-pid\-fs\fR \fB\-\-pid\-fs\fR
gets the fscreate context from the specified process PID gets the fscreate context from the specified process PID
.TP .TP
\fB\-\-pid\-key\fR
gets the key context from the specified process PID
.TP
\fB\-\-current\fR, \fB\-\-self\fR \fB\-\-current\fR, \fB\-\-self\fR
gets the context from the current process gets the context from the current process
.TP .TP
@ -78,6 +81,9 @@ gets the exec context from the current process
\fB\-\-current\-fs\fR, \fB\-\-self\-fs\fR \fB\-\-current\-fs\fR, \fB\-\-self\-fs\fR
gets the fscreate context from the current process gets the fscreate context from the current process
.TP .TP
\fB\-\-current\-key\fR, \fB\-\-self\-key\fR
gets the key context from the current process
.TP
\fB\-\-parent\fR \fB\-\-parent\fR
gets the context from the parent of the current process gets the context from the parent of the current process
.TP .TP
@ -86,6 +92,9 @@ gets the exec context from the parent of the current process
.TP .TP
\fB\-\-parent\-fs\fR \fB\-\-parent\-fs\fR
gets the fscreate context from the parent of the current process gets the fscreate context from the parent of the current process
.TP
\fB\-\-parent\-key\fR
gets the key context from the parent of the current process
.PP .PP
Additional argument Additional argument
.I CONTEXT .I CONTEXT

View File

@ -77,33 +77,32 @@ static void usage(const char *name, int exit_code)
{ {
fprintf(exit_code ? stderr : stdout, fprintf(exit_code ? stderr : stdout,
" Usage: %s [-%s] [ context | - ]\n" " Usage: %s [-%s] [ context | - ]\n"
" --help -h Show this message.\n" " --help -h Show this message.\n"
" --version -V Show the version.\n" " --version -V Show the version.\n"
" --prompt -P Output in a format good for a prompt.\n" " --prompt -P Output in a format good for a prompt.\n"
" --user -u Show the user of the context.\n" " --user -u Show the user of the context.\n"
" --role -r Show the role of the context.\n" " --role -r Show the role of the context.\n"
" --type -t Show the type of the context.\n" " --type -t Show the type of the context.\n"
" --sensitivity -s Show the sensitivity level of the context.\n" " --sensitivity -s Show the sensitivity level of the context.\n"
" --clearance -c Show the clearance level of the context.\n" " --clearance -c Show the clearance level of the context.\n"
" --mls-range -m Show the sensitivity to clearance range of \n" " --mls-range -m Show the sensitivity to clearance range of \n"
" the context.\n" " the context.\n"
" --raw -R Show the context in \"raw\" format.\n" " --raw -R Show the context in \"raw\" format.\n"
" --color -C Output using ANSI color codes (requires -P).\n" " --color -C Output using ANSI color codes (requires -P).\n"
" --current Get the context for the current process.\n" " --current, --self Get the context for the current process.\n"
" --self Get the context for the current process.\n" " --current-exec, --self-exec Get the exec context for the current process.\n"
" --self-exec Get the exec context for the current process.\n" " --current-fs, --self-fs Get the fs context for the current process.\n"
" --self-fs Get the fs context for the current process.\n" " --current-key, --self-key Get the key context for the current process.\n"
" --self-key Get the key context for the current process.\n" " --parent Get the context for the parent process.\n"
" --parent Get the context for the parent process.\n" " --parent-exec Get the exec context for the parent process.\n"
" --parent-exec Get the exec context for the parent process.\n" " --parent-fs Get the fs context for the parent process.\n"
" --parent-fs Get the fs context for the parent process.\n" " --parent-key Get the key context for the parent process.\n"
" --parent-key Get the key context for the parent process.\n" " --pid -p <arg> Use the context from the specified pid.\n"
" --pid -p <arg> Use the context from the specified pid.\n" " --pid-exec <arg> Use the exec context from the specified pid.\n"
" --pid-exec <arg> Use the exec context from the specified pid.\n" " --pid-fs <arg> Use the fs context from the specified pid.\n"
" --pid-fs <arg> Use the fs context from the specified pid.\n" " --pid-key <arg> Use the key context from the specified pid.\n"
" --pid-key <arg> Use the key context from the specified pid.\n" " --file -f <arg> Use the context from the specified file.\n"
" --file -f <arg> Use the context from the specified file.\n" " --link -L <arg> Use the context from the specified link.\n",
" --link -L <arg> Use the context from the specified link.\n",
name, SECON_OPTS_SM); name, SECON_OPTS_SM);
exit(exit_code); exit(exit_code);