[AppArmor 16/47] Call lsm hook before unhashing dentry in vfs_rmdir()

2007-12-20 Thread John
If we unhash the dentry before calling the security_inode_rmdir hook, we cannot compute the file's pathname in the hook anymore. AppArmor needs to know the filename in order to decide whether a file may be deleted, though. Signed-off-by: John Johansen <[EMAIL PROTECTED]> Signed-off-by: Andreas

[AppArmor 16/47] Call lsm hook before unhashing dentry in vfs_rmdir()

2007-12-20 Thread John
If we unhash the dentry before calling the security_inode_rmdir hook, we cannot compute the file's pathname in the hook anymore. AppArmor needs to know the filename in order to decide whether a file may be deleted, though. Signed-off-by: John Johansen [EMAIL PROTECTED] Signed-off-by: Andreas