chiark / gitweb /
[PATCH] udevd - client access authorization
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Thu, 12 Feb 2004 06:32:11 +0000 (22:32 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:32:26 +0000 (21:32 -0700)
commit0028653cdff8e3a7f3577509ce89f8bb15efa01e
treefb591e8be49c8426109cf427741e2b40c44102cc
parentf8911dbb0404902502085c7bb204f2f9c5bc1b9c
[PATCH] udevd - client access authorization

Here is the badly needed client authorization for udevd.
Since we switched to abstract namespace sockets, we are unable to
control the access of the socket by file permissions.

So here we send a ancillary credential message with every datagram,
to be able to verify the uid of the sender. The sender can't fake the
credentials, cause the kernel doesn't allow it for non root users.

udevd is still working with klibc here :)
udevd.c
udevsend.c