[PATCH] afs: proc cells and rootcell are writeable
David Howells
dhowells at redhat.com
Thu Jan 30 19:07:57 EST 2014
Eric W. Biederman <ebiederm at xmission.com> wrote:
> These files have been read-only since this code was merged in 2002.
> Over a decade of not being used seems like a strong indication that no
> one cares about the write path.
Actually, things aren't as simple as they seem. Without the patch applied:
[root at andromeda ~]# ls -l /proc/fs/afs/cells
-r--r--r--. 1 root root 0 Jan 31 00:04 /proc/fs/afs/cells
[root at andromeda ~]# echo add your-file-system.com 204.29.154.37 >/proc/fs/afs/cells
[root at andromeda ~]#
You'll observe there is no error reported on the echo command.
Further, looking in dmesg, I see:
kAFS: Added new cell 'your-file-system.com'
So the file *is* writable, *despite* i_mode.
David
More information about the linux-afs
mailing list