diff options
Diffstat (limited to 'security/smack')
-rw-r--r-- | security/smack/smack.h | 2 | ||||
-rw-r--r-- | security/smack/smack_lsm.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/security/smack/smack.h b/security/smack/smack.h index 5e031a2e4c36..cc361b8f3d13 100644 --- a/security/smack/smack.h +++ b/security/smack/smack.h | |||
@@ -304,7 +304,7 @@ void smack_log(char *subject_label, char *object_label, | |||
304 | static inline void smk_ad_init(struct smk_audit_info *a, const char *func, | 304 | static inline void smk_ad_init(struct smk_audit_info *a, const char *func, |
305 | char type) | 305 | char type) |
306 | { | 306 | { |
307 | memset(a, 0, sizeof(*a)); | 307 | memset(&a->sad, 0, sizeof(a->sad)); |
308 | a->a.type = type; | 308 | a->a.type = type; |
309 | a->a.smack_audit_data = &a->sad; | 309 | a->a.smack_audit_data = &a->sad; |
310 | a->a.smack_audit_data->function = func; | 310 | a->a.smack_audit_data->function = func; |
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 952b1f41fc78..d583c0545808 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c | |||
@@ -1359,7 +1359,7 @@ static int smack_file_receive(struct file *file) | |||
1359 | } | 1359 | } |
1360 | 1360 | ||
1361 | /** | 1361 | /** |
1362 | * smack_dentry_open - Smack dentry open processing | 1362 | * smack_file_open - Smack dentry open processing |
1363 | * @file: the object | 1363 | * @file: the object |
1364 | * @cred: unused | 1364 | * @cred: unused |
1365 | * | 1365 | * |
@@ -1367,7 +1367,7 @@ static int smack_file_receive(struct file *file) | |||
1367 | * | 1367 | * |
1368 | * Returns 0 | 1368 | * Returns 0 |
1369 | */ | 1369 | */ |
1370 | static int smack_dentry_open(struct file *file, const struct cred *cred) | 1370 | static int smack_file_open(struct file *file, const struct cred *cred) |
1371 | { | 1371 | { |
1372 | struct inode_smack *isp = file->f_path.dentry->d_inode->i_security; | 1372 | struct inode_smack *isp = file->f_path.dentry->d_inode->i_security; |
1373 | 1373 | ||
@@ -3487,7 +3487,7 @@ struct security_operations smack_ops = { | |||
3487 | .file_send_sigiotask = smack_file_send_sigiotask, | 3487 | .file_send_sigiotask = smack_file_send_sigiotask, |
3488 | .file_receive = smack_file_receive, | 3488 | .file_receive = smack_file_receive, |
3489 | 3489 | ||
3490 | .dentry_open = smack_dentry_open, | 3490 | .file_open = smack_file_open, |
3491 | 3491 | ||
3492 | .cred_alloc_blank = smack_cred_alloc_blank, | 3492 | .cred_alloc_blank = smack_cred_alloc_blank, |
3493 | .cred_free = smack_cred_free, | 3493 | .cred_free = smack_cred_free, |