projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a269434
)
SMACK: smack_file_lock can use the struct path
author
Eric Paris
<
[email protected]
>
Mon, 25 Apr 2011 17:15:55 +0000
(13:15 -0400)
committer
Eric Paris
<
[email protected]
>
Mon, 25 Apr 2011 22:14:45 +0000
(18:14 -0400)
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]
>
security/smack/smack_lsm.c
patch
|
blob
|
history
diff --git
a/security/smack/smack_lsm.c
b/security/smack/smack_lsm.c
index a3bdd138392885bf4940f082febc21d17a534888..410825a44392b9de3bc6895ea15170c9147d17e9 100644
(file)
--- 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)
{
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);
}