sub-process uses /sh instead of a copy of it.
Change-Id: I2f0eb13fe5f08ae4eb6b1f3e57fd6d4119d7e446
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
done
fi
-cp -f /bin/sh /bin/sh-user
-chsmack -a "_" /bin/sh-user
-chsmack -e "User::Shell" /bin/sh-user
chsmack -a "_" /sbin/sdbd-user
chsmack -e "User::Shell" /sbin/sdbd-user
#include "sysdeps.h"
#include "sdb.h"
-#define SHELL_COMMAND "/bin/sh-user"
+#define SHELL_COMMAND "/bin/sh"
/* to send ptm fd to sdbd main */
static ssize_t send_fd(int fd, void *ptr, size_t nbytes, int sendfd)
}
/* sdbd-user's child.
- This just open pts and exec sh-user */
+ This just open pts and exec sh */
if (pid == 0) {
int pts;
setsid();
}
}
- /* argv[0] should be /bin/sh-user. original data is /usr/sbin/sdbd-user */
argv[0] = SHELL_COMMAND;
redirect_and_exec(pts, SHELL_COMMAND, argv, envp);
/* if exec error */