Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:tulip
salt
fix-ip6_interface-grain-to-not-leak-secondary-i...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-ip6_interface-grain-to-not-leak-secondary-ipv4-a.patch of Package salt
From 58bbe423aa269c29b8bc46f9e5fbaf54ad9bb05a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= <psuarezhernandez@suse.com> Date: Fri, 15 Oct 2021 13:08:53 +0100 Subject: [PATCH] Fix ip6_interface grain to not leak secondary IPv4 addrs (bsc#1191412) --- salt/grains/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/salt/grains/core.py b/salt/grains/core.py index ace0e4bff9..9e7d57b987 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -2529,7 +2529,11 @@ def ip6_interfaces(): iface_ips.append(inet["address"]) for secondary in ifaces[face].get("secondary", []): if "address" in secondary: - iface_ips.append(secondary["address"]) + try: + socket.inet_pton(socket.AF_INET6, secondary["address"]) + iface_ips.append(secondary["address"]) + except OSError: + pass ret[face] = iface_ips return {"ip6_interfaces": ret} -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor