Bug 1574783 - Installing freeradius without make results in an unworkable default configuration
Summary: Installing freeradius without make results in an unworkable default configura...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: freeradius
Version: 28
Hardware: All
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Nikolai Kondrashov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1672284 1672285
TreeView+ depends on / blocked
 
Reported: 2018-05-04 03:08 UTC by Mikhail Zabaluev
Modified: 2019-02-04 13:16 UTC (History)
2 users (show)

Fixed In Version: freeradius-3.0.15-16.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-07 14:09:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github FreeRADIUS freeradius-server issues 2223 0 None closed raddb/certs/bootstrap creates server-unreadable key files in absence of make 2020-04-09 09:57:18 UTC

Description Mikhail Zabaluev 2018-05-04 03:08:47 UTC
Description of problem:
When the freeradius package is installed without the make utility present in PATH, the bundled bootstrap script generates certificate key files with openssl, which sets access permissions on the generated key files such that the files are left unreadable for the daemon at the time when the certificate configuration is processed.

Version-Release number of selected component (if applicable):
freeradius-3.0.15-12.fc28

How reproducible:
always

Steps to Reproduce:
1. Build the following Dockerfile with docker:

FROM registry.fedoraproject.org/fedora:28

RUN dnf -y install freeradius && dnf clean all

2. Run `radiusd -X` in the resulting container.

Actual results:

The server fails with this output:

tls: Failed reading certificate file "/etc/raddb/certs/server.pem"
tls: error:0200100D:system library:fopen:Permission denied
tls: error:20074002:BIO routines:file_ctrl:system lib
tls: error:140DC002:SSL routines:use_certificate_chain_file:system lib
rlm_eap_tls: Failed initializing SSL context
rlm_eap (EAP): Failed to initialise rlm_eap_tls
/etc/raddb/mods-enabled/eap[14]: Instantiation failed for module "eap"

Expected results:

The server starts up and reports ready to process requests.

Additional information:

Comment 1 Nikolai Kondrashov 2018-09-07 14:09:53 UTC
Fixed by adding dependency on make, as upstream has two copies of setup code, but mostly maintains the make one.

Thank you for the report, Mikhail!


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