Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pages.ko/linux/semanage-fcontext.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@

- 사용자 정의 파일 레이블링 규칙을 헤더 없이 나열:

`sudo semanage fcontext {{[-l|--list]}} {{[-C|--locallist]}} {{[-n|--noheading]}}`
`sudo semanage fcontext {{[-lCn|--list --locallist --noheading]}}`

- PCRE 정규표현식과 일치하는 경로에 레이블을 지정하는 사용자 정의 규칙 추가:

`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} {{'/mnt/share(/.*)?'}}`
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} '{{/mnt/share(/.*)?}}'`

- PCRE 정규표현식을 사용하여 사용자 정의 규칙 삭제:

`sudo semanage fcontext {{[-d|--delete]}} {{'/mnt/share(/.*)?'}}`
`sudo semanage fcontext {{[-d|--delete]}} '{{/mnt/share(/.*)?}}'`

- 새로운 규칙을 적용하여 폴더를 재귀적으로 다시 레이블링:

`restorecon -R -v {{경로/대상/폴더}}`
`restorecon -Rv {{경로/대상/폴더}}`
4 changes: 2 additions & 2 deletions pages.nl/linux/semanage-fcontext.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

- Toon alle door de gebruiker gedefinieerde bestandslabelregels zonder koppen:

`sudo semanage fcontext {{[-l|--list]}} {{[-C|--locallist]}} {{[-n|--noheading]}}`
`sudo semanage fcontext {{[-lCn|--list --locallist --noheading]}}`

- Voeg een door de gebruiker gedefinieerde regel toe die elk pad labelt dat overeenkomt met een PCRE-regex:

Expand All @@ -22,4 +22,4 @@

- Herlabel een map recursief door de nieuwe regels toe te passen:

`restorecon -R -v {{pad/naar/map}}`
`restorecon -Rv {{pad/naar/map}}`
4 changes: 2 additions & 2 deletions pages/linux/semanage-fcontext.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# semanage fcontext

> Manage persistent SELinux security context rules on files/directories.
> See also: `semanage`, `matchpathcon`, `secon`, `chcon`, `restorecon`.

Check failure on line 4 in pages/linux/semanage-fcontext.md

View workflow job for this annotation

GitHub Actions / build

secon ==> second
> More information: <https://manned.org/semanage-fcontext>.

- List all file labelling rules:
Expand All @@ -10,7 +10,7 @@

- List all user-defined file labelling rules without headings:

`sudo semanage fcontext {{[-l|--list]}} {{[-C|--locallist]}} {{[-n|--noheading]}}`
`sudo semanage fcontext {{[-lCn|--list --locallist --noheading]}}`

- Add a user-defined rule that labels any path which matches a PCRE `regex`:

Expand All @@ -22,4 +22,4 @@

- Relabel a directory recursively by applying the new rules:

`restorecon -R -v {{path/to/directory}}`
`restorecon -Rv {{path/to/directory}}`