security-manager-cmd: adjust acceptable path types to supported values 49/57049/2
authorRafal Krypa <r.krypa@samsung.com>
Thu, 14 Jan 2016 16:29:33 +0000 (17:29 +0100)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 14 Jan 2016 17:00:07 +0000 (09:00 -0800)
Change-Id: Ife4354fd2b892ae46658fa8886f2c3599d3ed316

src/cmd/security-manager-cmd.cpp

index 4b8fb91..1f9d783 100644 (file)
@@ -40,8 +40,9 @@ namespace po = boost::program_options;
 IMPLEMENT_SAFE_SINGLETON(SecurityManager::Log::LogSystem);
 
 static std::map <std::string, enum app_install_path_type> app_install_path_type_map = {
-    {"writable", SECURITY_MANAGER_PATH_RW},
-    {"readable", SECURITY_MANAGER_PATH_RO}
+    {"rw", SECURITY_MANAGER_PATH_RW},
+    {"ro", SECURITY_MANAGER_PATH_RO},
+    {"public_ro", SECURITY_MANAGER_PATH_PUBLIC_RO},
 };
 
 static std::map <std::string, enum security_manager_user_type> user_type_map = {
@@ -81,9 +82,9 @@ static po::options_description getInstallOptions()
          ("path,p", po::value< std::vector<std::string> >()->multitoken(),
           "path for setting smack labels (may occur more than once).\n"
           "Format: --path <path> <path type>\n"
-          "  where <path type> is: \tprivate, public, public_ro\n"
+          "  where <path type> is: \trw, ro, public_ro\n"
           "example:\n"
-          "        \t--path=/home/user/app private")
+          "        \t--path=/home/user/app rw")
          ("privilege,s", po::value< std::vector<std::string> >(),
           "privilege for the application (may occur more than once)")
          ("uid,u", po::value<uid_t>()->required(),