Only seteuid/setegid if they differ from current values
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Dec 2011 15:42:51 +0000 (10:42 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Dec 2011 15:42:51 +0000 (10:42 -0500)
commit1576d5822eea6a740b4bb26a2709c4ace248006e
tree1fe14d126c33436569468e5f7e98d192fe3298d7
parent8e0af1b4e36284b519bac6b13928a7589db4da11
Only seteuid/setegid if they differ from current values

According to seteuid(2):

       According to POSIX.1, seteuid() (setegid()) need not permit euid (egid)
       to be the same value as the current effective user (group) ID, and some
       implementations do not permit this.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
librunas/runas.c
This page took 0.02657 seconds and 5 git commands to generate.