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)
| Option | Description | Source |
|---|---|---|
--help, -h | shows the usage information for secon | help + man |
--version, -V | shows the current version of secon | help + man |
--prompt, -P | outputs data in a format suitable for a prompt | help + man |
--user, -u | show the user of the security context | help + man |
--role, -r | show the role of the security context | help + man |
--type, -t | show the type of the security context | help + man |
--sensitivity, -s | show the sensitivity level of the security context | help + man |
--clearance, -c | show the clearance level of the security context | help + man |
--mls-range, -m | show the sensitivity level and clearance, as a range, of the security context | help + man |
--raw, -R | outputs the sensitivity level and clearance in an untranslated format. | help + man |
--color, -C | outputs 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-exec | gets the exec context from the current process | help + 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 |
--parent | gets the context from the parent of the current process | help + man |
--parent-exec | gets the exec context from the parent of the current process | help + man |
--parent-fs | gets the fscreate context from the parent of the current process | help + man |
--parent-key | gets the key context from the parent of the current process | help + man |
--pid, -p | -p <arg> Use the context from the specified pid. | help + man |
--pid-exec | gets the exec context from the specified process PID | help + man |
--pid-fs | gets the fscreate context from the specified process PID | help + man |
--pid-key | gets the key context from the specified process PID | help + man |
--file, -f | -f <arg> Use the context from the specified file. | help + man |
--link, -L | gets the context from the specified file FILE (doesn't follow symlinks) | help + man |
Examples (1) from the manual page, untested
secon --pid 1