From patchwork Fri Apr 13 12:27:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Czerner X-Patchwork-Id: 897930 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-ext4-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40MxrC2rQGz9s15 for ; Fri, 13 Apr 2018 22:27:55 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754206AbeDMM1x (ORCPT ); Fri, 13 Apr 2018 08:27:53 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:35246 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753454AbeDMM1x (ORCPT ); Fri, 13 Apr 2018 08:27:53 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 99586EBFE5 for ; Fri, 13 Apr 2018 12:27:52 +0000 (UTC) Received: from rh_laptop.redhat.com (unknown [10.40.205.138]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0CA3F2026DFD; Fri, 13 Apr 2018 12:27:51 +0000 (UTC) From: Lukas Czerner To: linux-ext4@vger.kernel.org Cc: Lukas Czerner Subject: [PATCH] chattr.1: 'a' and 'i' attribute do not affect existing file descriptors Date: Fri, 13 Apr 2018 14:27:49 +0200 Message-Id: <1523622469-29637-1-git-send-email-lczerner@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 13 Apr 2018 12:27:52 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 13 Apr 2018 12:27:52 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'lczerner@redhat.com' RCPT:'' Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Change chattr man page to make it clear that 'i' and 'a' attributes does not affect the ability to write to already existing file descriptors Signed-off-by: Lukas Czerner --- misc/chattr.1.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/misc/chattr.1.in b/misc/chattr.1.in index fba9cea..028ae9e 100644 --- a/misc/chattr.1.in +++ b/misc/chattr.1.in @@ -121,9 +121,9 @@ although it can be displayed by .PP A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file, most of the file's -metadata can not be modified, and no data can be written -to the file. Only the superuser or a process possessing the -CAP_LINUX_IMMUTABLE capability can set or clear this attribute. +metadata can not be modified, and the file can not be opened in write mode. +Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE +capability can set or clear this attribute. .PP The 'I' attribute is used by the htree code to indicate that a directory is being indexed using hashed trees. It may not be set or reset using @@ -191,6 +191,8 @@ maintained by Theodore Ts'o . The 'c', 's', and 'u' attributes are not honored by the ext2, ext3, and ext4 filesystems as implemented in the current mainline Linux kernels. +Setting 'a' and 'i' attributes will not affect the ability to write +to already existing file descriptors. .PP The 'j' option is only useful for ext3 and ext4 file systems. .PP