netlabel: Add new NetLabel KAPI interfaces for request_sock security attributes
commitda8c51d336b48a4f965f3f6aa04d3a461bb854ca
authorPaul Moore <paul.moore@hp.com>
Fri, 8 May 2009 21:58:43 +0000 (8 17:58 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 May 2009 23:34:50 +0000 (18 16:34 -0700)
tree5383b818aafe7d6fa4ca20f856751543f571188b
parent81aef7a11718924e60f51bc4472bdbba74d4b1cb
netlabel: Add new NetLabel KAPI interfaces for request_sock security attributes

[NOTE: based on 389fb800ac8be2832efedd19978a2b8ced37eb61 and
                07feee8f812f7327a46186f7604df312c8c81962]

This patch adds the netlbl_req_setattr() and netlbl_req_delattr() functions
which can be used by LSMs to set and remove the NetLabel security attributes
from request_sock objects used in incoming connection requests.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/net/netlabel.h
net/netlabel/netlabel_kapi.c