Skip to content

Commit 1666b22

Browse files
tweksteendburgener
authored andcommitted
Add note about symlinks near the genfscon description
Add a reference to genfs_secabel_symlinks to clarify that this capability must be enabled to label symlinks. Signed-off-by: Thiébaud Weksteen <tweek@google.com> Signed-off-by: Daniel Burgener <Daniel.Burgener@microsoft.com>
1 parent 9888b84 commit 1666b22

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/file_labeling_statements.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ directories on that filesystem. File entries can be, if supported by the
189189
underlying filesystem, labeled with a specific security context (as shown in
190190
the examples), which is useful for pseudo filesystems exporting kernel state
191191
(e.g. *proc*, *sysfs*, *cgroup2*, *securityfs*, *selinuxfs*).
192+
193+
By default, symbolic links (*lnk\_file*) will *not* be labelled according to
194+
these statements. The policy capability *genfs\_seclabel\_symlinks* can be
195+
enabled if labelling of symbolic links is required.
196+
192197
Note that there is no terminating semi-colon on this statement.
193198

194199
**The statement definition is:**

0 commit comments

Comments
 (0)