Skip to content

Commit d139953

Browse files
amitkh-msftrwestMSFT
authored andcommitted
Update sql-server-linux-security-selinux.md
1 parent 42c5263 commit d139953

1 file changed

Lines changed: 15 additions & 21 deletions

File tree

docs/linux/sql-server-linux-security-selinux.md

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn about installing and configuring SQL Server on SELinux, using
44
author: rwestMSFT
55
ms.author: randolphwest
66
ms.reviewer: amitkh
7-
ms.date: 01/23/2026
7+
ms.date: 01/27/2026
88
ms.service: sql
99
ms.subservice: linux
1010
ms.topic: how-to
@@ -63,46 +63,40 @@ To run [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] as a confined
6363

6464
1. Add the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] repository that contains `mssql-server-selinux`.
6565

66-
For [!INCLUDE [sssql25-md](../includes/sssql25-md.md)]:
66+
For [!INCLUDE [sssql25-md](../includes/sssql25-md.md)] on RHEL 9:
6767

6868
```bash
6969
sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/9/mssql-server-2025.repo
7070
```
7171

72-
For [!INCLUDE [sssql22-md](../includes/sssql22-md.md)]:
72+
For [!INCLUDE [sssql22-md](../includes/sssql22-md.md)] on RHEL 9:
7373

7474
```bash
7575
sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/9/mssql-server-2022.repo
7676
```
7777

78+
> [!NOTE]
79+
> If you plan to install on RHEL 10, then change to the RHEL 10 repositories.
80+
7881
1. Run the following command to view the SELinux policy dependencies:
7982

8083
```bash
81-
sudo dnf repoquery --requires mssql-server-selinux | egrep '^selinux-policy(-base)?'
84+
sudo dnf repoquery --requires --latest-limit=1 mssql-server-selinux | egrep '^selinux-policy(-base)?'
8285
```
8386

84-
1. In the output, find the highest distribution tag or point-release entry, such as `.el9_6`. The suffix shows the *minimum required* RHEL 9 minor release for that policy build. For example, `.el9_6` maps to RHEL 9.6.
87+
1. The output includes the minimum SELinux policy version required, indicated by a suffix such as `.el9_6`. This suffix represents the minimum RHEL 9 minor release that the policy was built for. For example, `.el9_6` corresponds to RHEL 9.6.
8588

86-
Here's example output:
89+
If no such suffix appears in the output, refer to Red Hat documentation to determine the minimum RHEL minor version associated with that SELinux policy build. In the following example, the required SELinux base version is `38.1.53-5`.
8790

8891
```bash
89-
$ sudo dnf repoquery --requires mssql-server-selinux | egrep '^selinux-policy(-base)?'
90-
selinux-policy >= 38.1.11-2.el9_2.4
91-
selinux-policy >= 38.1.23-1.el9
92-
selinux-policy >= 38.1.23-1.el9_3.2
93-
selinux-policy >= 38.1.35-2.el9_4
94-
selinux-policy >= 38.1.35-2.el9_4.2
95-
selinux-policy >= 38.1.45-3.el9_5
92+
sudo dnf repoquery --requires --latest-limit=1 mssql-server-selinux | egrep '^selinux-policy(-base)?'
93+
```
94+
95+
Here's example output:
96+
97+
```output
9698
selinux-policy >= 38.1.53-5.el9_6
97-
selinux-policy >= 38.1.65-1.el9
98-
selinux-policy-base >= 38.1.11-2.el9_2.4
99-
selinux-policy-base >= 38.1.23-1.el9
100-
selinux-policy-base >= 38.1.23-1.el9_3.2
101-
selinux-policy-base >= 38.1.35-2.el9_4
102-
selinux-policy-base >= 38.1.35-2.el9_4.2
103-
selinux-policy-base >= 38.1.45-3.el9_5
10499
selinux-policy-base >= 38.1.53-5.el9_6
105-
selinux-policy-base >= 38.1.65-1.el9
106100
```
107101

108102
In this example, the highest minor-version-tagged requirement is `38.1.53-5.el9_6`. So, you need at least RHEL 9.6 to install [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] with SELinux (`mssql-server-selinux`), and run it as a confined application on RHEL 9.

0 commit comments

Comments
 (0)