View previous topic :: View next topic |
Author |
Message |
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Wed May 18, 2022 12:53 pm Post subject: Heads up: ls output format change in Coreutils 9.1 |
|
|
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 |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2964 Location: Edge of marsh USA
|
Posted: Fri May 20, 2022 5:21 am Post subject: |
|
|
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 |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Fri May 20, 2022 10:49 am Post subject: |
|
|
Thanks, figueroa. I meant coreutils 9.1. I corrected my post above. |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2964 Location: Edge of marsh USA
|
Posted: Fri May 20, 2022 2:40 pm Post subject: |
|
|
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 |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1659
|
Posted: Fri May 20, 2022 3:04 pm Post subject: |
|
|
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 |
|
|
|