From 6caade489f8bd15dccdde6c69452d920ead2201e Mon Sep 17 00:00:00 2001 From: José Bollo Date: Thu, 2 Aug 2018 18:48:57 +0200 Subject: Add the external binding feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit introduce two new features: TODO: manage security by setting correct Smack label to the exported files Bugs-AGL: SPEC-1439 Bugs-AGL: SPEC-1663 Change-Id: I70aad7d523ece7a2ae0058b79708a02ef81144e2 Signed-off-by: José Bollo --- conf/unit/generate-unit-conf/provided.inc | 80 ------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 conf/unit/generate-unit-conf/provided.inc (limited to 'conf/unit/generate-unit-conf/provided.inc') diff --git a/conf/unit/generate-unit-conf/provided.inc b/conf/unit/generate-unit-conf/provided.inc deleted file mode 100644 index 267e2ed..0000000 --- a/conf/unit/generate-unit-conf/provided.inc +++ /dev/null @@ -1,80 +0,0 @@ -dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4: -;------------------------------------------------------------------------------- -;---- P R O V I D E D A P I S ---- -;------------------------------------------------------------------------------- - -{{#provided-api}} - -;------------------------------------------------------------------------------- -;---- T H E S E R V I C E O F T H E A P I ---- -;------------------------------------------------------------------------------- -%begin systemd-unit - -# auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}} - -%systemd-unit system -%systemd-unit service UNIT_NAME_API_BASE({{name}})@ - -[Unit] -Description=Provides api {{name}} for user %i -X-AFM-API-TYPE={{value}} - -Requires=afm-user-setup@%i.service -After=afm-user-setup@%i.service - -{{#value=ws|auto}} -Requires=UNIT_NAME_API_BASE({{name}})@%i.socket -After=UNIT_NAME_API_BASE({{name}})@%i.socket -{{/value=ws|auto}} - -[Service] -Type=oneshot -RemainAfterExit=yes -{{#value=ws|auto}} -ExecStart=/bin/true -{{/value=ws|auto}} -dnl {{#value=link}} -dnl ExecStart=/bin/ln -s {{:#metadata.install-dir}}/ USER_RUN_DIR/apis/link/{{name}} -dnl {{/value=link}} - -dnl %nl -dnl [Install] -dnl WantedBy=afm-user-session@.target -dnl %systemd-unit wanted-by afm-user-session@.target - -%end systemd-unit - - -;------------------------------------------------------------------------------- -;---- 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 -%systemd-unit socket UNIT_NAME_API_BASE({{name}})@ -[Unit] -Description=Provides websocket api {{name}} for user %i -Requires=afm-user-setup@%i.service -After=afm-user-setup@%i.service -DefaultDependencies=no - -[Socket] -SmackLabel=* -SmackLabelIPIn=System -SmackLabelIPOut=System -ListenStream=USER_RUN_DIR/apis/ws/{{name}} -FileDescriptorName={{name}} -Service=UNIT_NAME_SERVICE - -%end systemd-unit - - -{{/value=ws|auto}} - -{{/provided-api}} - - -- cgit 1.2.3-korg