OS Manuals

/usr/bin/secon

SELinux policy core utilities

From policycoreutils 3.11-r3 (enterprise-packages), captured 2026-11-08 by running secon --help (exit 0). permalink

  Usage: secon [-hVurtscmPRCfLp] [ context | - ]
          --help          -h            Show this message.
          --version       -V            Show the version.
          --prompt        -P            Output in a format good for a prompt.
          --user          -u            Show the user of the context.
          --role          -r            Show the role of the context.
          --type          -t            Show the type of the context.
          --sensitivity   -s            Show the sensitivity level of the context.
          --clearance     -c            Show the clearance level of the context.
          --mls-range     -m            Show the sensitivity to clearance range of
                                        the context.
          --raw           -R            Show the context in "raw" format.
          --color         -C            Output using ANSI color codes (requires -P).
          --current,      --self        Get the context for the current process.
          --current-exec, --self-exec   Get the exec context for the current process.
          --current-fs,   --self-fs     Get the fs context for the current process.
          --current-key,  --self-key    Get the key context for the current process.
          --parent                      Get the context for the parent process.
          --parent-exec                 Get the exec context for the parent process.
          --parent-fs                   Get the fs context for the parent process.
          --parent-key                  Get the key context for the parent process.
          --pid           -p <arg>      Use the context from the specified pid.
          --pid-exec      <arg>         Use the exec context from the specified pid.
          --pid-fs        <arg>         Use the fs context from the specified pid.
          --pid-key       <arg>         Use the key context from the specified pid.
          --file          -f <arg>      Use the context from the specified file.
          --link          -L <arg>      Use the context from the specified link.
Options (25)
OptionDescriptionSource
--help, -hshows the usage information for seconhelp + man
--version, -Vshows the current version of seconhelp + man
--prompt, -Poutputs data in a format suitable for a prompthelp + man
--user, -ushow the user of the security contexthelp + man
--role, -rshow the role of the security contexthelp + man
--type, -tshow the type of the security contexthelp + man
--sensitivity, -sshow the sensitivity level of the security contexthelp + man
--clearance, -cshow the clearance level of the security contexthelp + man
--mls-range, -mshow the sensitivity level and clearance, as a range, of the security contexthelp + man
--raw, -Routputs the sensitivity level and clearance in an untranslated format.help + man
--color, -Coutputs data with the associated ANSI color codes (requires -P)help + man
--current, --self--self Get the context for the current process.help + man
--current-exec, --self-execgets the exec context from the current processhelp + man
--current-fs, --self-fs--self-fs Get the fs context for the current process.help + man
--current-key, --self-key--self-key Get the key context for the current process.help + man
--parentgets the context from the parent of the current processhelp + man
--parent-execgets the exec context from the parent of the current processhelp + man
--parent-fsgets the fscreate context from the parent of the current processhelp + man
--parent-keygets the key context from the parent of the current processhelp + man
--pid, -p-p <arg> Use the context from the specified pid.help + man
--pid-execgets the exec context from the specified process PIDhelp + man
--pid-fsgets the fscreate context from the specified process PIDhelp + man
--pid-keygets the key context from the specified process PIDhelp + man
--file, -f-f <arg> Use the context from the specified file.help + man
--link, -Lgets the context from the specified file FILE (doesn't follow symlinks)help + man
Examples (1) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.