bug#52481: chown of coreutils may delete the suid of file

2021-12-17 Thread Bob Proulx
21625039 wrote: > [root@fedora ~]# ll test.txt > -rwsr-x---. 1 root root 0 Dec 13 21:13 test.txt > > [root@fedora ~]# chown root:root test.txt > [root@fedora ~]# ll test.txt > -rwxr-x---. 1 root root 0 Dec 13 21:13 test.txt That is a feature of the Linux kernel, OpenBSD kernel, and NetBSD

bug#52481: chown of coreutils may delete the suid of file

2021-12-14 Thread Kamil Dudka
On Tuesday, December 14, 2021 3:49:37 AM CET 21625039 wrote: > I encountered a problem with chown on my fedora34 as the version of > coreutils is 8.32. > > > > The reproduce process could see the steps blow: > > [root@fedora ~]# ll test.txt > > -rw-r--r--. 1 root root 0 Dec 13 21:13 test.txt

bug#52481: chown of coreutils may delete the suid of file

2021-12-14 Thread 21625039
I encountered a problem with chown on my fedora34 as the version of coreutils is 8.32. The reproduce process could see the steps blow: [root@fedora ~]# ll test.txt -rw-r--r--. 1 root root 0 Dec 13 21:13 test.txt [root@fedora ~]# chmod 4750 test.txt [root@fedora ~]# ll test.txt -rwsr-x---.