diff options
Diffstat (limited to 'security/smack')
-rw-r--r-- | security/smack/smack_lsm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index fa64740abb59..d52c780bdb78 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c | |||
@@ -654,7 +654,7 @@ static int smack_inode_unlink(struct inode *dir, struct dentry *dentry) | |||
654 | /* | 654 | /* |
655 | * You also need write access to the containing directory | 655 | * You also need write access to the containing directory |
656 | */ | 656 | */ |
657 | smk_ad_setfield_u_fs_path_dentry(&ad, NULL); | 657 | smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_INODE); |
658 | smk_ad_setfield_u_fs_inode(&ad, dir); | 658 | smk_ad_setfield_u_fs_inode(&ad, dir); |
659 | rc = smk_curacc(smk_of_inode(dir), MAY_WRITE, &ad); | 659 | rc = smk_curacc(smk_of_inode(dir), MAY_WRITE, &ad); |
660 | } | 660 | } |
@@ -685,7 +685,7 @@ static int smack_inode_rmdir(struct inode *dir, struct dentry *dentry) | |||
685 | /* | 685 | /* |
686 | * You also need write access to the containing directory | 686 | * You also need write access to the containing directory |
687 | */ | 687 | */ |
688 | smk_ad_setfield_u_fs_path_dentry(&ad, NULL); | 688 | smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_INODE); |
689 | smk_ad_setfield_u_fs_inode(&ad, dir); | 689 | smk_ad_setfield_u_fs_inode(&ad, dir); |
690 | rc = smk_curacc(smk_of_inode(dir), MAY_WRITE, &ad); | 690 | rc = smk_curacc(smk_of_inode(dir), MAY_WRITE, &ad); |
691 | } | 691 | } |