Skip to contentSkip to conversation

lsm_selinux: document genfs_seclabel_symlinks policy capability

PATCH Superseded Dominick Grift 3 participants 5 messages Jul 20, 2020 – Jul 23, 2020 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lsm_selinux: document genfs_seclabel_symlinks policy capability

This was added with Linux 5.7 and SELinux 3.1

---
 src/lsm_selinux.md | 5 +++++
 1 file changed, 5 insertions(+)
src/lsm_selinux.md +5 -0
index a400c36..8e6f3ad 100644
@@ -676,6 +676,11 @@ interface, it is not recommended - use the **libselinux** or **libsepol** librar
 <td>Enables the use of separate socket security classes for all network address families rather than the generic socket class.</td>
 </tr>
 <tr>
+<td>genfs_seclabel_symlinks</td>
+<td>-r--r--r--</td>
+<td>Symlinks on kernel filesystems will receive contexts based on genfscon statements like directories and files.</td>
+</tr>
+<tr>
 <td>network_peer_controls</td>
 <td>-r--r--r--</td>
 <td><p>If true the following network_peer_controls are enabled:</p>
Signature · 1 line
2.27.0
maintainer
#1 lore raw
Quoted 13 lines · Dominick Grift

This was added with Linux 5.7 and SELinux 3.1

---
 src/lsm_selinux.md | 5 +++++
 1 file changed, 5 insertions(+)
src/lsm_selinux.md +0 -0
index a400c36..8e6f3ad 100644

src/lsm_selinux.md interface, it is not recommended - use the **libselinux** or **libsepol** librar · line 683

Quoted 8 lines
src/lsm_selinux.md +5 -0
@@ -676,6 +676,11 @@ interface, it is not recommended - use the **libselinux** or **libsepol** librar
 <td>Enables the use of separate socket security classes for all network address families rather than the generic socket class.</td>
 </tr>
 <tr>
+<td>genfs_seclabel_symlinks</td>
+<td>-r--r--r--</td>
+<td>Symlinks on kernel filesystems will receive contexts based on genfscon statements like directories and files.</td>
+</tr>
+<tr>

Maybe "Enables fine-grained labeling of symlinks in pseudo filesystems based on genfscon rules."

#2 lore raw

PATCH v2 1/1 lsm_selinux: document genfs_seclabel_symlinks policy capability

This was added with Linux 5.7 and SELinux 3.1

---
v2: copied and pasted feedback from Stephen Smalley

 src/lsm_selinux.md | 5 +++++
 1 file changed, 5 insertions(+)
src/lsm_selinux.md +5 -0
index a400c36..f762614 100644
@@ -676,6 +676,11 @@ interface, it is not recommended - use the **libselinux** or **libsepol** librar
 <td>Enables the use of separate socket security classes for all network address families rather than the generic socket class.</td>
 </tr>
 <tr>
+<td>genfs_seclabel_symlinks</td>
+<td>-r--r--r--</td>
+<td>Enables fine-grained labeling of symlinks in pseudo filesystems based on genfscon rules.</td>
+</tr>
+<tr>
 <td>network_peer_controls</td>
 <td>-r--r--r--</td>
 <td><p>If true the following network_peer_controls are enabled:</p>
Signature · 1 line
2.27.0
maintainer Applied
#4 lore raw
In reply to Dominick Grift
Quoted 27 lines · Dominick Grift

This was added with Linux 5.7 and SELinux 3.1

---
v2: copied and pasted feedback from Stephen Smalley

 src/lsm_selinux.md | 5 +++++
 1 file changed, 5 insertions(+)
src/lsm_selinux.md +5 -1
index a400c36..f762614 100644
@@ -676,6 +676,11 @@ interface, it is not recommended - use the **libselinux** or **libsepol** librar
 <td>Enables the use of separate socket security classes for all network address families rather than the generic socket class.</td>
 </tr>
 <tr>
+<td>genfs_seclabel_symlinks</td>
+<td>-r--r--r--</td>
+<td>Enables fine-grained labeling of symlinks in pseudo filesystems based on genfscon rules.</td>
+</tr>
+<tr>
 <td>network_peer_controls</td>
 <td>-r--r--r--</td>
 <td><p>If true the following network_peer_controls are enabled:</p>
--
Quoted 1 line

2.27.0

Merged into main, thanks!

Signature · 2 lines
paul moore
www.paul-moore.com