]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement function that drops privileges by:
authorpjd <pjd@FreeBSD.org>
Fri, 28 Jan 2011 22:33:47 +0000 (22:33 +0000)
committerpjd <pjd@FreeBSD.org>
Fri, 28 Jan 2011 22:33:47 +0000 (22:33 +0000)
commit1d4238ea6d7bb3df80ae2d80f0563eb3b688c32f
tree9e1f37d4547c7063d6f249104a2aa450d7ef0cdb
parentb28599779707d219cdb016a8fbde16168a52faed
Implement function that drops privileges by:
- chrooting to /var/empty (user hast home directory),
- setting groups to 'hast' (user hast primary group),
- setting real group id, effective group id and saved group id to 'hast',
- setting real user id, effective user id and saved user id to 'hast'.
At the end verify that those operations where successfull.

MFC after: 1 week
sbin/hastd/hast.h
sbin/hastd/subr.c
sbin/hastd/subr.h