Date: Fri, 28 Jan 2011 22:33:47 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/hastd hast.h subr.c subr.h Message-ID: <201101282234.p0SMY2sl068244@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2011-01-28 22:33:47 UTC
FreeBSD src repository
Modified files:
sbin/hastd hast.h subr.c subr.h
Log:
SVN rev 218048 on 2011-01-28 22:33:47Z by pjd
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
Revision Changes Path
1.8 +1 -0 src/sbin/hastd/hast.h
1.2 +72 -0 src/sbin/hastd/subr.c
1.2 +1 -0 src/sbin/hastd/subr.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101282234.p0SMY2sl068244>
