From: Thomas Graf Date: Sun, 27 Aug 2006 03:11:47 +0000 (-0700) Subject: [NETLINK]: Improve string attribute validation X-Git-Tag: v2.6.19-rc1~1272^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5531a5d852008be40811496029012f4ad3093d1;p=pandora-kernel.git [NETLINK]: Improve string attribute validation Introduces a new attribute type NLA_NUL_STRING to support NUL terminated strings. Attributes of this kind require to carry a terminating NUL within the maximum specified in the policy. The `old' NLA_STRING which is not required to be NUL terminated is extended to provide means to specify a maximum length of the string. Aims at easing the pain with using nla_strlcpy() on temporary buffers. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller --- Reading git-diff-tree failed