secon: add short options (#23665)

This commit is contained in:
Managor
2026-08-25 16:22:21 +03:00
committed by GitHub
parent f1da61336b
commit 7b23b46c70
+3 -3
View File
@@ -10,15 +10,15 @@
- Get the current security context of a process:
`secon --pid {{1}}`
`secon {{[-p|--pid]}} {{1}}`
- Get the current security context of a file, resolving all intermediate symlinks:
`secon --file {{path/to/file_or_directory}}`
`secon {{[-f|--file]}} {{path/to/file_or_directory}}`
- Get the current security context of a symlink itself (i.e. do not resolve):
`secon --link {{path/to/symlink}}`
`secon {{[-L|--link]}} {{path/to/symlink}}`
- Parse and explain a context specification: