Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runcon: move help strings to markdown file #4774

Merged
merged 3 commits into from
Apr 24, 2023

Conversation

m11o
Copy link
Contributor

@m11o m11o commented Apr 23, 2023

runcon --help outputs follow.

$ ./target/debug/runcon --help
Run command with specified security context.

Usage: ./target/debug/runcon [CONTEXT COMMAND [ARG...]]
       ./target/debug/runcon [-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [ARG...]";

Arguments:
  [ARG]...  

Options:
  -c, --compute        Compute process transition context before modifying.
  -u, --user <USER>    Set user USER in the target security context.
  -r, --role <ROLE>    Set role ROLE in the target security context.
  -t, --type <TYPE>    Set type TYPE in the target security context.
  -l, --range <RANGE>  Set range RANGE in the target security context.
  -h, --help           Print help
  -V, --version        Print version

Run COMMAND with completely-specified CONTEXT, or with current or transitioned security context modified by one or more
of LEVEL, ROLE, TYPE, and USER.

If none of --compute, --type, --user, --role or --range is specified, then the first argument is used as the complete
context.

Note that only carefully-chosen contexts are likely to successfully run.

With neither CONTEXT nor COMMAND are specified, then this prints the current security context.

src/uu/runcon/runcon.md Outdated Show resolved Hide resolved
Co-authored-by: Sylvestre Ledru <[email protected]>
@m11o m11o requested a review from sylvestre April 24, 2023 04:30
@sylvestre sylvestre merged commit d18ccc6 into uutils:main Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants