Given root privileges for executing the predescribed root commands 18/183118/2 accepted/tizen/unified/20180703.062110 submit/tizen/20180702.095348
authoradhavan.m <adhavan.m@samsung.com>
Mon, 2 Jul 2018 09:46:27 +0000 (15:16 +0530)
committeradhavan.m <adhavan.m@samsung.com>
Mon, 2 Jul 2018 09:50:49 +0000 (15:20 +0530)
Change-Id: I7fd56d8037c07ad4387151a2e6247d6ab39b1398
Signed-off-by: adhavan.m <adhavan.m@samsung.com>
src/services.c

index b71d7a9a54f2a527e9d0cf9a034b2e745943619f..9f2d7bf45923cbc0c40bc052246611ff923159cb 100644 (file)
@@ -501,7 +501,7 @@ int create_userprocess(const char *cmd, pid_t *pid, char * const argv[], char *
     if (*pid == 0) {
         if (should_drop_privileges()) {
             if (argv[2] != NULL && request_validity_to_plugin(PLUGIN_SYNC_CMD_VERIFY_ROOTCMD, argv[2])) {
-                // do nothing
+               set_root_privileges();
                 D("sdb: executes root commands!!:%s\n", argv[2]);
             } else {
                 if (getuid() != g_sdk_user_id && set_sdk_user_privileges(RESERVE_CAPABILITIES_AFTER_FORK) < 0) {