server: skip chown if not a super user 54/131254/1
authorBoram Park <boram1288.park@samsung.com>
Fri, 26 May 2017 04:56:56 +0000 (13:56 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 26 May 2017 04:56:56 +0000 (13:56 +0900)
commita5d1ef393ed2106a478f427675c3ae38ad866bd4
tree47d6ca57914a4c99dc4ae490243a92190d013a98
parent62b2626eb922c03106828989c297b58ef385c8d3
server: skip chown if not a super user

If tdm_display_init is called by non super user, we don't need to
change the owner and group of a tdm socket file. And also changing
the owner of the tdm socket file which is created by non super user
is not allowed. So we just skip chown in this case.

Change-Id: I63aa086eabb8d55d33252711e59028d7d6e6a94b
src/tbm_drm_helper_server.c