Do not use eval in NM dispatcher script
This commit is contained in:
parent
16546798c5
commit
ec19ab3458
12
11-dhclient
12
11-dhclient
@ -6,15 +6,11 @@ SAVEDIR=/var/lib/dhclient
|
|||||||
ETCDIR=/etc/dhcp
|
ETCDIR=/etc/dhcp
|
||||||
interface=$1
|
interface=$1
|
||||||
|
|
||||||
eval "$(
|
for optname in "${!DHCP4_@}"; do
|
||||||
declare | LC_ALL=C grep '^DHCP4_[A-Z_]*=' | while read -r opt; do
|
newoptname=${optname,,};
|
||||||
optname=${opt%%=*}
|
newoptname=new_${newoptname#dhcp4_};
|
||||||
optname=${optname,,}
|
export $newoptname="${!optname}";
|
||||||
optname=new_${optname#dhcp4_}
|
|
||||||
optvalue=${opt#*=}
|
|
||||||
echo "export $optname=$optvalue"
|
|
||||||
done
|
done
|
||||||
)"
|
|
||||||
|
|
||||||
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
|
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
Summary: Dynamic host configuration protocol software
|
Summary: Dynamic host configuration protocol software
|
||||||
Name: dhcp
|
Name: dhcp
|
||||||
Version: 4.3.6
|
Version: 4.3.6
|
||||||
Release: 21%{?dist}
|
Release: 22%{?dist}
|
||||||
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
|
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
|
||||||
# dcantrell maintaining the package) made incorrect use of the epoch and
|
# dcantrell maintaining the package) made incorrect use of the epoch and
|
||||||
# that's why it is at 12 now. It should have never been used, but it was.
|
# that's why it is at 12 now. It should have never been used, but it was.
|
||||||
@ -677,6 +677,9 @@ done
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 18 2018 Pavel Zhukov <pzhukov@redhat.com> - 12:4.3.6-22
|
||||||
|
- Get rid of eval in 11-dhclient
|
||||||
|
|
||||||
* Tue May 15 2018 Pavel Zhukov <pzhukov@redhat.com> - 12:4.3.6-21
|
* Tue May 15 2018 Pavel Zhukov <pzhukov@redhat.com> - 12:4.3.6-21
|
||||||
- Fix for CVE-2018-1111
|
- Fix for CVE-2018-1111
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user