shell: introduce sdb user daemon for user shell 06/116506/12
authorSooyoung Ha <yoosah.ha@samsung.com>
Sat, 25 Feb 2017 14:45:51 +0000 (23:45 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Wed, 8 Mar 2017 07:54:40 +0000 (16:54 +0900)
commit6e86939b66f46597af5f6017a856bd69cc50c87c
treed3c5db22b809b6c7b7db94dffb1c60f81b140c74
parentf67a8533da66deabfa20ed445cfd9951ac83e81c
shell: introduce sdb user daemon for user shell

To create a shell session via sdb, SDBD open the ptmx and then a pts
device is created. Next, SDBD forks a shell who use the pts opened
previously. BUT, forked shell cannot use the pts because forked shell
has no privilege to read the pts.
So I introduce new sdb user daemon who is only for launching shell.
The sdb user daemon has low privilege, same as user shell, and has few
functions - open ptmx, pass opened ptmx fd to SDBD, and exec shell.

Change-Id: I2332419e4b186d4b18c281a554569735617e9f64
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
CMakeLists.txt
packaging/sdbd.spec
packaging/sdbd_emulator.service
src/services.c
src/subprocess.c [new file with mode: 0644]