On Thu, Jul 09, 2015 at 01:34:26PM -0400, kaike....@intel.com wrote:
> From: Kaike Wan <kaike....@intel.com>
> 
> This patch adds a function to check if listeners for a netlink multicast
> group are present. It also adds a function to receive netlink response
> messages.
> 
> Signed-off-by: Kaike Wan <kaike....@intel.com>
> Signed-off-by: John Fleck <john.fl...@intel.com>
> Signed-off-by: Ira Weiny <ira.we...@intel.com>
>  drivers/infiniband/core/netlink.c |   55 
> +++++++++++++++++++++++++++++++++++++
>  include/rdma/rdma_netlink.h       |    7 +++++
>  2 files changed, 62 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/infiniband/core/netlink.c 
> b/drivers/infiniband/core/netlink.c
> index 23dd5a5..d47df93 100644
> +++ b/drivers/infiniband/core/netlink.c
> @@ -49,6 +49,14 @@ static DEFINE_MUTEX(ibnl_mutex);
>  static struct sock *nls;
>  static LIST_HEAD(client_list);
>  
> +int ibnl_chk_listeners(unsigned int group)
> +{
> +     if (netlink_has_listeners(nls, group) == 0)
> +             return -1;
> +     return 0;
> +}
> +EXPORT_SYMBOL(ibnl_chk_listeners);

I was thinking about this today, and, where is the security?

What prevents a non-root user from making the above true and/or worse?

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to