From: Christoph Hellwig Subject: Re: [PATCH v6 05/16] sockfs: getxattr: Fail with -EOPNOTSUPP for invalid attribute names Date: Thu, 29 Sep 2016 13:24:24 -0700 Message-ID: <20160929202424.GA9499@infradead.org> References: <1475164125-28635-1-git-send-email-agruenba@redhat.com> <1475164125-28635-6-git-send-email-agruenba@redhat.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <1475164125-28635-6-git-send-email-agruenba@redhat.com> Sender: linux-unionfs-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Andreas Gruenbacher Cc: Alexander Viro , linux-fsdevel@vger.kernel.org, Tyler Hicks , ecryptfs@vger.kernel.org, linux-unionfs@vger.kernel.org, David Howells , Serge Hallyn , Dmitry Kasatkin , linux-ima-devel@lists.sourceforge.net, Paul Moore , Stephen Smalley , Eric Paris , Casey Schaufler , Oleg Drokin , Andreas Dilger On Thu, Sep 29, 2016 at 05:48:34PM +0200, Andreas Gruenbacher wrote: > The standard return value for unsupported attribute names is > -EOPNOTSUPP, as opposed to undefined but supported attributes > (-ENODATA). > > Also, fail for attribute names like "system.sockprotonameXXX" and > simplify the code a bit. The only sensible thing to do with this xattr abuse is to remove it entirely..