svace fix 74/213974/2 submit/tizen/20190917.062106
authorsanghyeok.oh <sanghyeok.oh@samsung.com>
Tue, 17 Sep 2019 05:44:06 +0000 (14:44 +0900)
committersanghyeok.oh <sanghyeok.oh@samsung.com>
Tue, 17 Sep 2019 05:55:11 +0000 (14:55 +0900)
Change-Id: Ie5f39ba6e883d259b6da10c4052000cae5e4c738
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
src/dbuspolicy_finder.cpp

index 674b534..b4914c6 100644 (file)
@@ -227,7 +227,7 @@ template <> void matchPolicy<PolicyAccess>(const PolicyAccess & policy, const Ma
        }
 }
 
-template <typename T> void pickPolicy(const StorageBackendXML & storage, const typename T::item_type::match_type & mi, uid_t numberUser, gid_t numberGroup, bool noFilter) {
+template <typename T> void pickPolicy(const StorageBackendXML & storage, const typename T::item_type::match_type & mi, uid_t numberUser, gid_t numberGroup, bool noFilter) noexcept {
        matchPolicy<T>(storage.getPolicyContextDefault<T>(), mi, noFilter, "Context Default:");
 
        const auto & groups = storage.getPoliciesGroup<T>();
@@ -312,7 +312,7 @@ int bailOut(const std::string & error) {
 }
 
 void getToken(const std::string & long_name, std::string & interface, std::string & member, MessageType & type, std::string & serviceName,
-               gid_t & numberGroup, uid_t & numberUser, std::string & path)
+               gid_t & numberGroup, uid_t & numberUser, std::string & path) noexcept
 {
        std::string short_name = long_name;