mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Casey Schaufler <[email protected]>
This commit is contained in:
parent
a269434d2f
commit
92f4250901
1 changed files with 2 additions and 2 deletions
|
|
@ -1076,8 +1076,8 @@ static int smack_file_lock(struct file *file, unsigned int cmd)
|
|||
{
|
||||
struct smk_audit_info ad;
|
||||
|
||||
smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_DENTRY);
|
||||
smk_ad_setfield_u_fs_path_dentry(&ad, file->f_path.dentry);
|
||||
smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_PATH);
|
||||
smk_ad_setfield_u_fs_path(&ad, file->f_path);
|
||||
return smk_curacc(file->f_security, MAY_WRITE, &ad);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue