| |
@@ -86,7 +86,9 @@
|
| |
ensure_bytes,
|
| |
ensure_str,
|
| |
ensure_list_str,
|
| |
- format_cmd_list)
|
| |
+ format_cmd_list,
|
| |
+ selinux_present,
|
| |
+ selinux_label_port)
|
| |
from lib389.paths import Paths
|
| |
from lib389.nss_ssl import NssSsl
|
| |
from lib389.tasks import BackupTask, RestoreTask
|
| |
@@ -1591,6 +1593,9 @@
|
| |
self.config.set('nsslapd-security', 'on')
|
| |
self.use_ldaps_uri()
|
| |
|
| |
+ if selinux_present():
|
| |
+ selinux_label_port(self.sslport)
|
| |
+
|
| |
if self.ds_paths.perl_enabled:
|
| |
# We don't setup sslport correctly in perl installer ....
|
| |
self.config.set('nsslapd-secureport', '%s' % self.sslport)
|
| |
Bug Description:
In some tests we use enable_tls(), but the secure port doesn't get
labeled automatically with ldap_port_t.
Fix Description:
Fix enable_tls() to label secure port.
Fixes https://pagure.io/389-ds-base/issue/50387
Reviewed by: ???