Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   matchpathcon    ( 8 )

получить контекст безопасности SELinux по умолчанию для указанного пути из конфигурации контекстов файлов (get the default SELinux security context for the specified path from the file contexts configuration)

Имя (Name)

matchpathcon - get the default SELinux security context for the specified path from the file contexts configuration


Синопсис (Synopsis)

matchpathcon [-V] [-N] [-n] [-m type] [-f file_contexts_file] [-p prefix] [-P policy_root_path] filepath...


Описание (Description)

matchpathcon queries the system policy and outputs the default security context associated with the filepath.

Note: Identical paths can have different security contexts, depending on the file type (regular file, directory, link file, char file ...).

matchpathcon will also take the file type into consideration in determining the default security context if the file exists. If the file does not exist, no file type matching will occur.


Параметры (Options)

-m type
              Force file type for the lookup.  Valid types are file,
              dir, pipe, chr_file, blk_file, lnk_file, sock_file.

-n Do not display path.

-N Do not use translations.

-f file_context_file Use alternate file_context file

-p prefix Use prefix to speed translations

-P policy_root_path Use alternate policy root path

-V Verify file context on disk matches defaults