From 4d6ec10bb4461fdc9a9ab94ef32934e13564e873 Mon Sep 17 00:00:00 2001 From: James Morris Date: Fri, 30 Jul 2010 09:02:04 +1000 Subject: AppArmor: update path_truncate method to latest version Remove extraneous path_truncate arguments from the AppArmor hook, as they've been removed from the LSM API. Signed-off-by: James Morris --- security/apparmor/lsm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'security') diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index 7daf0d528037..8db33a8b50c4 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c @@ -278,8 +278,7 @@ static int apparmor_path_mknod(struct path *dir, struct dentry *dentry, return common_perm_create(OP_MKNOD, dir, dentry, AA_MAY_CREATE, mode); } -static int apparmor_path_truncate(struct path *path, loff_t length, - unsigned int time_attrs) +static int apparmor_path_truncate(struct path *path) { struct path_cond cond = { path->dentry->d_inode->i_uid, path->dentry->d_inode->i_mode -- cgit v1.2.3