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 1448697 - ipa-client-install doesn't set appropriate permissions on /etc/pki/ca-trust/source/ipa.p11-kit. Permissions are set based on umask.
Summary: ipa-client-install doesn't set appropriate permissions on /etc/pki/ca-trust/s...
Keywords:
Status: CLOSED DUPLICATE of bug 1427897
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.3
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-07 11:06 UTC by Abhinay Reddy Peddireddy
Modified: 2020-06-11 13:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-19 11:57:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Abhinay Reddy Peddireddy 2017-05-07 11:06:53 UTC
Description of problem:

ipa-client-install doesn't set appropriate permissions on /etc/pki/ca-trust/source/ipa.p11-kit. It takes permissions based on umask.

We see the following error in logs : 

p11-kit: couldn't open and map file: /etc/pki/ca-trust/source/ipa.p11-kit: Permission denied
p11-kit: couldn't open and map file: /etc/pki/ca-trust/source/ipa.p11-kit: Permission denied
p11-kit: couldn't open and map file: /etc/pki/ca-trust/source/ipa.p11-kit: Permission denied


How reproducible:

1. Set the umask of root user to 0077. 

2. Install ipa-client on RHEL 7.3 server. 

3. Check the permissions on the file /etc/pki/catrust/source/ipa.p11-kit. 



Actual results:

Permissions on file /etc/pki/catrust/source/ipa.p11-kit are set as below : 

# ll /etc/pki/ca-trust/source/ipa.p11-kit 
-rw------- 1 root root 3601 May  7 17:39 /etc/pki/ca-trust/source/ipa.p11-kit



Expected results:

Permissions on file /etc/pki/catrust/source/ipa.p11-kit should be readable by others :

# ll /etc/pki/ca-trust/source/ipa.p11-kit 
-rw-r--r-- 1 root root 3601 May  7 18:54 /etc/pki/ca-trust/source/ipa.p11-kit




Additional info:

File permissions are not being set explicitly as part of the RPM. 

# rpm -qvl ipa-client-common
drwxr-xr-x    2 root    root                        0 Mar 14 14:13 /etc/ipa
-rw-r--r--    1 root    apache                      0 Mar 14 14:13 /etc/ipa/ca.crt
-rw-r--r--    1 root    apache                      0 Mar 14 14:13 /etc/ipa/default.conf
drwxr-xr-x    2 root    root                        0 Mar 14 14:13 /etc/ipa/nssdb
----------    1 root    root                        0 Mar 14 14:13 /etc/ipa/nssdb/cert8.db
----------    1 root    root                        0 Mar 14 14:13 /etc/ipa/nssdb/key3.db
----------    1 root    root                        0 Mar 14 14:13 /etc/ipa/nssdb/pwdfile.txt
----------    1 root    root                        0 Mar 14 14:13 /etc/ipa/nssdb/secmod.db
----------    1 root    root                        0 Mar 14 14:13 /etc/pki/ca-trust/source/ipa.p11-kit

Comment 2 Standa Laznicka 2017-05-15 15:57:25 UTC
The permissions I believe are fine. The error in the logs resembles https://bugzilla.redhat.com/show_bug.cgi?id=1427897. The root cause there was that the system trust module was enabled, effectively bypassing IPA trust store.

To see if this could be the problem, the customer should try to issue
`modutil -dbdir /etc/httpd/alias -list "Root Certs" | grep "Status: Enabled"`
as root.

If they get some output, just run:
`modutil -dbdir /etc/httpd/alias/ -disable "Root Certs" -force`
as root and restart IPA with `ipactl restart`. This should solve the problem.

Comment 3 Petr Vobornik 2017-05-19 11:57:08 UTC

*** This bug has been marked as a duplicate of bug 1427897 ***


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