From 1289070816089908e9974b0b2495fab093d325ed Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 13 Dec 2019 16:47:45 +0100 Subject: Ensure home and workir to widget of scope-platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The widget requesting the permission to run at platform scope: urn:AGL:permission::partner:scope-platform should be able to record data and state. This change provides a default place to achieve it. Bug-AGL: SPEC-2998 Change-Id: I148a670d3e08e36603ebd318b533ea1e1a695750 Signed-off-by: José Bollo (cherry picked from commit b65d4e0061d77718ee6c04c6cd1d41f6940b5a03) --- conf/system/afm-system-setup.sh.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'conf/system/afm-system-setup.sh.in') diff --git a/conf/system/afm-system-setup.sh.in b/conf/system/afm-system-setup.sh.in index 4da558e..c3f827e 100644 --- a/conf/system/afm-system-setup.sh.in +++ b/conf/system/afm-system-setup.sh.in @@ -5,7 +5,7 @@ pdir=@afm_platform_rundir@ dodir() { if ! test -e $1; then mkdir -m 755 $1 - chsmack -a '*' $1 + chsmack -a '*' -T $1 fi } @@ -14,3 +14,10 @@ dodir $pdir/display dodir $pdir/apis dodir $pdir/apis/ws @create_platform_debug@ + +spdir=@afm_scope_platform_dir@ +if ! test -e $spdir; then + mkdir -m 755 $spdir + chsmack -a '*' -T $spdir + chown daemon:daemon $spdir +fi -- cgit 1.2.3-korg