mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-14 10:59:45 +00:00
Update cheatsheets
This commit is contained in:
35
tldr/linux/sesearch
Normal file
35
tldr/linux/sesearch
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
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: `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]}}`
|
||||
Reference in New Issue
Block a user