]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r287345:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 4 Sep 2015 00:42:05 +0000 (00:42 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 4 Sep 2015 00:42:05 +0000 (00:42 +0000)
commita9ce70772b5ff66c7f26028d7fa115602651275b
treefa4134ef9c8fbe0197f703a405b6850fab84cbc3
parent08e66c9201a2a577aaa5b0f8141b119b885049ab
MFC r287345:

Drop group privileges after opening the kvm descriptor, otherwise, the code
would not drop privileges as expected.

While there also add checks for the drop and bail out immediately if we
failed.

git-svn-id: svn://svn.freebsd.org/base/stable/9@287447 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/bluetooth/btsockstat/btsockstat.c