elentin@falcon:~$ mkdir test elentin@falcon:~$ chmod 100 test elentin@falcon:~$ ls -ld test d--x------ 2 elentin 1002 4096 Июл 10 17:55 test elentin@falcon:~$ elentin@falcon:~$ mv test test_mv elentin@falcon:~$ ls -ld test_mv/ d--x------ 2 elentin 1002 4096 Июл 10 17:55 test_mv/ elentin@falcon:~$ uname -a Linux falcon 2.6.26-1-openvz-686 #1 SMP Fri Mar 13 20:20:40 UTC 2009 i686 GNU/Linux elentin@falcon:~$ cat /etc/debian_version 5.0.1
/* * If we are going to change the parent - check write permissions, * we'll need to flip '..'. */ if (new_dir != old_dir) { error = inode_permission(old_dentry->d_inode, MAY_WRITE); if (error) return error; }
[ Home | Post Entry | Log in | Search | Browse Options | Site Map ]
no subject
(no subject)
no subject
(no subject)
(no subject)
(no subject)
no subject
Вот и первоисточник http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=fs/namei.c;hb=HEAD
(no subject)
(no subject)
(no subject)
no subject
(no subject)
no subject
(no subject)
no subject
no subject
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
no subject
но! ежели(а это 99%) происходит запись в данные нода, значит должен
no subject