Skip to content

Commit

Permalink
AppArmor: update path_truncate method to latest version
Browse files Browse the repository at this point in the history
Remove extraneous path_truncate arguments from the AppArmor hook,
as they've been removed from the LSM API.

Signed-off-by: James Morris <[email protected]>
  • Loading branch information
James Morris committed Aug 2, 2010
1 parent c88d4c7 commit 4d6ec10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions security/apparmor/lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d6ec10

Please sign in to comment.