summaryrefslogtreecommitdiffstats
path: root/conf/unit
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2018-09-13 14:02:47 +0200
committerJose Bollo <jose.bollo@iot.bzh>2018-10-19 14:13:02 +0200
commit0e0ae553d3fe9e541eefa8bd61a580c721fe0e49 (patch)
tree6533877a8f7291ec88c9c593d0fd107bfb1755cf /conf/unit
parent24f0c203cc62f478b2759b184f1b4ed7a1c093ca (diff)
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 <jose.bollo@iot.bzh>
Diffstat (limited to 'conf/unit')
-rw-r--r--conf/unit/afm-unit-debug.conf.in2
-rw-r--r--conf/unit/afm-unit.conf.in2
-rw-r--r--conf/unit/generate-unit-conf/provided-api.inc2
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