View Issue Details

IDProjectCategoryView StatusLast Update
0017665CentOS-8dhcppublic2021-10-18 03:58
Reporterphilipp Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version8.2.2004 
Summary0017665: NetworkManager script for dhcp-server not installed with execute bits enabled
DescriptionThe file /etc/NetworkManager/dispatcher.d/12-dhcpd which is part of the dhcp-server package gets installed as:

-rw-r--r-- root root /etc/NetworkManager/dispatcher.d/12-dhcpd

even though all other scripts in that directory are rwx-r-xr-x (755).

Grepping the script out of /var/log/messages we see that this is indeed problematic:

Aug 10 19:19:08 olney9 nm-dispatcher[1388]: req:2 'up' [enp1s0u2]: find-scripts: Cannot execute '/etc/NetworkManager/dispatcher.d/12-dhcpd': not executable by owner.

Steps To ReproduceInstall the package.

Run "rpmls -l dhcp-server".

TagsNo tags attached.

Activities

philipp

philipp

2020-08-11 17:21

reporter   ~0037521

This line in the .spec file:

install -p -m 0644 %{SOURCE4} %{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d

should be 0755 instead of 0644.
ScratchMonkey

ScratchMonkey

2021-10-17 22:38

reporter   ~0038667

Upstream bug closed in Rawhide with version dhcp-4.4.2-3.b1.fc32: https://bugzilla.redhat.com/show_bug.cgi?id=1780861

The offending script was dropped from the package. The default enabling of NetworkManager-wait-online.service should make it irrelevant so simply deleting the file should be an acceptable workaround.
philipp

philipp

2021-10-18 03:58

reporter   ~0038668

> The offending script was dropped from the package. The default enabling of NetworkManager-wait-online.service should make it irrelevant so simply deleting the file should be an acceptable workaround.

It's not an "offending" script and indeed there are cases where it's useful, such as IPsec or bringing up bridge interfaces for VM's on a host.

Issue History

Date Modified Username Field Change
2020-08-11 17:17 philipp New Issue
2020-08-11 17:21 philipp Note Added: 0037521
2021-10-17 22:38 ScratchMonkey Note Added: 0038667
2021-10-18 03:58 philipp Note Added: 0038668