summaryrefslogtreecommitdiffstats
path: root/net/sched/act_simple.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2006-08-26 20:11:47 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 15:18:24 -0700
commita5531a5d852008be40811496029012f4ad3093d1 (patch)
treef59a1b240753ef4f0a672f256fc01d8a965793d1 /net/sched/act_simple.c
parente3b4eadbea77ecb3c3a74d1bc81b392f454c7f2e (diff)
downloadlinux-stable-a5531a5d852008be40811496029012f4ad3093d1.tar.gz
linux-stable-a5531a5d852008be40811496029012f4ad3093d1.tar.bz2
linux-stable-a5531a5d852008be40811496029012f4ad3093d1.zip
[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 <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_simple.c')
0 files changed, 0 insertions, 0 deletions