can't write to a file as non root having setuid
On RHEL 5 upadte 3, I am seeing the following issue
#mkdir /newdir
#touch /newdir/file1
#chmod 06777 /newdir/file1
#su newuser
$dd if=/dev/null of=/newdr/file1
dd: opening '/newdir/file1': Operation not permitted
The result is same even with selinux disabled. This used to work on older releases clearing the setuid/setgid after the write. wondering whether it is an intended change or a bug.
|