Re: [PATCH v1 2/5] connector/cn_proc: Add filtering to fix some bugs

From: Anjali Kulkarni
Date: Wed Mar 15 2023 - 15:14:10 EST


access netlink_sock outside of af_netlink, or at least I do not see any current access to it, and functions like nlk_sk are static. Also, if we add an allocation function, we won’t know the first time the client sends it’s data (we need to know “initial” in the patches), so we will need to add a new field in the socket to indicate first access or add a lot more infrastructure in cn_proc to store each client’s information.

ANJALI> My mistake above - I guess we could store it as a new sub-field in the new netlink_sock structure.