aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Paris2011-04-25 12:15:55 -0500
committerEric Paris2011-04-25 17:14:45 -0500
commit92f4250901476fcadc4f52ace36e453c61f5591d (patch)
treeeadee3bbaa53226874d64dcb192699775fdf3792 /security
parenta269434d2fb48a4d66c1d7bf821b7874b59c5b41 (diff)
downloadkernel-common-92f4250901476fcadc4f52ace36e453c61f5591d.tar.gz
kernel-common-92f4250901476fcadc4f52ace36e453c61f5591d.tar.xz
kernel-common-92f4250901476fcadc4f52ace36e453c61f5591d.zip
SMACK: smack_file_lock can use the struct path
smack_file_lock has a struct path, so use that instead of only the dentry. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security')
-rw-r--r--security/smack/smack_lsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index a3bdd138392..410825a4439 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