WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 3a4688a

Browse files
committed
semanage-fcontext: add example for path equivalence
1 parent a488f44 commit 3a4688a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pages/linux/semanage-fcontext.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

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

19+
- Add a user-defined rule that creates a labeling equivalence between two subpaths:
20+
21+
`sudo semanage fcontext {{[-a|--add]}} {{[-e|--equal]}} {{path/to/ref}} {{path/to/target}}`
22+
1923
- Delete a user-defined rule using its PCRE `regex`:
2024

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

0 commit comments

Comments
 (0)