diff options
author | Doug Ledford <dledford@redhat.com> | 2019-06-22 00:00:44 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-06-25 22:26:54 +0300 |
commit | 34d65cd837d0c77fac0c0da632c616030b2927e3 (patch) | |
tree | 6f6fce7a3ca546a087090a6fcd84b9f3e8a4a7e7 /arch/arm/boot/dts/picoxcell-pc7302-pc3x3.dts | |
parent | e9816ddf2a33f3afdf3dfc35c21aafad389ee482 (diff) | |
download | linux-34d65cd837d0c77fac0c0da632c616030b2927e3.tar.xz |
RDMA/netlink: Audit policy settings for netlink attributes
For all string attributes for which we don't currently accept the element
as input, we only use it as output, set the string length to
RDMA_NLDEV_ATTR_EMPTY_STRING which is defined as 1. That way we will only
accept a null string for that element. This will prevent someone from
writing a new input routine that uses the element without also updating
the policy to have a valid value.
Also while there, make sure the existing entries that are valid have the
correct policy, if not, correct the policy. Remove unnecessary checks
for nla_strlcpy() overflow once the policy has been set correctly.
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'arch/arm/boot/dts/picoxcell-pc7302-pc3x3.dts')
0 files changed, 0 insertions, 0 deletions