Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Heads up: ls output format change in Coreutils 9.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed May 18, 2022 12:53 pm    Post subject: Heads up: ls output format change in Coreutils 9.1 Reply with quote

Some executable files are installed with file capabilities. Ping is one of those programs:
Code:
# getcap /bin/ping
/bin/ping cap_net_raw=ep

'ls -la' used to show files with capabilities attached with a red color:

# ls -la /bin/ping
-rwx--x--x 1 root root 77296 Feb 22 06:27 /bin/ping

That has changed in Coreutils 9.1. The red color is gone:

# ls -la /bin/ping
-rwx--x--x 1 root root 77328 May 18 13:45 /bin/ping

The change is documented in the Changelog:
Code:
ls: avoid expensive capability lookup by default

Lookup of file-based capabilities adds 30% overhead to the common
case of ls --color usage.  Since the use of file capabilities is
very rare, it doesn't make sense to pay this cost in the common
case.  It's better to use getcap to inspect capabilities, and the
following run shows only 8 files using capabilities on my fedora
35 distro (14 years after the feature was introduced to the linux
kernel).


Last edited by mike155 on Fri May 20, 2022 10:44 am; edited 1 time in total
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2964
Location: Edge of marsh USA

PostPosted: Fri May 20, 2022 5:21 am    Post subject: Reply with quote

Seriously? There is no 9.2. 8.32-r1 is the only stable version. The highest unstable is 9.1-r1.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri May 20, 2022 10:49 am    Post subject: Reply with quote

Thanks, figueroa. I meant coreutils 9.1. I corrected my post above.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2964
Location: Edge of marsh USA

PostPosted: Fri May 20, 2022 2:40 pm    Post subject: Reply with quote

:) Aha, now it's very interesting.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1659

PostPosted: Fri May 20, 2022 3:04 pm    Post subject: Reply with quote

Likely this needs >=sys-apps/coreutils-9.1[caps]. As without the caps USE on coreutils, it is still green on my ~arch machine.

Edit: The green may be bash, but /bin/ls -lh /bin/ping is uncolored
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum