[Date Prev] [Date Index] [Date Next] [Thread Prev] [Thread Index] [Thread Next]

[PATCH] Auth with SO_PEERCRED over AF_UNIX

Anton Lundin glance@acc.umu.se
Wed, 3 Nov 2010 16:19:19 GMT


Hi!

This patch uses SO_PEERCRED to authenticate uses over AF_UNIX when the
access is set to allowed.

http://www.acc.umu.se/~glance/conserver/conserver-8.1.17-so-peercreed.patch

The only questionable thing this patch does it that it allows root to
impersonate any other user. This is mainly for us to get a sane
usersname in the who output and in the logfiles, so we can see who did
what and not just that root did it.

The linenumbers in the patch is when applying it after the
power-control-patch but its trivial to make it apply without it.

//Anton

-- 
Anton Lundin	+46702-161604

Attachment: pgpes0_1E3e72.pgp
Description: PGP signature