Page MenuHomeFreeBSD

netlink: underscore snl_get_genl_family_info() to discourage its use
ClosedPublic

Authored by glebius on Thu, Jan 16, 7:48 AM.
Tags
None
Referenced Files
F108066842: D48480.diff
Tue, Jan 21, 2:30 AM
Unknown Object (File)
Sun, Jan 19, 11:04 AM
Unknown Object (File)
Sun, Jan 19, 4:20 AM
Unknown Object (File)
Sat, Jan 18, 9:03 AM
Subscribers

Details

Summary

This function uses already supposedly opaque struct _getfamily_attrs as
the argument and it fills it with pointers to volatile memory, which makes
it is unsafe for general use. While here also underscore structures that
hang off the struct _getfamily_attrs.

Small programs like powerd(8) and RPC daemons are converted to use
snl_get_genl_mcast_group() and/or snl_get_genl_family(). The genl(1)
utility was fixed not to mix its own parsers with parsers declared in
netlink_snl_generic.h.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable