Bug 1558428
Summary: | Selinux AVC : deny execution of /usr/bin/net for adcli process | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Amith <apeetham> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED WONTFIX | QA Contact: | Milos Malik <mmalik> |
Severity: | unspecified | Docs Contact: | Lucie Vařáková <lmanasko> |
Priority: | unspecified | ||
Version: | 6.10 | CC: | dwalsh, grajaiya, jhrozek, lkuprova, lmanasko, lslebodn, lvrabec, mgrepl, mkosek, mmalik, mzidek, pbrezina, plautrba, sbose, ssekidde, tscherf |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Known Issue | |
Doc Text: |
Updating a machine account password with *adcli* in some cases fails with SELinux error
When attempting to update the machine account password using the *adcli* tool in Red Hat Enterprise Linux 6.10, the system security services daemon (SSSD) sometimes tries to update an internal Samba database that contains also the machine account password. As a consequence, the SELinux access vector cache (AVC) states that SSSD and its subprocesses are not allowed to run Samba's `net` command to update the internal Samba database.
To work around this problem, you can add a local SELinux policy by creating a `sssd_samba.te` file with the following content:
module sssd_samba 1.0;
require {
type sssd_t;
type samba_net_exec_t;
class file execute;
}
#============= sssd_t ==============
allow sssd_t samba_net_exec_t:file execute;
And then enter the following commands:
# yum install selinux-policy-devel
# make -f /usr/share/selinux/devel/Makefile sssd_samba.pp
# semodule -i sssd_samba.pp
As a result, SSSD with *adcli* can update Samba's internal database without an SELinux AVC error.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2018-03-26 11:23:31 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Amith
2018-03-20 08:39:23 UTC
Hi, would it still be possible to enhance the SELinux policy for RHEL-6.10 to allow sssd_t processes to execute samba_net_exec_t files? Or is there a work-arounf to make it work with the existing policy? In 6.10 adcli is able to update the host account password in Samba's internal tdb files with the help of the net command. This was added to allow RHEL6 clients to join AD domains where SMB1 is disabled. When SSSD calls adcli to update an old host account password Samba's internal tdbs must be updated with the new password as well. bye, Sumit |