Bug 2129400 - Openscap rule "Ensure All Files Are Owned by a User" does not consider/honor AD/sssd users
Summary: Openscap rule "Ensure All Files Are Owned by a User" does not consider/honor ...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: scap-security-guide
Version: 8.6
Hardware: All
OS: All
medium
medium
Target Milestone: rc
: ---
Assignee: Vojtech Polasek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-23 15:37 UTC by achadha
Modified: 2022-11-21 15:09 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-134795 0 None None None 2022-09-23 16:00:22 UTC

Description achadha 2022-09-23 15:37:43 UTC
Description of problem:
While using the openscap policy "CIS Red Hat Enterprise Linux 8 Benchmark for Level1-Server" for the system, it fails for the rule "Ensure All Files Are Owned by a User" for the file which have AD/sssd user. Which means the it does not consider or are aware for file with AD/sssd user and shows them as orphans.
Even as per the rule, running the below command does not show any files which are not owned by user,
-----
# df --local -P | awk {'if (NR!=1) print $6'} | sudo xargs -I '{}' find '{}' -xdev -nouser
# find PARTITION -xdev -nouser
----
This happens with both openscap scan done by console.redhat.com and Red Hat Satellite 


Version-Release number of selected component (if applicable):
Openscap
scap-security-guide

How reproducible:


Steps to Reproduce:
1. Attach the systems to policy "CIS Red Hat Enterprise Linux 8 Benchmark for Level1-Server" 
2. The system should have files owned by AD/sssd user
3. Run the scap on the system

Actual results:
The rule does not consider files owned by AD/sssd user and fails for rule  "Ensure All Files Are Owned by a User" 

Expected results:
The rule should consider files owned by AD/sssd user and should not fail for the rule "Ensure All Files Are Owned by a User" 


Additional info:

Comment 2 achadha 2022-10-20 16:07:35 UTC
Hello,

The current issue is another concern which the customer has reported. This BZ is still valid for the issue which customer reported earlier. 
I will try to have a separate case open for the other issue reported by customer.

Regards,
Arvinder

Comment 4 Jan Černý 2022-11-01 10:21:18 UTC
There is a BZ on the sssd component that is related to this rule and where our team has been included: https://bugzilla.redhat.com/show_bug.cgi?id=2135159


Note You need to log in before you can comment on or make changes to this bug.