Accepting request 986075 from home:hgraeber:branches:network

Include ws-discovery-udp service from firewalld 1.0 as part of wsdd.xml, to restrict port 3702 to multicast use.

OBS-URL: https://build.opensuse.org/request/show/986075
OBS-URL: https://build.opensuse.org/package/show/network/wsdd?expand=0&rev=23
This commit is contained in:
Herbert Graeber 2022-07-01 14:46:31 +00:00 committed by Git OBS Bridge
parent 3df4d29817
commit 55fdfae23a
4 changed files with 23 additions and 2 deletions

7
ws-discovery-udp.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>WS-Discovery (UDP)</short>
<description>Web Services Dynamic Discovery (WS-Discovery) is a technical specification that defines a multicast discovery protocol to locate services on a local network.</description>
<port protocol="udp" port="3702"/>
<destination ipv4="239.255.255.250" ipv6="ff02::c"/>
</service>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 29 20:07:14 UTC 2022 - Herbert Graeber <herbert@graeber-clan.de>
- Include ws-discovey-udp service from firewalld 1.0 as part of wsdd.xml
-------------------------------------------------------------------
Thu Feb 24 16:36:40 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package wsdd
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -29,6 +29,9 @@ Source3: %{name}.xml
Source4: sysconfig.%{name}
Source5: %{name}.conf
Source6: %{name}-user.conf
%if 0%{suse_version} < 1599
Source7: ws-discovery-udp.xml
%endif
Patch1: %{name}-shebang.patch
BuildRequires: firewall-macros
BuildRequires: python3
@ -61,6 +64,9 @@ install -m 755 -D %{SOURCE1} %{buildroot}%{_libexecdir}/wsdd-init.sh
mkdir -p %{buildroot}%{_unitdir}
sed 's#@LIBEXECDIR@#%{_libexecdir}#' %{SOURCE2} >%{buildroot}%{_unitdir}/wsdd.service
install -m 644 -D %{SOURCE3} %{buildroot}%{_prefix}/lib/firewalld/services/wsdd.xml
%if 0%{suse_version} < 1599
install -m 644 -D %{SOURCE7} %{buildroot}%{_prefix}/lib/firewalld/services/ws-discovery-udp.xml
%endif
install -m 644 -D %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.wsdd
install -m 755 -d %{buildroot}%{_sbindir}
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
@ -98,6 +104,9 @@ install -m 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/
%dir %{_prefix}/lib/firewalld
%dir %{_prefix}/lib/firewalld/services
%{_prefix}/lib/firewalld/services/wsdd.xml
%if 0%{suse_version} < 1599
%{_prefix}/lib/firewalld/services/ws-discovery-udp.xml
%endif
%{_fillupdir}/sysconfig.%{name}
%{_sysusersdir}/%{name}-user.conf
%dir %attr(0755,wsdd,wsdd) %ghost /run/%{name}

View File

@ -3,5 +3,5 @@
<short>wsdd</short>
<description>Web Service Discovery</description>
<port protocol="tcp" port="5357"/>
<port protocol="udp" port="3702"/>
<include service="ws-discovery-udp"/>
</service>