Commit 4d6ec10b authored by James Morris's avatar James Morris

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: default avatarJames Morris <jmorris@namei.org>
parent c88d4c7b
...@@ -278,8 +278,7 @@ static int apparmor_path_mknod(struct path *dir, struct dentry *dentry, ...@@ -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); return common_perm_create(OP_MKNOD, dir, dentry, AA_MAY_CREATE, mode);
} }
static int apparmor_path_truncate(struct path *path, loff_t length, static int apparmor_path_truncate(struct path *path)
unsigned int time_attrs)
{ {
struct path_cond cond = { path->dentry->d_inode->i_uid, struct path_cond cond = { path->dentry->d_inode->i_uid,
path->dentry->d_inode->i_mode path->dentry->d_inode->i_mode
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment