1RUNCON(1)                        User Commands                       RUNCON(1)
2
3
4

NAME

6       runcon - run command with specified security context
7

SYNOPSIS

9       runcon CONTEXT COMMAND [args]
10       runcon [ -c ] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]
11

DESCRIPTION

13       Run COMMAND with completely-specified CONTEXT, or with current or tran‐
14       sitioned security context modified by one or more of LEVEL, ROLE, TYPE,
15       and USER.
16
17       If  none  of -c, -t, -u, -r, or -l, is specified, the first argument is
18       used as the complete context.  Any additional arguments  after  COMMAND
19       are interpreted as arguments to the command.
20
21       Note  that  only  carefully-chosen  contexts are likely to successfully
22       run.
23
24       Run a program in a different SELinux security  context.   With  neither
25       CONTEXT nor COMMAND, print the current security context.
26
27       Mandatory  arguments  to  long  options are mandatory for short options
28       too.
29
30       CONTEXT
31              Complete security context
32
33       -c, --compute
34              compute process transition context before modifying
35
36       -t, --type=TYPE
37              type (for same role as parent)
38
39       -u, --user=USER
40              user identity
41
42       -r, --role=ROLE
43              role
44
45       -l, --range=RANGE
46              levelrange
47
48       --help display this help and exit
49
50       --version
51              output version information and exit
52
53   Exit status:
54       125    if the runcon command itself fails
55
56       126    if COMMAND is found but cannot be invoked
57
58       127    if COMMAND cannot be found
59
60       -      the exit status of COMMAND otherwise
61

AUTHOR

63       Written by Russell Coker.
64

REPORTING BUGS

66       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
67       Report any translation bugs to <https://translationproject.org/team/>
68
70       Copyright © 2023 Free Software Foundation, Inc.   License  GPLv3+:  GNU
71       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
72       This  is  free  software:  you  are free to change and redistribute it.
73       There is NO WARRANTY, to the extent permitted by law.
74

SEE ALSO

76       Full documentation <https://www.gnu.org/software/coreutils/runcon>
77       or available locally via: info '(coreutils) runcon invocation'
78
79
80
81GNU coreutils 9.3               September 2023                       RUNCON(1)
Impressum