Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp865967pxb; Thu, 2 Sep 2021 17:30:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKlora6yPzkJy3NPQ2tY8N/fmKErVGVlbGYGgBLvUBm52MXDzZH32P+5IQzSjBPoQH+M9n X-Received: by 2002:a17:906:9a4e:: with SMTP id aj14mr1024526ejc.84.1630629012681; Thu, 02 Sep 2021 17:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630629012; cv=none; d=google.com; s=arc-20160816; b=xVU1gw1Od5+wRczlV75lco5OJL1lwMyH0EtO1gTgUvPIWP9dzQp478GnElu59pVBiR FQ9oNk/EyC05c7KKYOLdLoOryHKoHKyZosbQDCXSe8iQYwGkza8pNCeMBC7ts4G/DTty ctPo7QH75qNcO+HFJQAZOKWAiCk8fx2ieAObAUvmm7xlGRQjjwqtAHTtSSvqU0qvT18D YZ4tlqkgRkv+UliiVlnBSRKLu7oqvyI5qhtMKvPELtdxp9P33C+IDXur4utFnZaNxzIq lyfHSKjCu/emf2gsDFp7G0FQ41XqLohPQKQ8Aogdt1FYztXP7rJ2aYKR2+WKpuCdKbuM Z2RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dThrFUEauS0PVKV2QOhWb7PoGtgPW3EHRoCBlNIp8ng=; b=bNXhN1sX6tmLK481vMvE5y2SqaZMSjLp6IdQOs7HpWWl55BNU3SEwG6Q9xPz4ef1ls byKYbBQwpz0D9BdGuCy1ila5CMuB5rhuUZdvE+uFOLPif0nFaVZGYBijOKXc0/zs5fp/ 6vtMNFNAi2tEnpO/b+ADhNu+jsjcbfLRdcjWoXlfxPa2U+u+82x3sTnQmmui/IzYuqIq vV0RqzHsRfuaIewgjGOfri/37ni/3NX1ERG870y0cW4B2uxOGmcSvi9DZItei+SMu2gs OsW/ohe6KzlsvKc79jZ4XjR4ASQGWPg3ibxqy7juCD6n7ZFTCQZEp4T7CTZ2jZHzX+YV G28w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="GdV4Q3M/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j14si3920205edk.558.2021.09.02.17.29.49; Thu, 02 Sep 2021 17:30:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="GdV4Q3M/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345689AbhIBPj6 (ORCPT + 99 others); Thu, 2 Sep 2021 11:39:58 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:25338 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345837AbhIBPjy (ORCPT ); Thu, 2 Sep 2021 11:39:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630597135; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dThrFUEauS0PVKV2QOhWb7PoGtgPW3EHRoCBlNIp8ng=; b=GdV4Q3M/yb5GB8iBS1zWk5RORuPPol5m8SZsaCmciWDmRkUkVid3OH9ce6so5VoXKgyLC8 Fd8OXuGwQNWKRuuJcW5RiFG9Hg9mSLHjDu286eyMeMoZtKZIyCPdlH2UtUVzjHv3FZGaJE 32b1qzSuvNhTHyZMyAUS09jZ2xgDO4A= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-509-fWh-sNzWP9GaIwZRi3O0-A-1; Thu, 02 Sep 2021 11:38:54 -0400 X-MC-Unique: fWh-sNzWP9GaIwZRi3O0-A-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7C0A6801AE3; Thu, 2 Sep 2021 15:38:52 +0000 (UTC) Received: from horse.redhat.com (unknown [10.22.8.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id B2AF728554; Thu, 2 Sep 2021 15:38:48 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 52139220257; Thu, 2 Sep 2021 11:38:48 -0400 (EDT) Date: Thu, 2 Sep 2021 11:38:48 -0400 From: Vivek Goyal To: linux-api@vger.kernel.org, mtk.manpages@gmail.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, virtio-fs@redhat.com, dwalsh@redhat.com, dgilbert@redhat.com, christian.brauner@ubuntu.com, casey.schaufler@intel.com, linux-security-module@vger.kernel.org, selinux@vger.kernel.org, tytso@mit.edu, miklos@szeredi.hu, gscrivan@redhat.com, bfields@redhat.com, stephen.smalley.work@gmail.com, agruenba@redhat.com, david@fromorbit.com, viro@zeniv.linux.org.uk Subject: [PATCH 2/1] man-pages: xattr.7: Update text for user extended xattr behavior change Message-ID: References: <20210902152228.665959-1-vgoyal@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210902152228.665959-1-vgoyal@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I have proposed a patch to relax restrictions on user extended xattrs and allow file owner (or CAP_FOWNER) to get/set user extended xattrs on symlink and device files. Signed-off-by: Vivek Goyal --- man7/xattr.7 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) Index: man-pages/man7/xattr.7 =================================================================== --- man-pages.orig/man7/xattr.7 2021-09-01 13:46:16.165016463 -0400 +++ man-pages/man7/xattr.7 2021-09-01 16:31:51.038016463 -0400 @@ -129,8 +129,13 @@ a way not controllable by disk quotas fo special files and directories. .PP For this reason, -user extended attributes are allowed only for regular files and directories, -and access to user extended attributes is restricted to the +user extended attributes are allowed only for regular files and directories +till kernel 5.14. In newer kernel (5.15 onwards), restrictions have been +relaxed a bit and user extended attributes are also allowed on symlinks +and special files as long as caller is either owner of the file or is +privileged (CAP_FOWNER). + +Access to user extended attributes is restricted to the owner and to users with appropriate capabilities for directories with the sticky bit set (see the .BR chmod (1)