From: Bartlomiej Grzelewski Date: Fri, 7 Aug 2015 14:27:51 +0000 (+0200) Subject: Adopt to new implementation of smack. X-Git-Tag: security-manager_5.5_testing~9^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=595bf35dbaf25102980be81969f0f76f34dd66bc;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git Adopt to new implementation of smack. In new implmentation connect will success only if client have "w" rule to system socket and system process have "w" rule to client. Change-Id: I68caadb430678b8e8ee5b235576ff4ea95103abe --- diff --git a/src/ckm/access_provider2.cpp b/src/ckm/access_provider2.cpp index 98a122fe..018454f9 100644 --- a/src/ckm/access_provider2.cpp +++ b/src/ckm/access_provider2.cpp @@ -48,6 +48,7 @@ void AccessProvider::allowAPI(const std::string &api, const std::string &rule) { void AccessProvider::apply() { // This should be done by security-manager + m_smackAccess.add("System", m_mySubject, "w"); m_smackAccess.add(m_mySubject, "System", "w"); m_smackAccess.apply(); }