From daecef104cd2a6ac3e4436306e96ed48aea8271d Mon Sep 17 00:00:00 2001 From: José Bollo Date: Tue, 9 Jul 2019 17:56:55 +0200 Subject: supervisor: Setup services for local API use MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The supervisor only allowed external accesses. This was wrong, it must also allow local access through standard API. This commit fix it. Bug-AGL: SPEC-2660 Signed-off-by: José Bollo Change-Id: Ifa1119a6b2f22c87b1dbe087206d9f51c4005a57 --- afm-api-supervisor.socket | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 afm-api-supervisor.socket (limited to 'afm-api-supervisor.socket') diff --git a/afm-api-supervisor.socket b/afm-api-supervisor.socket new file mode 100644 index 00000000..e55a267a --- /dev/null +++ b/afm-api-supervisor.socket @@ -0,0 +1,21 @@ +# afm-api-supervisor.socket.in + +[Unit] +Description=Service to start the API 'supervisor' + +DefaultDependencies=no + +Requires=afm-system-setup.service +After=afm-system-setup.service + +[Socket] +SmackLabel=* +SmackLabelIPIn=System +SmackLabelIPOut=System +ListenStream=/run/platform/apis/ws/supervisor +FileDescriptorName=supervisor +Service=afs-supervisor.service + +[Install] +WantedBy=sockets.target + -- cgit 1.2.3-korg