diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2023-12-07 09:54:04 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2023-12-07 09:54:04 -0800 |
| commit | a041adee8a9c8d07d876d0633476f407554fc8cb (patch) | |
| tree | 91210cce53a6582e7083adc333b17823fe0f3756 /net/psample/psample.c | |
| parent | Merge branch 'fixes-for-ktls' (diff) | |
| parent | drop_monitor: Require 'CAP_SYS_ADMIN' when joining "events" group (diff) | |
| download | linux-a041adee8a9c8d07d876d0633476f407554fc8cb.tar.gz linux-a041adee8a9c8d07d876d0633476f407554fc8cb.zip | |
Merge branch 'generic-netlink-multicast-fixes'
Ido Schimmel says:
====================
Generic netlink multicast fixes
Restrict two generic netlink multicast groups - in the "psample" and
"NET_DM" families - to be root-only with the appropriate capabilities.
See individual patches for more details.
====================
Link: https://lore.kernel.org/r/20231206213102.1824398-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/psample/psample.c')
| -rw-r--r-- | net/psample/psample.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/psample/psample.c b/net/psample/psample.c index 81a794e36f53..c34e902855db 100644 --- a/net/psample/psample.c +++ b/net/psample/psample.c @@ -31,7 +31,8 @@ enum psample_nl_multicast_groups { static const struct genl_multicast_group psample_nl_mcgrps[] = { [PSAMPLE_NL_MCGRP_CONFIG] = { .name = PSAMPLE_NL_MCGRP_CONFIG_NAME }, - [PSAMPLE_NL_MCGRP_SAMPLE] = { .name = PSAMPLE_NL_MCGRP_SAMPLE_NAME }, + [PSAMPLE_NL_MCGRP_SAMPLE] = { .name = PSAMPLE_NL_MCGRP_SAMPLE_NAME, + .flags = GENL_UNS_ADMIN_PERM }, }; static struct genl_family psample_nl_family __ro_after_init; |
