From: sangwook lee Date: Wed, 26 Jan 2022 01:55:25 +0000 (+0900) Subject: Shell Login for root mode by Mr.Manish X-Git-Tag: submit/tizen_6.5/20220411.123120~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcb8b876e08b179c4e2d75669fb5488bd603619d;p=sdk%2Ftarget%2Fsdbd.git Shell Login for root mode by Mr.Manish Change-Id: I6e47b633fa72e5ef34d2ec6ef55fc4aedc1a7157 Signed-off-by: sangwook lee --- diff --git a/src/services.c b/src/services.c index c0e795c..8f8a1a5 100755 --- a/src/services.c +++ b/src/services.c @@ -852,11 +852,15 @@ static int create_subproc_thread(const char *name, int lines, int columns) return -1; } - char * const args[] = { + char * args[] = { USER_DAEMON_COMMAND, "-", NULL, }; + if (rootshell_mode == 1) + { + args[1]="-l"; + } ret_fd = create_userprocess(USER_DAEMON_COMMAND, &pid, (char * const*)args, (char * const*)envp); #if 0 // FIXME: should call login command instead of /bin/sh if (should_drop_privileges()) {