aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/apparmor/lsm.c3
1 files changed, 1 insertions, 2 deletions
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,
278 return common_perm_create(OP_MKNOD, dir, dentry, AA_MAY_CREATE, mode); 278 return common_perm_create(OP_MKNOD, dir, dentry, AA_MAY_CREATE, mode);
279} 279}
280 280
281static int apparmor_path_truncate(struct path *path, loff_t length, 281static int apparmor_path_truncate(struct path *path)
282 unsigned int time_attrs)
283{ 282{
284 struct path_cond cond = { path->dentry->d_inode->i_uid, 283 struct path_cond cond = { path->dentry->d_inode->i_uid,
285 path->dentry->d_inode->i_mode 284 path->dentry->d_inode->i_mode