Skip to content
  • Miklos Szeredi's avatar
    [patch 4/4] vfs: immutable inode checking cleanup · beb29e05
    Miklos Szeredi authored
    
    
    Move the immutable and append-only checks from chmod, chown and utimes
    into notify_change().  Checks for immutable and append-only files are
    always performed by the VFS and not by the filesystem (see
    permission() and may_...() in namei.c), so these belong in
    notify_change(), and not in inode_change_ok().
    
    This should be completely equivalent.
    
    CC: Ulrich Drepper <drepper@redhat.com>
    CC: Michael Kerrisk <mtk.manpages@gmail.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    beb29e05