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 a3bdd1383928..410825a44392 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c | |||
@@ -1076,8 +1076,8 @@ static int smack_file_lock(struct file *file, unsigned int cmd) | |||
1076 | { | 1076 | { |
1077 | struct smk_audit_info ad; | 1077 | struct smk_audit_info ad; |
1078 | 1078 | ||
1079 | smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_DENTRY); | 1079 | smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_PATH); |
1080 | smk_ad_setfield_u_fs_path_dentry(&ad, file->f_path.dentry); | 1080 | smk_ad_setfield_u_fs_path(&ad, file->f_path); |
1081 | return smk_curacc(file->f_security, MAY_WRITE, &ad); | 1081 | return smk_curacc(file->f_security, MAY_WRITE, &ad); |
1082 | } | 1082 | } |
1083 | 1083 | ||