From 0e0ae553d3fe9e541eefa8bd61a580c721fe0e49 Mon Sep 17 00:00:00 2001 From: Jose Bollo Date: Thu, 13 Sep 2018 14:02:47 +0200 Subject: afm-unit.conf: Restrict service for APIs Forbids exportation of service apis for apis that are not exported as 'ws' or 'auto'. Bug-AGL: SPEC-1650 Change-Id: I0681bdb0632d9f331036abc1ff1e1b2bb37933cd Signed-off-by: Jose Bollo --- conf/unit/afm-unit-debug.conf.in | 2 +- conf/unit/afm-unit.conf.in | 2 +- conf/unit/generate-unit-conf/provided-api.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/unit/afm-unit-debug.conf.in b/conf/unit/afm-unit-debug.conf.in index f7e37a2..c812368 100644 --- a/conf/unit/afm-unit-debug.conf.in +++ b/conf/unit/afm-unit-debug.conf.in @@ -215,6 +215,7 @@ WantedBy=afm-user-session@.target ;---- P R O V I D E D A P I S ---- ;------------------------------------------------------------------------------- {{#provided-api}} +{{#value=ws|auto}} ;------------------------------------------------------------------------------- ;---- T H E S E R V I C E O F T H E A P I ---- ;------------------------------------------------------------------------------- @@ -241,7 +242,6 @@ ExecStart=/bin/true ;------------------------------------------------------------------------------- ;---- T H E S O C K E T O F T H E A P I ---- ;------------------------------------------------------------------------------- -{{#value=ws|auto}} %begin systemd-unit # auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}} %systemd-unit system diff --git a/conf/unit/afm-unit.conf.in b/conf/unit/afm-unit.conf.in index 4672c98..f5e25ea 100644 --- a/conf/unit/afm-unit.conf.in +++ b/conf/unit/afm-unit.conf.in @@ -215,6 +215,7 @@ WantedBy=afm-user-session@.target ;---- P R O V I D E D A P I S ---- ;------------------------------------------------------------------------------- {{#provided-api}} +{{#value=ws|auto}} ;------------------------------------------------------------------------------- ;---- T H E S E R V I C E O F T H E A P I ---- ;------------------------------------------------------------------------------- @@ -241,7 +242,6 @@ ExecStart=/bin/true ;------------------------------------------------------------------------------- ;---- T H E S O C K E T O F T H E A P I ---- ;------------------------------------------------------------------------------- -{{#value=ws|auto}} %begin systemd-unit # auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}} %systemd-unit system diff --git a/conf/unit/generate-unit-conf/provided-api.inc b/conf/unit/generate-unit-conf/provided-api.inc index 8a667a9..eb04181 100644 --- a/conf/unit/generate-unit-conf/provided-api.inc +++ b/conf/unit/generate-unit-conf/provided-api.inc @@ -4,6 +4,7 @@ dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4: ;------------------------------------------------------------------------------- {{#provided-api}} +{{#value=ws|auto}} ;------------------------------------------------------------------------------- ;---- T H E S E R V I C E O F T H E A P I ---- @@ -40,7 +41,6 @@ ExecStart=/bin/true ;------------------------------------------------------------------------------- ;---- T H E S O C K E T O F T H E A P I ---- ;------------------------------------------------------------------------------- -{{#value=ws|auto}} %begin systemd-unit -- cgit 1.2.3-korg