From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Fedin Subject: Re: problem vhost-user sockets Date: Tue, 15 Dec 2015 17:21:25 +0300 Message-ID: <00cd01d13743$e1a7c4a0$a4f74de0$@samsung.com> References: <00c101d13735$e85453d0$b8fcfb70$@samsung.com> <20151215140450.GL29571@yliu-dev.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, 'Ilya Maximets' , 'Dyasly Sergey' To: 'Yuanhan Liu' Return-path: Received: from mailout4.w1.samsung.com (mailout4.w1.samsung.com [210.118.77.14]) by dpdk.org (Postfix) with ESMTP id 3CD4911A2 for ; Tue, 15 Dec 2015 15:21:27 +0100 (CET) Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NZE00DFIL7PMO00@mailout4.w1.samsung.com> for dev@dpdk.org; Tue, 15 Dec 2015 14:21:25 +0000 (GMT) In-reply-to: <20151215140450.GL29571@yliu-dev.sh.intel.com> Content-language: ru List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hello! > I'm thinking you can't simply unlink a file given by a user inside > a libraray unconditionaly. Say, what if a user gives a wrong socket > path? Well... We can improve the security by checking that: a) The file exists and it's a socket. b) Nobody is listening on it. > I normally write a short script to handle it automatically. I know, you can always hack up some kludges, just IMHO it's not production-grade solution. What if you are cloud administrator, and you have 1000 users, each of them using 100 vhost-user interfaces? List all of them in some script? Too huge job, i would say. And without it the thing just appears to be too fragile, requiring manual maintenance after a single stupid failure. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia