Bug 2216151
| Summary: | Listing /var with details (ls -l /var) leads to missing permissions printing on some directories | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Welterlen Benoit <bwelterl> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | VERIFIED --- | QA Contact: | Milos Malik <mmalik> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 8.6 | CC: | apeetham, daniel.j.arevalo.civ, lvrabec, mmalik, nknazeko, qe-baseos-security, zpytela |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.9 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.14.3-125.el8 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2215507 | Environment: | |
| Last Closed: | 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: | 2215507 | ||
| Bug Blocks: | |||
| Deadline: | 2023-08-08 | ||
|
Description
Welterlen Benoit
2023-06-20 10:11:31 UTC
Hi Benoit, You are right confined users are not allowed to get attributes of all files and directories. They are given permissions to files with the base_file_type and similar attributes, and the to parent directories types when rules for particular objects are in place, for example systemd_read_unit_files(user_t) expands to (among other rules) allow user_t systemd_unit_file_type:dir list_dir_perms; allow user_t systemd_unit_file_type:file read_file_perms Do you think there is a problem with that? By the way, it does not apply only in mls, but also in targeted. Hi Zdenek, happy to see you here :D The only issue here, and for customer, is that they can't see directly see the permissions of directories in /var with staff_t, and for them it appears to be an "uneccessary restriction". Effectively, is there a security reason to avoid access to staff_t user to getattr such dir ? Thanks! Benoit By default, unprivileged users are allowed get only file attributes of directories with the type which is in the base_file_type SELinux attribute. My concern was there potentially could be an information leak when the mls policy is actually used, but it turned out not to be the case. |