Bug 1855215
Summary: | selinux prevents adcli from executing /usr/bin/net command through sssd | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Niranjan Mallapadi Raghavender <mniranja> |
Component: | selinux-policy | Assignee: | Patrik Koncity <pkoncity> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.3 | CC: | apeetham, dapospis, lslebodn, lvrabec, mmalik, pkoncity, plautrba, sbose, sgoveas, ssekidde, zpytela |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.5 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.14.3-79.el8 | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-09 19:42:28 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1793727, 1842946, 1969483 |
Description
Niranjan Mallapadi Raghavender
2020-07-09 09:12:16 UTC
> type=AVC msg=audit(1594283288.118:2290): avc: denied { execute } for pid=25919 comm="adcli" name="net" dev="vda3" ino=8524199 scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:object_r:samba_net_exec_t:s0 tclass=file permissive=0
> type=AVC msg=audit(1594283288.118:2291): avc: denied { execute } for pid=25919 comm="adcli" name="net" dev="vda3" ino=8524199 scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:object_r:samba_net_exec_t:s0 tclass=file permissive=0
sssd does not execute /usr/bin/net directly.
It might be good to have type transition for adcli the same was as for sssd selinux manager.
sh# sesearch -T -s sssd_t -c process
type_transition sssd_t abrt_helper_exec_t:process abrt_helper_t;
type_transition sssd_t chkpwd_exec_t:process chkpwd_t;
type_transition sssd_t sssd_selinux_manager_exec_t:process sssd_selinux_manager_t;
type_transition sssd_t updpwd_exec_t:process updpwd_t;
But that would probably require different fcontext for /usr/bin/adcli
sh# matchpathcon /usr/bin/adcli
/usr/bin/adcli system_u:object_r:bin_t:s0
sh# matchpathcon /usr/bin/net
/usr/bin/net system_u:object_r:samba_net_exec_t:s0
Commit to backport: commit 0feb53acc00aa74ad3946830914f6c27f27c711a (upstream/rawhide, rawhide) Author: Patrik Koncity <pkoncity> Date: Tue Aug 3 14:54:07 2021 +0200 Allow sssd to set samba setting and https://github.com/fedora-selinux/selinux-policy/pull/843 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:4420 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days |