Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2522591imm; Thu, 27 Sep 2018 14:26:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV62JgKZZTeOm9t4MiVto7fJbsu5VksTn4npzOBcg2tn5ST0zaCh4jOoLRsoQtS9Pd5a2OWcJ X-Received: by 2002:a17:902:6b03:: with SMTP id o3-v6mr9540662plk.333.1538083586427; Thu, 27 Sep 2018 14:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538083586; cv=none; d=google.com; s=arc-20160816; b=Iz4hQvHpZgx6rhvwOLyVr00KY8/yTL3JV0dy3CbvudFVhNIBJn9aVBXQkvg2nMi7gT 0GaaGOIrM1Rq2GrYQXR/0SQoujkL5UVnDi0DuX9gQUBYky/fA6xa2zARoa9vAI/tp4NQ 6G0TIGwRTTOIW4iYvIb0e7D6bNQfUkolgR2UPiZL8nNyGPhdd9yT6b3bpVXPZU4Zfgev pj1pVDTlEb9sGqF3/0vasf9QcX6TCX4BF3KXnHd4HjlSnVjHxDxAG/hLsUzQHMAzEbCP PoGFVEjNeM5BWbL4eMcsdhw/mY7i44hAYZ8GzD744FuIsqKngsGzYZz4GzpTila6//jt GpIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=0E7M1WvDFg9HXviop/HnU2ESiqyEmxnt+OaU8DuAdNU=; b=BmSpblC52INAa9rd7jza13eb3lT/f2uaGiKzJJ5mh6zD/49tojhYwMWHw0zdHEZoJn nfplobBUHMiYZG/UAUh5mwrh/NnDpE7cBp0DiKMY0Et8KV+DChMYEkCyXLwv+yUYppXR S9hmq51FJc/zs3SR7M54TmJfwQ51MLPIX0W3iBVza8Q9BfsxqYxPYO5YjL1KX5Amoxrr YaFaLm2sdNPLCFkQJYgcUlglTtiEX5/UG4gUZou6y17IL4f6upbYxFkvSzQFiTCr4YW3 rx0SO5J38TygeLZVWWkBNIK/5CixpL+exxssC6CnFvgyHBEEKS5JOVuQjDmuujUNGYnS 2u2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73-v6si3031731pfv.139.2018.09.27.14.26.09; Thu, 27 Sep 2018 14:26:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728186AbeI1DoF (ORCPT + 99 others); Thu, 27 Sep 2018 23:44:05 -0400 Received: from namei.org ([65.99.196.166]:33426 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727340AbeI1DoF (ORCPT ); Thu, 27 Sep 2018 23:44:05 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id w8RLNgFX008530; Thu, 27 Sep 2018 21:23:42 GMT Date: Fri, 28 Sep 2018 07:23:42 +1000 (AEST) From: James Morris To: Dave Chinner cc: Alan Cox , TongZhang , darrick.wong@oracle.com, linux-xfs@vger.kernel.org, LKML , linux-security-module@vger.kernel.org, Wenbo Shen Subject: Re: Leaking Path in XFS's ioctl interface(missing LSM check) In-Reply-To: <20180927013812.GF31060@dastard> Message-ID: References: <5EF0D46A-C098-4B51-AD13-225FFCA35D4C@vt.edu> <20180926013329.GD31060@dastard> <20180926192426.472360ea@alans-desktop> <20180927013812.GF31060@dastard> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Sep 2018, Dave Chinner wrote: > Sure, but there are so many CAP_SYS_ADMIN-only ioctls in the kernel > that have no LSM coverage that this is not an isolated problem that > people setting up such systems have to deal with. I could be missing something here, but all ioctls are mediated by LSM at a high level (security_file_ioctl). Some problematic ones are singled out at that point by LSMs for special handling. -- James Morris