mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
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 <jmorris@namei.org>
This commit is contained in:
parent
c88d4c7b04
commit
4d6ec10bb4
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue