afm-unit.conf: Restrict service for APIs 45/17345/1
authorJose Bollo <jose.bollo@iot.bzh>
Thu, 13 Sep 2018 12:02:47 +0000 (14:02 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Fri, 19 Oct 2018 12:13:02 +0000 (14:13 +0200)
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>
conf/unit/afm-unit-debug.conf.in
conf/unit/afm-unit.conf.in
conf/unit/generate-unit-conf/provided-api.inc

index f7e37a2..c812368 100644 (file)
@@ -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
index 4672c98..f5e25ea 100644 (file)
@@ -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
index 8a667a9..eb04181 100644 (file)
@@ -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