libc 2.31/i686: operation not permitted for preserving timestamps
Elan Ruusamäe
glen at pld-linux.org
Tue Mar 24 20:20:19 CET 2020
On 3/16/20 11:46 PM, Elan Ruusamäe wrote:
> i've got reports that cp -a (or just cp --preserve=timestamps) fails
> on i686 and glibc 2.31
>
>
> from strace i've grabbed such error:
>
>
> utimensat_time64(4, NULL, [{tv_sec=1584393052, tv_nsec=0} /*
> 2020-03-16T23:10:52+0200 */, {tv_sec=1584393052, tv_nsec=0} /*
> 2020-03-16T23:10:52+0200 */], 0) = -1 EPERM (Operation not permitted)
>
>
> i believe it's related to large inode on fd=4 and glibc just reports
> it incorrectly
>
>
> ```
> + ls -ldi locale-archive
> /var/tmp/glibc-localedb-2.30.0-root-root/usr/lib/locale
> 790264 drwxr-xr-x 2 root root 4096 Mar 16 2020
> /var/tmp/glibc-localedb-2.30.0-root-root/usr/lib/locale
> 4379091441 -rw-r--r-- 1 root root 13754080 Mar 16 2020 locale-archive
> + cp '--preserve=timestamps' locale-archive
> /var/tmp/glibc-localedb-2.30.0-root-root/usr/lib/locale
> cp: preserving times for
> '/var/tmp/glibc-localedb-2.30.0-root-root/usr/lib/locale/locale-archive':
> Operation not permitted
>
> ```
>
does i686 even work for someone really?
some errors here and there
rpmdb: clock_gettime: Operation not permitted
66 <https://gitlab.delfi.net/ed/pld-builder/-/jobs/844165#L66>rpmdb:
BDB0061 PANIC: Operation not permitted
67 <https://gitlab.delfi.net/ed/pld-builder/-/jobs/844165#L67>==>
rpmdbe_event_notify(0xcf70440, PANIC(0), 0xffd25864) app_private (nil)
[root at 321bc6bed681 rpm]# poldek -u glibc
clock_gettime: Operation not permitted
BDB0061 PANIC: Operation not permitted
here's full build log attemting to build base image:
https://gitlab.com/pld-linux/pld/-/jobs/480110124
More information about the pld-devel-en
mailing list