diff options
| author | Miklos Szeredi <[email protected]> | 2008-07-01 13:01:28 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2008-07-27 00:53:27 +0000 |
| commit | b1da47e29e467f1ec36dc78d009bfb109fd533c7 (patch) | |
| tree | 13d72e54e6b7d9bbb0e48158c84bcb26561b0ecb /net/unix/af_unix.c | |
| parent | [patch 2/4] vfs: utimes cleanup (diff) | |
| download | kernel-b1da47e29e467f1ec36dc78d009bfb109fd533c7.tar.gz kernel-b1da47e29e467f1ec36dc78d009bfb109fd533c7.zip | |
[patch 3/4] fat: dont call notify_change
The FAT_IOCTL_SET_ATTRIBUTES ioctl() calls notify_change() to change
the file mode before changing the inode attributes. Replace with
explicit calls to security_inode_setattr(), fat_setattr() and
fsnotify_change().
This is equivalent to the original. The reason it is needed, is that
later in the series we move the immutable check into notify_change().
That would break the FAT_IOCTL_SET_ATTRIBUTES ioctl, as it needs to
perform the mode change regardless of the immutability of the file.
[Fix error if fat is built as a module. Thanks to OGAWA Hirofumi for
noticing.]
Signed-off-by: Miklos Szeredi <[email protected]>
Acked-by: OGAWA Hirofumi <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
