From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 886A8A04B1; Mon, 5 Oct 2020 20:17:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D20381B677; Mon, 5 Oct 2020 20:17:23 +0200 (CEST) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id E16411B667 for ; Mon, 5 Oct 2020 20:17:21 +0200 (CEST) Received: by mail-pf1-f196.google.com with SMTP id d6so7474182pfn.9 for ; Mon, 05 Oct 2020 11:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rjFP5zKDniu1v2qog4ol4WMD7gBMCVMI0mEkcRB7kxY=; b=dyg05f8AYg+VGz0CoSiDKkwbZGedTkp4W0Dx14odJbFklbqOshvRW1uUNJCrMs+IDd x90toKoheUjW4+UIcAb/tuVP2QSr9syLcVviCcMrybcGRq0NabuP7ZRGm5g25XeldJ+E XffbJrFiQIJJaSMVfY/KAb9y55YSzP68UENvA04kr+k14MzgZK6RU6yfANktwPHD5G09 y4jTRcSSr8K/ncSMpSKcy1UolttW5RQ/kvjAfqSdl6Bj0oOQkUNnBoOM5T80zOXN+AgA rmqP6TI5tSRWbpkI9MsqEKgIEmel/dz9qznCgXXBKRfG76i+GnzHpMXxTfLkwKwYaxBn vpMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rjFP5zKDniu1v2qog4ol4WMD7gBMCVMI0mEkcRB7kxY=; b=WpTYytP1uE1AhSjaSG7QhD1WxCIthUVqDNLXsvY+yXEMQvytr1svyur8MkZTo0qp6O spXbWxN1pZV43Hd/gou4OKbichulUzK130Jt3rWnyoCKBRl0UPczXhKoCoGXAQ+gXSOZ j4cNdHgD7f0C3jbkBUoXaUXsk/uX3D5y9zORN+EIy0rJLFy2wwAE/Pmh/s9+qz6Lcv3v M0irCoWbghhloliqomDL9OeUPKBXTpakH+sqkp5KK4R5klZXdhg+lfpuG5P6DjmtXFYH /7KHg4ouxmevjlhkp0lSRyI6s7SRrJ56gccan8E6KCMxho+1XwmmQASRwX0jhRaFx6Ic X9vw== X-Gm-Message-State: AOAM532sRKNFIR5DnKYIafyz2utcqPM8Ka977KWCl8xx8UuIBn0lSMYC OI6bYjuFhiUWHtWwgYUsGciiww== X-Google-Smtp-Source: ABdhPJxT4AYGRmF5M+k3RkE2ll9/24cSAIVlAZd4DTmzxzJt9gOU6txnx5SGuW+seSaYQR4iNSJhtw== X-Received: by 2002:a63:2a87:: with SMTP id q129mr689251pgq.371.1601921840090; Mon, 05 Oct 2020 11:17:20 -0700 (PDT) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j19sm622583pfe.108.2020.10.05.11.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 11:17:19 -0700 (PDT) Date: Mon, 5 Oct 2020 11:17:11 -0700 From: Stephen Hemminger To: Ferruh Yigit Cc: Jakub Grajciar , dev@dpdk.org Message-ID: <20201005111711.1e78ee0d@hermes.local> In-Reply-To: <5b874482-baaa-1a65-b101-983aa3bff5ee@intel.com> References: <20201005123900.32723-1-jgrajcia@cisco.com> <5b874482-baaa-1a65-b101-983aa3bff5ee@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] net/memif: use abstract socket address X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, 5 Oct 2020 14:09:20 +0100 Ferruh Yigit wrote: > On 10/5/2020 1:39 PM, Jakub Grajciar wrote: > > Abstract socket address has no connection with > > filesystem pathnames and the socket dissapears > > once all open references are closed. > > > > Memif pmd will use abstract socket address by default. > > For backwards compatibility use new argument > > 'socket-abstract=no' > > > > Why this backward compatibility is required? How the end user affected from > swithching to abstract sockets? It would only matter if mixing applications with different versions. > Since when linux supports abstract sockets, does this switch will cause problem > with old kernel versions? This is not new, it dates back to Linux 2.4 or earlier. > > Is there any benefit of the abstract sockets other than socket cleaned > automatically (I assume for unix sockets it is done when file filesystem > reference removed)? The big one is that applications don't have to blindly unlink the old filesystem remnant. This means that if application can't bind it means another application is still running with that name. So abstract sockets are safer. Abstract sockets are not pathnames so they get handled differently by security systems (like SELinux and AppArmor). This can be helpful in containers.