From unknown Thu Sep 11 07:55:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#12020 <12020@debbugs.gnu.org> To: bug#12020 <12020@debbugs.gnu.org> Subject: Status: ls should show when extended system attributes are set Reply-To: bug#12020 <12020@debbugs.gnu.org> Date: Thu, 11 Sep 2025 14:55:00 +0000 retitle 12020 ls should show when extended system attributes are set reassign 12020 coreutils submitter 12020 Luk Claes severity 12020 normal tag 12020 notabug moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 21 17:16:56 2012 Received: (at submit) by debbugs.gnu.org; 21 Jul 2012 21:16:56 +0000 Received: from localhost ([127.0.0.1]:56294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ssh2l-000168-U1 for submit@debbugs.gnu.org; Sat, 21 Jul 2012 17:16:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50914) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SseiG-0006Ae-7Z for submit@debbugs.gnu.org; Sat, 21 Jul 2012 14:47:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ssec3-0007PT-Em for submit@debbugs.gnu.org; Sat, 21 Jul 2012 14:41:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:34893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssec3-0007PP-BZ for submit@debbugs.gnu.org; Sat, 21 Jul 2012 14:41:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssec2-0004YZ-HJ for bug-coreutils@gnu.org; Sat, 21 Jul 2012 14:41:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ssec1-0007P9-NA for bug-coreutils@gnu.org; Sat, 21 Jul 2012 14:41:10 -0400 Received: from smtp1.ugent.be ([157.193.71.182]:59391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssec1-0007OO-Gt for bug-coreutils@gnu.org; Sat, 21 Jul 2012 14:41:09 -0400 Received: from localhost (mcheck2.ugent.be [157.193.49.249]) by smtp1.ugent.be (Postfix) with ESMTP id C691588E2 for ; Sat, 21 Jul 2012 20:41:02 +0200 (CEST) X-Virus-Scanned: by UGent DICT Received: from smtp1.ugent.be ([157.193.71.182]) by localhost (mcheck2.UGent.be [157.193.43.11]) (amavisd-new, port 10024) with ESMTP id lxVfRhnORqmi for ; Sat, 21 Jul 2012 20:41:02 +0200 (CEST) Received: from [172.16.0.2] (78-23-182-143.access.telenet.be [78.23.182.143]) (Authenticated sender: lukclaes) by smtp1.ugent.be (Postfix) with ESMTPSA id 21AE48885 for ; Sat, 21 Jul 2012 20:41:02 +0200 (CEST) Message-ID: <500AF7BC.80806@debian.org> Date: Sat, 21 Jul 2012 20:41:00 +0200 From: Luk Claes User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120624 Icedove/10.0.5 MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: ls should show when extended system attributes are set X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at jchkm3 with ID 500AF7BD.005 by Joe's j-chkmail (http://helpdesk.ugent.be/email/)! X-j-chkmail-Enveloppe: 500AF7BD.005 from 78-23-182-143.access.telenet.be/78-23-182-143.access.telenet.be/78.23.182.143/[172.16.0.2]/ X-j-chkmail-Score: MSGID : 500AF7BD.005 on smtp1.ugent.be : j-chkmail score : X : R=. U=. O=## B=0.000 -> S=0.166 X-j-chkmail-Status: Ham X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 21 Jul 2012 17:16:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Hi Currently when using POSIX acls, this is not visible when listing files with ls. This means that users and system administrators cannot easily see when (non trivial) POSIX acls are in use which obviously can result in wrong expectations when only seeing the rwx kind of acls. At a minimum I would like that ls would show that extended system attributes are being used (maybe by showing something different than - for the type of file?). Cheers Luk From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 21 18:03:19 2012 Received: (at 12020) by debbugs.gnu.org; 21 Jul 2012 22:03:20 +0000 Received: from localhost ([127.0.0.1]:56385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sshlf-000303-Iu for submit@debbugs.gnu.org; Sat, 21 Jul 2012 18:03:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10201) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sshlc-0002zq-B5; Sat, 21 Jul 2012 18:03:19 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6LLunaa024280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 21 Jul 2012 17:56:50 -0400 Received: from [10.3.113.13] ([10.3.113.13]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6LLunWC007834; Sat, 21 Jul 2012 17:56:49 -0400 Message-ID: <500B25A0.4060607@redhat.com> Date: Sat, 21 Jul 2012 15:56:48 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Luk Claes Subject: Re: bug#12020: ls should show when extended system attributes are set References: <500AF7BC.80806@debian.org> In-Reply-To: <500AF7BC.80806@debian.org> X-Enigmail-Version: 1.4.3 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig4024B0C8A6F29341AE457942" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 12020 Cc: 12020@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4024B0C8A6F29341AE457942 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable tag 12020 moreinfo thanks On 07/21/2012 12:41 PM, Luk Claes wrote: > Hi >=20 > Currently when using POSIX acls, this is not visible when listing files= > with ls. This means that users and system administrators cannot easily > see when (non trivial) POSIX acls are in use which obviously can result= > in wrong expectations when only seeing the rwx kind of acls. What version of coreutils are you using, and on what distro? >=20 > At a minimum I would like that ls would show that extended system > attributes are being used (maybe by showing something different than - > for the type of file?). But ls _does_ already do that. $ getfacl foo # file: foo # owner: eblake # group: eblake user::rw- user:dummy:rw- group::--- mask::rw- other::--- $ ls -l foo -rw-rw----+ 1 eblake eblake 0 Jul 21 15:50 foo $ setfacl -b foo $ getfacl foo # file: foo # owner: eblake # group: eblake user::rw- group::--- other::--- $ ls -l foo -rw-------. 1 eblake eblake 0 Jul 21 15:50 foo $ Notice how the 11th character changed from '+' (ACL present) to '.' (SELinux label present)? That is, a trailing '+' is already what coreutils uses to indicate the presence of ACLs (which generally provide additional rights); and a trailing '.' indicates the presence of restrictions (SELinux labels typically restrict rights depending on the labeling of the calling context). On systems with neither ACLs nor SELinux labels, then the 11th character is ' ' (space) to indicate no other special permissions. You'll need to provide more information before we can figure out why you are not finding this information. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig4024B0C8A6F29341AE457942 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJQCyWhAAoJEKeha0olJ0NqHecH/Rr1CyIoXur8Z7SMGbK2FvKC GnkQHsznHn7UOLCzPUrf7qCP6sHK/yvn/h03cH6b7KsSVrF8uH0mFRIH+R/okChp kG5DyzWFOwU86A93Sf8eYp8mxDhg898LMKE40uJQnLKf0KfDrV2RlShTbTMLKlxC Lo4Frlh1ee4CIbgIQ2zkq6b1UsC9HIcfhGBt3Y0t6DW8k78TLVfjgcz3PRwy3wg3 22J1BBgccybrXv/OxBQgNkkSjoSP3fEJ/I++Xn5ee8thS2Bqr30hW2KuEhJ9aPa8 L779rNyr86PVObFDtes3YlpA1r6glkyA1fizliv84VeCY8kyE8GaLPTyBe5ylhg= =W306 -----END PGP SIGNATURE----- --------------enig4024B0C8A6F29341AE457942-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 21 18:56:45 2012 Received: (at 12020) by debbugs.gnu.org; 21 Jul 2012 22:56:45 +0000 Received: from localhost ([127.0.0.1]:56459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsibM-00052S-E5 for submit@debbugs.gnu.org; Sat, 21 Jul 2012 18:56:45 -0400 Received: from smtp2.ugent.be ([157.193.49.126]:50696) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsibJ-00052K-5V for 12020@debbugs.gnu.org; Sat, 21 Jul 2012 18:56:42 -0400 Received: from localhost (mcheck2.ugent.be [157.193.49.249]) by smtp2.ugent.be (Postfix) with ESMTP id 868BE12C518; Sun, 22 Jul 2012 00:50:15 +0200 (CEST) X-Virus-Scanned: by UGent DICT Received: from smtp2.ugent.be ([157.193.49.126]) by localhost (mcheck2.UGent.be [157.193.43.11]) (amavisd-new, port 10024) with ESMTP id 58P15EwR8JL7; Sun, 22 Jul 2012 00:50:15 +0200 (CEST) Received: from [172.16.0.2] (78-23-182-143.access.telenet.be [78.23.182.143]) (Authenticated sender: lukclaes) by smtp2.ugent.be (Postfix) with ESMTPSA id 276D712C517; Sun, 22 Jul 2012 00:50:15 +0200 (CEST) Message-ID: <500B3224.6040903@debian.org> Date: Sun, 22 Jul 2012 00:50:12 +0200 From: Luk Claes User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120624 Icedove/10.0.5 MIME-Version: 1.0 To: Eric Blake Subject: Re: bug#12020: ls should show when extended system attributes are set References: <500AF7BC.80806@debian.org> <500B25A0.4060607@redhat.com> In-Reply-To: <500B25A0.4060607@redhat.com> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at jchkm3 with ID 500B3226.003 by Joe's j-chkmail (http://helpdesk.ugent.be/email/)! X-j-chkmail-Enveloppe: 500B3226.003 from 78-23-182-143.access.telenet.be/78-23-182-143.access.telenet.be/78.23.182.143/[172.16.0.2]/ X-j-chkmail-Score: MSGID : 500B3226.003 on smtp2.ugent.be : j-chkmail score : X : R=. U=. O=## B=0.000 -> S=0.166 X-j-chkmail-Status: Ham X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 12020 Cc: 12020@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) On 07/21/2012 11:56 PM, Eric Blake wrote: > tag 12020 moreinfo > thanks > > On 07/21/2012 12:41 PM, Luk Claes wrote: >> Hi >> >> Currently when using POSIX acls, this is not visible when listing files >> with ls. This means that users and system administrators cannot easily >> see when (non trivial) POSIX acls are in use which obviously can result >> in wrong expectations when only seeing the rwx kind of acls. > > What version of coreutils are you using, and on what distro? I'm using Debian, version 8.13 >> At a minimum I would like that ls would show that extended system >> attributes are being used (maybe by showing something different than - >> for the type of file?). > > But ls _does_ already do that. > Notice how the 11th character changed from '+' (ACL present) to '.' > (SELinux label present)? That is, a trailing '+' is already what > coreutils uses to indicate the presence of ACLs (which generally provide > additional rights); and a trailing '.' indicates the presence of > restrictions (SELinux labels typically restrict rights depending on the > labeling of the calling context). On systems with neither ACLs nor > SELinux labels, then the 11th character is ' ' (space) to indicate no > other special permissions. Nice, though in that case it does apparently not vanish when I only remove the non-trivial acl again and keep the mask: $ getfacl foo # file: foo # owner: luk # group: luk user::rw- user:mongodb:rw- group::r-- mask::rw- other::r-- $ ls -l foo -rw-rw-r--+ 1 luk luk 5 Jul 22 00:37 foo $ setfacl -x u:mongodb foo $ ls -l foo -rw-r--r--+ 1 luk luk 5 Jul 22 00:37 foo $ getfacl foo # file: foo # owner: luk # group: luk user::rw- group::r-- mask::r-- other::r-- Though I guess it's close enough, only a pitty it's not in the manpage. So feel free to close this or retarget it. Cheers Luk From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 21 19:37:21 2012 Received: (at 12020) by debbugs.gnu.org; 21 Jul 2012 23:37:21 +0000 Received: from localhost ([127.0.0.1]:56475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsjEf-0005vC-AL for submit@debbugs.gnu.org; Sat, 21 Jul 2012 19:37:21 -0400 Received: from smtp1.ugent.be ([157.193.71.182]:49725) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsjEb-0005v3-1u for 12020@debbugs.gnu.org; Sat, 21 Jul 2012 19:37:18 -0400 Received: from localhost (mcheck2.ugent.be [157.193.49.249]) by smtp1.ugent.be (Postfix) with ESMTP id B551B88A1; Sun, 22 Jul 2012 01:30:50 +0200 (CEST) X-Virus-Scanned: by UGent DICT Received: from smtp1.ugent.be ([157.193.71.182]) by localhost (mcheck2.UGent.be [157.193.43.11]) (amavisd-new, port 10024) with ESMTP id eQ7hbhpastIR; Sun, 22 Jul 2012 01:30:50 +0200 (CEST) Received: from [172.16.0.2] (78-23-182-143.access.telenet.be [78.23.182.143]) (Authenticated sender: lukclaes) by smtp1.ugent.be (Postfix) with ESMTPSA id 5E39C885A; Sun, 22 Jul 2012 01:30:50 +0200 (CEST) Message-ID: <500B3BA8.9020708@debian.org> Date: Sun, 22 Jul 2012 01:30:48 +0200 From: Luk Claes User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120624 Icedove/10.0.5 MIME-Version: 1.0 To: Eric Blake Subject: Re: bug#12020: ls should show when extended system attributes are set References: <500AF7BC.80806@debian.org> <500B25A0.4060607@redhat.com> <500B3224.6040903@debian.org> In-Reply-To: <500B3224.6040903@debian.org> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at jchkm3 with ID 500B3BAA.000 by Joe's j-chkmail (http://helpdesk.ugent.be/email/)! X-j-chkmail-Enveloppe: 500B3BAA.000 from 78-23-182-143.access.telenet.be/78-23-182-143.access.telenet.be/78.23.182.143/[172.16.0.2]/ X-j-chkmail-Score: MSGID : 500B3BAA.000 on smtp1.ugent.be : j-chkmail score : X : R=. U=. O=## B=0.000 -> S=0.166 X-j-chkmail-Status: Ham X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 12020 Cc: 12020@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) On 07/22/2012 12:50 AM, Luk Claes wrote: > On 07/21/2012 11:56 PM, Eric Blake wrote: >> tag 12020 moreinfo >> thanks >> >> On 07/21/2012 12:41 PM, Luk Claes wrote: >>> Hi >>> >>> Currently when using POSIX acls, this is not visible when listing files >>> with ls. This means that users and system administrators cannot easily >>> see when (non trivial) POSIX acls are in use which obviously can result >>> in wrong expectations when only seeing the rwx kind of acls. >> >> What version of coreutils are you using, and on what distro? > > I'm using Debian, version 8.13 > >>> At a minimum I would like that ls would show that extended system >>> attributes are being used (maybe by showing something different than - >>> for the type of file?). >> >> But ls _does_ already do that. > >> Notice how the 11th character changed from '+' (ACL present) to '.' >> (SELinux label present)? That is, a trailing '+' is already what >> coreutils uses to indicate the presence of ACLs (which generally provide >> additional rights); and a trailing '.' indicates the presence of >> restrictions (SELinux labels typically restrict rights depending on the >> labeling of the calling context). On systems with neither ACLs nor >> SELinux labels, then the 11th character is ' ' (space) to indicate no >> other special permissions. > > Nice, though in that case it does apparently not vanish when I only > remove the non-trivial acl again and keep the mask: > > $ getfacl foo > # file: foo > # owner: luk > # group: luk > user::rw- > user:mongodb:rw- > group::r-- > mask::rw- > other::r-- > > $ ls -l foo > -rw-rw-r--+ 1 luk luk 5 Jul 22 00:37 foo > > $ setfacl -x u:mongodb foo > > $ ls -l foo > -rw-r--r--+ 1 luk luk 5 Jul 22 00:37 foo > > $ getfacl foo > # file: foo > # owner: luk > # group: luk > user::rw- > group::r-- > mask::r-- > other::r-- > > Though I guess it's close enough, only a pitty it's not in the manpage. But it apparently does not show when capabilites are active, could that be added (or was that added in the meantime in a subsequent version)? $ setcap cap_chown+ep foo $ ls -l foo -rw-r--r-- 1 luk luk 5 Jul 22 00:37 foo $ sudo getcap foo foo = cap_chown+ep Cheers Luk From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 22 08:47:20 2012 Received: (at 12020) by debbugs.gnu.org; 22 Jul 2012 12:47:20 +0000 Received: from localhost ([127.0.0.1]:57070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsvZ9-0007Pg-IC for submit@debbugs.gnu.org; Sun, 22 Jul 2012 08:47:20 -0400 Received: from mx.meyering.net ([88.168.87.75]:50364) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsvZ5-0007PX-Nw for 12020@debbugs.gnu.org; Sun, 22 Jul 2012 08:47:17 -0400 Received: from rho.meyering.net (rho.meyering.net [127.0.0.1]) by rho.meyering.net (Acme Bit-Twister) with ESMTP id 571E2639EE; Sun, 22 Jul 2012 14:40:46 +0200 (CEST) From: Jim Meyering To: Luk Claes Subject: Re: bug#12020: ls should show when extended system attributes are set In-Reply-To: <500B3BA8.9020708@debian.org> (Luk Claes's message of "Sun, 22 Jul 2012 01:30:48 +0200") References: <500AF7BC.80806@debian.org> <500B25A0.4060607@redhat.com> <500B3224.6040903@debian.org> <500B3BA8.9020708@debian.org> Date: Sun, 22 Jul 2012 14:40:46 +0200 Message-ID: <87eho43r5d.fsf@rho.meyering.net> Lines: 28 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 12020 Cc: Eric Blake , 12020@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Luk Claes wrote: ... > But it apparently does not show when capabilites are active, could that > be added (or was that added in the meantime in a subsequent version)? > > $ setcap cap_chown+ep foo > > $ ls -l foo > -rw-r--r-- 1 luk luk 5 Jul 22 00:37 foo > > $ sudo getcap foo > foo = cap_chown+ep That's right: capabilities are currently not taken into account when printing ls -l's "optional alternate access method" flag. However, with --color, we already do test for the existence of capabilities, and if found, highlight each affected file differently. A comment says that the capabilities existence test adds 30% to the cost of ls --color (it's probably even more, now), so I would not impose it on ls -l without due consideration. We know from recent performance-related improvements that checks like this can have a big impact when operating on remote file systems. When already using --color, we do get each test result for free, so it is tempting to take it into account in that case. However, that would make the use of --color change more than just highlighting, but the actual information displayed, which I would not want to do. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 22 09:14:19 2012 Received: (at submit) by debbugs.gnu.org; 22 Jul 2012 13:14:19 +0000 Received: from localhost ([127.0.0.1]:57092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsvzG-0007zn-Jj for submit@debbugs.gnu.org; Sun, 22 Jul 2012 09:14:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57120) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsvzE-0007zd-79 for submit@debbugs.gnu.org; Sun, 22 Jul 2012 09:14:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ssvsw-0003u6-Qz for submit@debbugs.gnu.org; Sun, 22 Jul 2012 09:07:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:36283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssvsw-0003u2-OY for submit@debbugs.gnu.org; Sun, 22 Jul 2012 09:07:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssvsv-0006ki-Um for bug-coreutils@gnu.org; Sun, 22 Jul 2012 09:07:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ssvsv-0003tp-3d for bug-coreutils@gnu.org; Sun, 22 Jul 2012 09:07:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssvsu-0003tj-Rd for bug-coreutils@gnu.org; Sun, 22 Jul 2012 09:07:45 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6MD7ZQL008557 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 22 Jul 2012 09:07:35 -0400 Received: from nbkamil.localnet (vpn1-7-202.ams2.redhat.com [10.36.7.202]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6MD7YYF023759; Sun, 22 Jul 2012 09:07:35 -0400 From: Kamil Dudka To: Jim Meyering Subject: Re: bug#12020: ls should show when extended system attributes are set Date: Sun, 22 Jul 2012 15:07:33 +0200 Message-ID: <1460492.G4KDk6i5Uv@nbkamil> User-Agent: KMail/4.8.4 (Linux/3.4.4-gentoo+; KDE/4.8.4; x86_64; ; ) In-Reply-To: <87eho43r5d.fsf@rho.meyering.net> References: <500AF7BC.80806@debian.org> <500B3BA8.9020708@debian.org> <87eho43r5d.fsf@rho.meyering.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit Cc: Eric Blake , bug-coreutils@gnu.org, Luk Claes , 12020@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) On Sunday, July 22, 2012 14:40:46 Jim Meyering wrote: > When already using --color, we do get each test result for free Not really. The check for file capabilities is optional even with --color. The 'ca' indicator in $LS_COLORS needs to be set to a color to enable this. Kamil From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 22 12:23:27 2012 Received: (at submit) by debbugs.gnu.org; 22 Jul 2012 16:23:27 +0000 Received: from localhost ([127.0.0.1]:57815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsywJ-0005VR-9M for submit@debbugs.gnu.org; Sun, 22 Jul 2012 12:23:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56177) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ssyw5-0005Uy-Kk for submit@debbugs.gnu.org; Sun, 22 Jul 2012 12:23:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ssypn-0001cV-9g for submit@debbugs.gnu.org; Sun, 22 Jul 2012 12:16:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:54329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssypn-0001cO-6m for submit@debbugs.gnu.org; Sun, 22 Jul 2012 12:16:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssypm-00032j-D7 for bug-coreutils@gnu.org; Sun, 22 Jul 2012 12:16:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ssypl-0001c4-JM for bug-coreutils@gnu.org; Sun, 22 Jul 2012 12:16:42 -0400 Received: from mx.meyering.net ([88.168.87.75]:34764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssypl-0001bG-BY for bug-coreutils@gnu.org; Sun, 22 Jul 2012 12:16:41 -0400 Received: from rho.meyering.net (rho.meyering.net [127.0.0.1]) by rho.meyering.net (Acme Bit-Twister) with ESMTP id A1718639C6; Sun, 22 Jul 2012 18:16:39 +0200 (CEST) From: Jim Meyering To: Kamil Dudka Subject: Re: bug#12020: ls should show when extended system attributes are set In-Reply-To: <1460492.G4KDk6i5Uv@nbkamil> (Kamil Dudka's message of "Sun, 22 Jul 2012 15:07:33 +0200") References: <500AF7BC.80806@debian.org> <500B3BA8.9020708@debian.org> <87eho43r5d.fsf@rho.meyering.net> <1460492.G4KDk6i5Uv@nbkamil> Date: Sun, 22 Jul 2012 18:16:39 +0200 Message-ID: <87394j4vq0.fsf@rho.meyering.net> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit Cc: Eric Blake , bug-coreutils@gnu.org, Luk Claes , 12020@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Kamil Dudka wrote: > On Sunday, July 22, 2012 14:40:46 Jim Meyering wrote: >> When already using --color, we do get each test result for free > > Not really. The check for file capabilities is optional even with --color. > The 'ca' indicator in $LS_COLORS needs to be set to a color to enable this. Hi Kamil, While true that you can disable it, with the default color settings, that indicator is set, $ dircolors --pr |grep CAP CAPABILITY 30;41 # file with capability so with --color, the check is performed unless you arrange to turn it off. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 23 17:32:56 2012 Received: (at submit) by debbugs.gnu.org; 23 Jul 2012 21:32:56 +0000 Received: from localhost ([127.0.0.1]:33903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StQFL-0003vD-Oc for submit@debbugs.gnu.org; Mon, 23 Jul 2012 17:32:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54743) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StQFI-0003v1-9s for submit@debbugs.gnu.org; Mon, 23 Jul 2012 17:32:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StQ8t-0002YF-8f for submit@debbugs.gnu.org; Mon, 23 Jul 2012 17:26:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:36846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StQ8t-0002YB-5L for submit@debbugs.gnu.org; Mon, 23 Jul 2012 17:26:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StQ8s-0001pf-82 for bug-coreutils@gnu.org; Mon, 23 Jul 2012 17:26:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StQ8r-0002Xz-3x for bug-coreutils@gnu.org; Mon, 23 Jul 2012 17:26:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StQ8q-0002Xs-SO for bug-coreutils@gnu.org; Mon, 23 Jul 2012 17:26:13 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6NLQ1Rk004950 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 23 Jul 2012 17:26:01 -0400 Received: from nbkamil.localnet (vpn1-4-8.ams2.redhat.com [10.36.4.8]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6NLQ0u0010865; Mon, 23 Jul 2012 17:26:00 -0400 From: Kamil Dudka To: Jim Meyering Subject: Re: bug#12020: ls should show when extended system attributes are set Date: Mon, 23 Jul 2012 23:25:57 +0200 Message-ID: <1643454.ubCST6oc6a@nbkamil> User-Agent: KMail/4.8.4 (Linux/3.4.4-gentoo+; KDE/4.8.4; x86_64; ; ) In-Reply-To: <87394j4vq0.fsf@rho.meyering.net> References: <500AF7BC.80806@debian.org> <1460492.G4KDk6i5Uv@nbkamil> <87394j4vq0.fsf@rho.meyering.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit Cc: eblake@redhat.com, bug-coreutils@gnu.org, luk@debian.org, 12020@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) On Sunday, July 22, 2012 18:16:39 Jim Meyering wrote: > Kamil Dudka wrote: > > On Sunday, July 22, 2012 14:40:46 Jim Meyering wrote: > >> When already using --color, we do get each test result for free > > > > Not really. The check for file capabilities is optional even with > > --color. > > The 'ca' indicator in $LS_COLORS needs to be set to a color to enable > > this. > > Hi Kamil, > > While true that you can disable it, > with the default color settings, that indicator is set, > > $ dircolors --pr |grep CAP > CAPABILITY 30;41 # file with capability > > so with --color, the check is performed unless you arrange > to turn it off. Yes, there is a default color set for file capabilities. I just wanted to highlight that --color does not imply we check for capabilities on its own. The way to skip the check even with --color is there intentionally because of the following bug: https://bugzilla.redhat.com/467508 There is also a request similar to this one in Red Hat Bugzilla: https://bugzilla.redhat.com/647786 Kamil From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 23 17:59:09 2018 Received: (at 12020) by debbugs.gnu.org; 23 Oct 2018 21:59:09 +0000 Received: from localhost ([127.0.0.1]:38655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF4hh-0006Iu-2w for submit@debbugs.gnu.org; Tue, 23 Oct 2018 17:59:09 -0400 Received: from mail-it1-f175.google.com ([209.85.166.175]:39958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF4hf-0006Ic-Fp; Tue, 23 Oct 2018 17:59:07 -0400 Received: by mail-it1-f175.google.com with SMTP id i191-v6so4113733iti.5; Tue, 23 Oct 2018 14:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=oBZw7iTiA7VIO9wf6wiwaFPMPKlXhJM4A5tVU3Rm73o=; b=uoULqhHVUSFTUMvp3cISwv4AdDbtps06SOIPHs2mqjTfhjJbolLBTRSNkdspaytlSB hZIzvaNpu3igMZVK11Nogl7Fu8KLkyqCLzWOC6QIqWwOX9H57Fy4k8YmD17THb6c71qT 9J1BDnaq+fe6B9ouPh2xEMKczP2/PGktkCWYcVYmxzUbjQK8FmJNEVER6Vuc5rxKOWNu wpgT+vX8sTpbUVCNO9GPIOYeiuOASBh5WG9SAr4XUvKEZFPRZFm/jvb9ItwAuX10he6+ TFmd7JyRT6oAjApKYxmLi/q1fZVnzF5e/3PoASJp7qwtS4kx5cx8hbOZyZIkPVQDzpQz 2OTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oBZw7iTiA7VIO9wf6wiwaFPMPKlXhJM4A5tVU3Rm73o=; b=S0G89bW73QrcX8tRXAOkhxK03sCBNP1yrRYfFtybwBvX6BjHaN2+9b76hIgWrlSccT ynGkP9cBL/HjqeeAFT2RBsqTXb/cqU6ljSMyr6PMYJKMepnl5EkYW19wcacVOiMvPuAY dQLJMfHlM+skiShq/GEG9qEPuRxym2oe4/yIDEpf8/gmQlsWmNwRkwzLhRxVqLlw1N5D SqMcOcw3YdUotTEyrczXzZen5BTVnyUoR0osyu/SnTmMBCnGwiZC8k3cmjQ3GVGDWASw 2SZbTuzCx9WzcbLG88f/E1MrPstO8k0A/t/rSfOiBHVCO26lwE0jAuZI/5Y2NFfmF+QA EFcA== X-Gm-Message-State: AGRZ1gIBCT2wTQ8eHGjxsI6ZAYHPGw6aBJoSSVWr1Vv/Rs691q+srLOV jLpbeQZCMsLTyEnmQAZ6g8ob9Grdp/o= X-Google-Smtp-Source: AJdET5d2GLsEs/0Vk1TALNv27DtEKiN3E7c+ISUelPYwdfm8DMPZ2mRaMfmonyRrcrgZGBPVWnBE8A== X-Received: by 2002:a24:28c2:: with SMTP id h185-v6mr17982ith.97.1540331941298; Tue, 23 Oct 2018 14:59:01 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id x10-v6sm867336iob.21.2018.10.23.14.58.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 14:59:00 -0700 (PDT) Subject: Re: bug#12020: ls should show when extended system attributes are set To: 12020@debbugs.gnu.org References: <500AF7BC.80806@debian.org> <500B25A0.4060607@redhat.com> <500B3224.6040903@debian.org> From: Assaf Gordon Message-ID: <2f2b5673-e9c6-cc03-3868-92e754242709@gmail.com> Date: Tue, 23 Oct 2018 15:58:58 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <500B3224.6040903@debian.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 12020 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 12020 notabug close 12020 stop (triaging old bugs) On 21/07/12 04:50 PM, Luk Claes wrote: > [...] > Though I guess it's close enough, only a pitty it's not in the manpage. > So feel free to close this or retarget it. > Closing. -assaf From unknown Thu Sep 11 07:55:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 21 Nov 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator