mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
36 lines
922 B
Plaintext
36 lines
922 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# sesearch
|
|
|
|
> Search SELinux policy rules.
|
|
> Part of the `setools` package.
|
|
> See also: `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]}}`
|