Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=510f4006e7a82b37b53c17bbe64ec20f3a59302b Commit: 510f4006e7a82b37b53c17bbe64ec20f3a59302b Parent: e41e8bde43026d5d2e41464e6105a50b31e34102 Author: Amy Griffis <[EMAIL PROTECTED]> AuthorDate: Tue Feb 13 14:14:41 2007 -0500 Committer: Al Viro <[EMAIL PROTECTED]> CommitDate: Fri May 11 05:38:26 2007 -0400
[PATCH] audit inode for all xattr syscalls Collect inode info for the remaining xattr syscalls that operate on a file descriptor. These don't call a path_lookup variant, so they aren't covered by the general audit hook. Signed-off-by: Amy Griffis <[EMAIL PROTECTED]> Signed-off-by: Al Viro <[EMAIL PROTECTED]> --- fs/xattr.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/xattr.c b/fs/xattr.c index 9f4568b..4523aca 100644 --- a/fs/xattr.c +++ b/fs/xattr.c @@ -350,6 +350,7 @@ sys_fgetxattr(int fd, char __user *name, void __user *value, size_t size) f = fget(fd); if (!f) return error; + audit_inode(NULL, f->f_path.dentry->d_inode); error = getxattr(f->f_path.dentry, name, value, size); fput(f); return error; @@ -422,6 +423,7 @@ sys_flistxattr(int fd, char __user *list, size_t size) f = fget(fd); if (!f) return error; + audit_inode(NULL, f->f_path.dentry->d_inode); error = listxattr(f->f_path.dentry, list, size); fput(f); return error; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html