From 5b9231c2c8266317081d98f38041105a0ef87e84 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 10 Jul 2020 13:18:47 +0200 Subject: Fix labelling of files of widgets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before that change any application could browse content of other application. This change fixes that unintended behaviour by setting the installed files as private to the application. This affects the Smack labels of the files that after the change become the label of the application. Bug-AGL: SPEC-3489 Change-Id: I933446a8c155a03d9b66767f1dda63aeaeb21eb1 Signed-off-by: José Bollo --- src/wgtpkg-install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wgtpkg-install.c') diff --git a/src/wgtpkg-install.c b/src/wgtpkg-install.c index 57c17b8..14d3b85 100644 --- a/src/wgtpkg-install.c +++ b/src/wgtpkg-install.c @@ -524,7 +524,7 @@ static int install_security(const struct wgt_desc *desc) if (lf <= lic && icon && !memcmp(f->name, icon, lf) && (!f->name[lf] || f->name[lf] == '/')) rc = secmgr_path_public_read_only(path); else - rc = secmgr_path_read_only(path); + rc = secmgr_path_private(path); if (rc) goto error2; } -- cgit 1.2.3-korg