summaryrefslogtreecommitdiff
path: root/src/common/master-req.cpp
diff options
context:
space:
mode:
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>2016-01-26 15:13:39 +0100
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>2016-01-29 15:14:50 +0100
commit9e0db48ddacad6f1e8d77cbc239dbeb21deb7d4b (patch)
tree3583e9c361b01012724c54600386a24f77deabfd /src/common/master-req.cpp
parent9c7e7ca862f251174a45c063f268696976277db8 (diff)
downloadsecurity-manager-9e0db48ddacad6f1e8d77cbc239dbeb21deb7d4b.tar.gz
security-manager-9e0db48ddacad6f1e8d77cbc239dbeb21deb7d4b.tar.bz2
security-manager-9e0db48ddacad6f1e8d77cbc239dbeb21deb7d4b.zip
Support SECURITY_MANAGER_PATH_TRUSTED_RW during installation.
All trusted paths should be properly labelled after package installation. Change-Id: I766aa029d1f1e85e84ebc388ded389620faa757c
Diffstat (limited to 'src/common/master-req.cpp')
-rw-r--r--src/common/master-req.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/common/master-req.cpp b/src/common/master-req.cpp
index e400d6bd..1be4b353 100644
--- a/src/common/master-req.cpp
+++ b/src/common/master-req.cpp
@@ -81,16 +81,24 @@ int CynaraUserRemove(const uid_t uidDeleted)
return ret;
}
-int SmackInstallRules(const std::string &appId, const std::string &pkgId,
+int SmackInstallRules(const std::string &appId,
+ const std::string &pkgId,
+ const std::string &authorId,
const std::vector<std::string> &pkgContents,
const std::vector<std::string> &appsGranted,
const std::vector<std::string> &accessPackages)
{
int ret;
MessageBuffer sendBuf, retBuf;
- Serialization::Serialize(sendBuf,
+ Serialization::Serialize(
+ sendBuf,
static_cast<int>(MasterSecurityModuleCall::SMACK_INSTALL_RULES),
- appId, pkgId, pkgContents, appsGranted, accessPackages);
+ appId,
+ pkgId,
+ authorId,
+ pkgContents,
+ appsGranted,
+ accessPackages);
ret = sendToServer(MASTER_SERVICE_SOCKET, sendBuf.Pop(), retBuf);
if (ret == SECURITY_MANAGER_API_SUCCESS)