# Re: \[RFC net-next 7/9\] genetlink: bring back per op policy

- From: Johannes Berg \<johannes@sipsolutions.net\>
- Date: 2020-10-01 07:53:28 
- List: netdev
- Page: https://ratatoskr.run/netdev/2020/10/11183659
- Thread: https://ratatoskr.run/netdev/2020/10/11183586/t.md

```text
On Wed, 2020-09-30 at 17:05 -0700, Jakub Kicinski wrote:
> Add policy to the struct genl_ops structure, this time
> with maxattr, so it can be used properly.
> 
> Propagate .policy and .maxattr from the family
> in genl_get_cmd() if needed, this say the rest of the

typo: "this way"

> code does not have to worry if the policy is per op
> or global.

Maybe make 'taskstats', which I munged a bit in commit 3b0f31f2b8c9
("genetlink: make policy common to family") go back to using per-command 
policy - properly this time with maxattr?


But the code here looks good to me.

Reviewed-by: Johannes Berg <johannes@sipsolutions.net>

johannes

```
