31 lines
840 B
Markdown
31 lines
840 B
Markdown
|
|
# sesearch
|
||
|
|
|
||
|
|
> Search SELinux policy rules.
|
||
|
|
> Part of the `setools` package.
|
||
|
|
> See also: `seinfo`, `semodule`.
|
||
|
|
> More information: <https://manned.org/sesearch>.
|
||
|
|
|
||
|
|
- Search for all allow rules:
|
||
|
|
|
||
|
|
`sesearch --allow`
|
||
|
|
|
||
|
|
- Search for rules related to a specific type:
|
||
|
|
|
||
|
|
`sesearch --allow {{[-t|--target]}} {{type_name}}`
|
||
|
|
|
||
|
|
- Search for rules related to a specific source type:
|
||
|
|
|
||
|
|
`sesearch --allow {{[-s|--source]}} {{source_type}}`
|
||
|
|
|
||
|
|
- Search for rules that allow a specific class and permission:
|
||
|
|
|
||
|
|
`sesearch --allow {{[-c|--class]}} {{class_name}} {{[-p|--perm]}} {{permission}}`
|
||
|
|
|
||
|
|
- Search for rules with a specific target type and class:
|
||
|
|
|
||
|
|
`sesearch --allow {{[-t|--target]}} {{type_name}} {{[-c|--class]}} {{class_name}}`
|
||
|
|
|
||
|
|
- Display more detailed information about matched rules:
|
||
|
|
|
||
|
|
`sesearch --allow {{[-t|--target]}} {{type_name}} {{[-v|--verbose]}}`
|