GNU bug report logs - #14283
ls: display presence of capabilities on a file

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: Linda Walsh <coreutils@HIDDEN>; dated Sat, 27 Apr 2013 02:27:01 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Changed bug title to 'ls: display presence of capabilities on a file' from 'RFE: ls should display presence of capabilities on a file' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 14283 <at> debbugs.gnu.org:


Received: (at 14283) by debbugs.gnu.org; 1 Aug 2014 10:55:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 01 06:55:13 2014
Received: from localhost ([127.0.0.1]:53702 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XDAUS-0002Yk-0g
	for submit <at> debbugs.gnu.org; Fri, 01 Aug 2014 06:55:12 -0400
Received: from mail2.vodafone.ie ([213.233.128.44]:45093)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <P@HIDDEN>) id 1XDAUO-0002YR-1v
 for 14283 <at> debbugs.gnu.org; Fri, 01 Aug 2014 06:55:09 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApUBACVx21NtTijp/2dsb2JhbAANToNfg0/JEIdPAYEchHsBAQQjDwFGEAsNAQoCAgUhAgIPAkYGDQEHAQEFiD4IsHJ3l3MXgSyLYoI+B4J5gVIFnUmFdoZsiWw
Received: from unknown (HELO [192.168.1.79]) ([109.78.40.233])
 by mail2.vodafone.ie with ESMTP; 01 Aug 2014 11:55:00 +0100
Message-ID: <53DB7FE6.10806@HIDDEN>
Date: Fri, 01 Aug 2014 12:54:14 +0100
From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= <P@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:17.0) Gecko/20130110 Thunderbird/17.0.2
MIME-Version: 1.0
To: Linda Walsh <coreutils@HIDDEN>
Subject: Re: bug#14283: RFE: ls should display presence of capabilities on
 a file
References: <517B3739.1080801@HIDDEN> <517B9BF5.7010501@HIDDEN>
In-Reply-To: <517B9BF5.7010501@HIDDEN>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 14283
Cc: 14283 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On 04/27/2013 10:35 AM, Pádraig Brady wrote:
> severity 14283 wishlist
> 
> On 04/27/2013 03:26 AM, Linda Walsh wrote:
>> Just as 'l's displays the presence of access lists by putting a
>> '+' after the normal mode-bits, perhaps it could put a '^' after
>> mode-bits to indicate capabilities are set.
>>
>> I'm aware that if I'm on a color terminal I can get an indication
>> of this, but color is often off (run through pipes, or not on
>> color term, or by default).
>>
>> for SUID/GUID one gets an indicator of s/S in the modebits, so
>> thought '^' might be reasonable to indicate cap-elevation bits?
> 
> Yes, in general colors aren't a good mechanism to indicate permissions.
> I prefer to highlight portions of the permissions string,
> which is more direct and obvious. See http://www.pixelbeat.org/scripts/l
> 
> But we have to be a bit careful adding to the permissions string,
> for compat reasons etc. I do like the idea of ^ (hat) => cap.
> You could even be fancy and use combining hat (\u0302) so
> as to not take up any more place, though combining char support
> is not currently supported well enough to allow that I think.
> 
> We'll consider it,

There is also the performance issue to consider here.
Currently only can disable coloring or just capability coloring,
which will disable the capability lookup.
This was seen to significantly impact performance:

  $ mkdir testcap
  $ cd testcap
  $ seq 10000 | xargs touch

  $ time ls --color -l >/dev/null
  real 0m0.150s
  $ time LS_COLORS=ca=: ls --color -l >/dev/null
  real 0m0.116s

Though the overhead is decreasing over time:

  Fedora  8 = 30%
  Fedora 15 = 24%
  Fedora 20 = 14%

So I'm leaning towards leaving this enabled now in --long mode
thus allowing to set the permissions flags appropriately.

So what to set? Well we only have a single byte to play with.
Currently we have '.' meaning only SELinux, and '+' meaning anything else.
So I'm thinking we should also have capabilities significant
for outputting the '+'.

This is also tracked at http://bugs.debian.org/756712

thanks,
Pádraig.




Information forwarded to bug-coreutils@HIDDEN:
bug#14283; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Apr 2013 17:12:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 27 13:12:50 2013
Received: from localhost ([127.0.0.1]:47201 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UW8g6-0007gO-8S
	for submit <at> debbugs.gnu.org; Sat, 27 Apr 2013 13:12:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34011)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <coreutils@HIDDEN>) id 1UW8g4-0007gH-Kf
	for submit <at> debbugs.gnu.org; Sat, 27 Apr 2013 13:12:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <coreutils@HIDDEN>) id 1UW8fv-0003I3-WD
	for submit <at> debbugs.gnu.org; Sat, 27 Apr 2013 13:12:41 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-99.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD,
	USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:40464)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <coreutils@HIDDEN>) id 1UW8fv-0003Hz-UG
	for submit <at> debbugs.gnu.org; Sat, 27 Apr 2013 13:12:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45356)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <coreutils@HIDDEN>) id 1UW8fv-00034P-4M
	for bug-coreutils@HIDDEN; Sat, 27 Apr 2013 13:12:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <coreutils@HIDDEN>) id 1UW8fu-0003Ha-8o
	for bug-coreutils@HIDDEN; Sat, 27 Apr 2013 13:12:39 -0400
Received: from ishtar.tlinx.org ([173.164.175.65]:57159 helo=Ishtar.hs)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <coreutils@HIDDEN>) id 1UW8ft-0003HF-JA
	for bug-coreutils@HIDDEN; Sat, 27 Apr 2013 13:12:38 -0400
Received: from [192.168.4.12] (Athenae [192.168.4.12])
	by Ishtar.hs (8.14.5/8.14.4/SuSE Linux 0.8) with ESMTP id
	r3RHCXxl082871
	for <bug-coreutils@HIDDEN>; Sat, 27 Apr 2013 10:12:35 -0700
Message-ID: <517C0700.30201@HIDDEN>
Date: Sat, 27 Apr 2013 10:12:32 -0700
From: Linda Walsh <coreutils@HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US;
	rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24
	Mnenhy/0.7.6.666
MIME-Version: 1.0
To: bug-coreutils@HIDDEN
Subject: Re: bug#14283: RFE: ls should display presence of capabilities on a
	file
References: <517B3739.1080801@HIDDEN> <517B9BF5.7010501@HIDDEN>
In-Reply-To: <517B9BF5.7010501@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by Ishtar.hs id
	r3RHCXxl082871
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
	timestamps) [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)



P=C3=A1draig Brady wrote:

> But we have to be a bit careful adding to the permissions string,
> for compat reasons etc. I do like the idea of ^ (hat) =3D> cap.
> You could even be fancy and use combining hat (\u0302) so
> as to not take up any more place, though combining char support
> is not currently supported well enough to allow that I think.
----
	I would have preferred the combining option as well,
though rejected it for similar reasons. Been using unicode for
10+ years on my file systems (often with many compat issues),
but have only recently started to see more widespread usage
of them on the net...but felt wasn't fully enough supported
to use as an indicator in ls...  In our lifetimes?  ;-)

> We'll consider it,
> thanks,
----
Thank you!





Information forwarded to bug-coreutils@HIDDEN:
bug#14283; Package coreutils. Full text available.

Message received at 14283 <at> debbugs.gnu.org:


Received: (at 14283) by debbugs.gnu.org; 27 Apr 2013 09:36:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 27 05:36:00 2013
Received: from localhost ([127.0.0.1]:46060 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UW1Xz-00058W-BU
	for submit <at> debbugs.gnu.org; Sat, 27 Apr 2013 05:35:59 -0400
Received: from mail2.vodafone.ie ([213.233.128.44]:7519)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <P@HIDDEN>) id 1UW1Xx-00058M-IC
	for 14283 <at> debbugs.gnu.org; Sat, 27 Apr 2013 05:35:58 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AjkDAGabe1FtTb4F/2dsb2JhbAANRIM9gze7CAMBgReDEwEBAQQjDwFGEAsNAQoCAgUWCwICCQMCAQIBRQYNAQcBAQWIF6x6cpEegSOLDoICXweCO4ETA51SjgM
Received: from unknown (HELO [192.168.1.79]) ([109.77.190.5])
	by mail2.vodafone.ie with ESMTP; 27 Apr 2013 10:35:50 +0100
Message-ID: <517B9BF5.7010501@HIDDEN>
Date: Sat, 27 Apr 2013 10:35:49 +0100
From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= <P@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130110 Thunderbird/17.0.2
MIME-Version: 1.0
To: Linda Walsh <coreutils@HIDDEN>
Subject: Re: bug#14283: RFE: ls should display presence of capabilities on
	a file
References: <517B3739.1080801@HIDDEN>
In-Reply-To: <517B3739.1080801@HIDDEN>
X-Enigmail-Version: 1.5.1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 14283
Cc: 14283 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

severity 14283 wishlist

On 04/27/2013 03:26 AM, Linda Walsh wrote:
> Just as 'l's displays the presence of access lists by putting a
> '+' after the normal mode-bits, perhaps it could put a '^' after
> mode-bits to indicate capabilities are set.
> 
> I'm aware that if I'm on a color terminal I can get an indication
> of this, but color is often off (run through pipes, or not on
> color term, or by default).
> 
> for SUID/GUID one gets an indicator of s/S in the modebits, so
> thought '^' might be reasonable to indicate cap-elevation bits?

Yes, in general colors aren't a good mechanism to indicate permissions.
I prefer to highlight portions of the permissions string,
which is more direct and obvious. See http://www.pixelbeat.org/scripts/l

But we have to be a bit careful adding to the permissions string,
for compat reasons etc. I do like the idea of ^ (hat) => cap.
You could even be fancy and use combining hat (\u0302) so
as to not take up any more place, though combining char support
is not currently supported well enough to allow that I think.

We'll consider it,
thanks,
Pádraig.




Information forwarded to bug-coreutils@HIDDEN:
bug#14283; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Apr 2013 02:26:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 26 22:26:17 2013
Received: from localhost ([127.0.0.1]:45754 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UVuq9-0002nC-1I
	for submit <at> debbugs.gnu.org; Fri, 26 Apr 2013 22:26:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46360)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <coreutils@HIDDEN>) id 1UVuq6-0002n0-EF
	for submit <at> debbugs.gnu.org; Fri, 26 Apr 2013 22:26:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <coreutils@HIDDEN>) id 1UVuq1-0003AY-P0
	for submit <at> debbugs.gnu.org; Fri, 26 Apr 2013 22:26:10 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-100.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD,
	USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:51335)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <coreutils@HIDDEN>) id 1UVuq1-0003AU-Lf
	for submit <at> debbugs.gnu.org; Fri, 26 Apr 2013 22:26:09 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57722)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <coreutils@HIDDEN>) id 1UVuq0-00054r-Qm
	for bug-coreutils@HIDDEN; Fri, 26 Apr 2013 22:26:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <coreutils@HIDDEN>) id 1UVupz-0003AJ-WF
	for bug-coreutils@HIDDEN; Fri, 26 Apr 2013 22:26:08 -0400
Received: from ishtar.tlinx.org ([173.164.175.65]:51818 helo=Ishtar.hs)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <coreutils@HIDDEN>) id 1UVupz-0003AA-FD
	for bug-coreutils@HIDDEN; Fri, 26 Apr 2013 22:26:07 -0400
Received: from [192.168.4.12] (Athenae [192.168.4.12])
	by Ishtar.hs (8.14.5/8.14.4/SuSE Linux 0.8) with ESMTP id
	r3R2Q2Cx058874
	for <bug-coreutils@HIDDEN>; Fri, 26 Apr 2013 19:26:04 -0700
Message-ID: <517B3739.1080801@HIDDEN>
Date: Fri, 26 Apr 2013 19:26:01 -0700
From: Linda Walsh <coreutils@HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US;
	rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24
	Mnenhy/0.7.6.666
MIME-Version: 1.0
To: bug-coreutils@HIDDEN
Subject: RFE: ls should display presence of capabilities on a file
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
	timestamps) [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

Just as 'l's displays the presence of access lists by putting a
'+' after the normal mode-bits, perhaps it could put a '^' after
mode-bits to indicate capabilities are set.

I'm aware that if I'm on a color terminal I can get an indication
of this, but color is often off (run through pipes, or not on
color term, or by default).

for SUID/GUID one gets an indicator of s/S in the modebits, so
thought '^' might be reasonable to indicate cap-elevation bits?






Acknowledgement sent to Linda Walsh <coreutils@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#14283; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.