diff options
author | Anna Emese Nyiri <annaemesenyiri@gmail.com> | 2024-12-13 11:44:54 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-17 05:11:06 +0300 |
commit | 77ec16be758ea65de641833149963bec39f311da (patch) | |
tree | 285bdd3bbece1c310125abe5966f77ee3032fcb0 /net/unix/af_unix.c | |
parent | 4fe205539c46ab0add34675ab037f49caa30607c (diff) | |
download | linux-77ec16be758ea65de641833149963bec39f311da.tar.xz |
sock: Introduce sk_set_prio_allowed helper function
Simplify priority setting permissions with the 'sk_set_prio_allowed'
function, centralizing the validation logic. This change is made in
anticipation of a second caller in a following patch.
No functional changes.
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Suggested-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Anna Emese Nyiri <annaemesenyiri@gmail.com>
Link: https://patch.msgid.link/20241213084457.45120-2-annaemesenyiri@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions