]> The Tcpdump Group git mirrors - tcpdump/commit
Exit if capng_change_id() fails to change the uid
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 14 Jul 2018 16:18:12 +0000 (18:18 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 14 Jul 2018 18:52:59 +0000 (20:52 +0200)
commit352dafa7b686cce3e20b045567fbb05e21c6f087
tree86201ac4ab027e57dd9160675415fdc7137e5c13
parentd028c3a1824903cd0b901c8890e20e687591241f
Exit if capng_change_id() fails to change the uid

From Linux manual page of capng_change_id():
    Note:  the only  safe action to do upon failure of this function is to
    probably exit. This is because you are likely in a situation with par-
    tial permissions and not what you intended.

(backported from commit e6a56690 in master)
tcpdump.c