Re: LSM patch for Linux-2.4.20-8

From: Seth Arnold (sarnold@private)
Date: Wed Jan 19 2005 - 00:26:27 PST


On Wed, Jan 19, 2005 at 01:17:21PM +0530, Syed Ahemed wrote:
> security_ops->socket_create( ) is the hook employed by the LSM framework 
> selinux_socket_create ( ) is the implementation of the security module
> function

You need to look at the security/security.c register_security()
function. It will copy function pointers from security modules into the
security_ops structure. The core kernel code calls functions which call
function pointers which could be (a) dummy (b) over-ridden by a module.

I hope this helps :)





This archive was generated by hypermail 2.1.3 : Wed Jan 19 2005 - 00:26:57 PST