RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1919300 - Permissions of files owned by accountsservice package diverge from RPM database
Summary: Permissions of files owned by accountsservice package diverge from RPM database
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: accountsservice
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 8.0
Assignee: Ray Strode [halfline]
QA Contact: Michal Odehnal
URL:
Whiteboard:
Depends On:
Blocks: 2027004 2057576
TreeView+ depends on / blocked
 
Reported: 2021-01-22 14:37 UTC by Matus Marhefka
Modified: 2022-11-16 15:23 UTC (History)
4 users (show)

Fixed In Version: accountsservice-0.6.55-4.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2027004 2057576 (view as bug list)
Environment:
Last Closed: 2022-05-10 13:40:40 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 6755331 0 None None None 2022-02-24 07:18:59 UTC
Red Hat Product Errata RHBA-2022:1800 0 None None None 2022-05-10 13:40:48 UTC

Description Matus Marhefka 2021-01-22 14:37:01 UTC
Description of problem:
After installing hardened RHEL8 system (with either PCI-DSS, E8 or HIPAA profile) the rule rpm_verify_permissions reports a finding that the folder /var/lib/AccountsService/icons (from accountsservice RPM) has different permissions compared to the ones expected in the package metadata stored in the rpm database.

Version-Release number of selected component (if applicable):
accountsservice-0.6.55-1.el8

How reproducible:
100%

Steps to Reproduce:
1. Start RHEL8 installation
2. Select Server with GUI package group
3. Select PCI-DSS, E8, or HIPAA profile
4. Log into the system after installation and verify installed files by the package accountsservice against the files taken from the package metadata stored in the rpm database:
# rpm -Va accountsservice
.M.......    /var/lib/AccountsService/icons
# ls -l /var/lib/AccountsService/
total 0
drwxrwxr-x. 2 root root  6 Jan 15 19:03 icons
drwx------. 2 root root 18 Jan 22 11:34 users

5. Fix the permissions for the affected folder:
# rpm --setperms accountsservice
# rpm -Va accountsservice
# ls -l /var/lib/AccountsService/
total 0
drwxr-xr-x. 2 root root  6 Jan 15 19:03 icons
drwx------. 2 root root 18 Jan 22 11:34 users

6. Reboot the system and verify the installed files after the reboot once more (issue is back):
# rpm -Va accountsservice
.M.......    /var/lib/AccountsService/icons
# ls -l /var/lib/AccountsService/
total 0
drwxrwxr-x. 2 root root  6 Jan 15 19:03 icons
drwx------. 2 root root 18 Jan 22 11:34 users


Actual results:
Installed directory /var/lib/AccountsService/icons (from accountsservice RPM) has different permissions compared to the ones expected by the package metadata stored in the rpm database. Also after fixing the permissions they change again after rebooting the system.

Expected results:
Installed directory /var/lib/AccountsService/icons (from accountsservice RPM) has the same permissions as expected by the package metadata stored in the rpm database.

Additional info:

Comment 7 errata-xmlrpc 2022-05-10 13:40:40 UTC
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 (accountsservice 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-2022:1800


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