From f89638679bc72541591f4cf32241fffae19f54ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Fri, 5 Sep 2014 12:15:21 +0200 Subject: [PATCH] Remove Smack rules having wrong subject MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Names of the software repositories were used as subject of the generated smack rules. There is no mention of such behaviour on the help pages in the wiki of tizen. Bug-Tizen: PTREL-638 Change-Id: Iefef89492ab5c9839cb01d3b62dae4c3637f00f4 Signed-off-by: José Bollo --- plugins/msmxattr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/msmxattr.c b/plugins/msmxattr.c index b7dc919..2665dfc 100644 --- a/plugins/msmxattr.c +++ b/plugins/msmxattr.c @@ -179,9 +179,14 @@ static int msmSetSmackProvide(struct smack_accesses *smack_accesses, provide_x * rpmlog(RPMLOG_DEBUG, "%s ac_domain %s provided in %s for %s\n", (ac_domain->allowed ? "allowing" : "not allowing"), ac_domain->name, ac_domain->sw_source->name, sw_source->name); } +/* FIXME(José Bollo): I'm removing this call that has the effect to create rules having the +sw_source->name as subject. I'm thinking that this behaviour is not expected. +It is solving the bug https://bugs.tizen.org/jira/browse/PTREL-638. + if (smack_accesses) ret = msmSetSmackRules(smack_accesses, provide->ac_domains, sw_source->name); else +*/ ret = 0; } } -- 2.7.4