From: seolheui, kim Date: Fri, 28 Dec 2018 02:56:38 +0000 (+0900) Subject: Exclude dbus service from stop units X-Git-Tag: submit/tizen_4.0/20181228.090903^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5f7174efe3480a30f1fd59e039681e144e872be;p=platform%2Fcore%2Fsecurity%2Fode.git Exclude dbus service from stop units Change-Id: I4e1a00207b3889c957eda8c978520d7fa833b1d4 Signed-off-by: seolheui, kim --- diff --git a/server/internal-encryption.cpp b/server/internal-encryption.cpp index 46b389b..b115034 100644 --- a/server/internal-encryption.cpp +++ b/server/internal-encryption.cpp @@ -239,7 +239,8 @@ void stopSystemdUnits() .get("(o)", &unit); auto unescapedName = getDecodedPath(unit, "/org/freedesktop/systemd1/unit/"); - unitsToStop.insert(unescapedName); + if (unescapedName.find("dbus", 0, 4) == std::string::npos) + unitsToStop.insert(unescapedName); } catch (runtime::Exception &e) { ERROR(SINK, "Killing process: " + std::to_string(pid)); ::kill(pid, SIGKILL);