diff options
Diffstat (limited to 'security/smack/smack_lsm.c')
-rw-r--r-- | security/smack/smack_lsm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 5ab3f39442f2..23c7a6d0c80c 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <net/cipso_ipv4.h> | 33 | #include <net/cipso_ipv4.h> |
34 | #include <linux/audit.h> | 34 | #include <linux/audit.h> |
35 | #include <linux/magic.h> | 35 | #include <linux/magic.h> |
36 | #include <linux/dcache.h> | ||
36 | #include "smack.h" | 37 | #include "smack.h" |
37 | 38 | ||
38 | #define task_security(task) (task_cred_xxx((task), security)) | 39 | #define task_security(task) (task_cred_xxx((task), security)) |
@@ -501,6 +502,7 @@ static void smack_inode_free_security(struct inode *inode) | |||
501 | * smack_inode_init_security - copy out the smack from an inode | 502 | * smack_inode_init_security - copy out the smack from an inode |
502 | * @inode: the inode | 503 | * @inode: the inode |
503 | * @dir: unused | 504 | * @dir: unused |
505 | * @qstr: unused | ||
504 | * @name: where to put the attribute name | 506 | * @name: where to put the attribute name |
505 | * @value: where to put the attribute value | 507 | * @value: where to put the attribute value |
506 | * @len: where to put the length of the attribute | 508 | * @len: where to put the length of the attribute |
@@ -508,7 +510,8 @@ static void smack_inode_free_security(struct inode *inode) | |||
508 | * Returns 0 if it all works out, -ENOMEM if there's no memory | 510 | * Returns 0 if it all works out, -ENOMEM if there's no memory |
509 | */ | 511 | */ |
510 | static int smack_inode_init_security(struct inode *inode, struct inode *dir, | 512 | static int smack_inode_init_security(struct inode *inode, struct inode *dir, |
511 | char **name, void **value, size_t *len) | 513 | const struct qstr *qstr, char **name, |
514 | void **value, size_t *len) | ||
512 | { | 515 | { |
513 | char *isp = smk_of_inode(inode); | 516 | char *isp = smk_of_inode(inode); |
514 | char *dsp = smk_of_inode(dir); | 517 | char *dsp = smk_of_inode(dir); |