aboutsummaryrefslogtreecommitdiffstats
path: root/conf/unit/afm-unit.conf.in
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-12-11 13:55:10 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-12-11 13:55:10 +0100
commitb56766552657c763cfe554fbfc041189737be756 (patch)
treef417c0ec3365cf93ed5a5e903d77710e3c372cd0 /conf/unit/afm-unit.conf.in
parent6d1a6fdc531709021ce91802ad9c666ce46287c1 (diff)
unit.conf: Fix Smack permission on api ws
The Smack permission to write on the websocket of the API must be set to something that allows the communication! Here the chosen value is * Change-Id: Ia276219b232e33bd35353d8feb333513b340e75c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf/unit/afm-unit.conf.in')
-rw-r--r--conf/unit/afm-unit.conf.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/unit/afm-unit.conf.in b/conf/unit/afm-unit.conf.in
index ad5ecd7..1824358 100644
--- a/conf/unit/afm-unit.conf.in
+++ b/conf/unit/afm-unit.conf.in
@@ -215,6 +215,8 @@ After=user@%i.service
DefaultDependencies=no
[Socket]
SmackLabel=*
+SmackLabelIPIn=*
+SmackLabelIPOut=*
ListenStream=/run/user/%i/apis/ws/{{name}}
FileDescriptorName={{name}}
Service=afm-{{#required-permission.urn:AGL:permission::public:hidden}}service{{/required-permission.urn:AGL:permission::public:hidden}}{{^required-permission.urn:AGL:permission::public:hidden}}appli{{/required-permission.urn:AGL:permission::public:hidden}}-{{:id}}--{{:ver}}--{{:#target}}@%i.service