diff options
Diffstat (limited to 'security/security.c')
| -rw-r--r-- | security/security.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c index a3dce87d1aef..0fe2b2ee9545 100644 --- a/security/security.c +++ b/security/security.c | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | */ | 12 | */ |
| 13 | 13 | ||
| 14 | #include <linux/capability.h> | 14 | #include <linux/capability.h> |
| 15 | #include <linux/dcache.h> | ||
| 15 | #include <linux/module.h> | 16 | #include <linux/module.h> |
| 16 | #include <linux/init.h> | 17 | #include <linux/init.h> |
| 17 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
| @@ -324,6 +325,15 @@ void security_inode_free(struct inode *inode) | |||
| 324 | security_ops->inode_free_security(inode); | 325 | security_ops->inode_free_security(inode); |
| 325 | } | 326 | } |
| 326 | 327 | ||
| 328 | int security_dentry_init_security(struct dentry *dentry, int mode, | ||
| 329 | struct qstr *name, void **ctx, | ||
| 330 | u32 *ctxlen) | ||
| 331 | { | ||
| 332 | return security_ops->dentry_init_security(dentry, mode, name, | ||
| 333 | ctx, ctxlen); | ||
| 334 | } | ||
| 335 | EXPORT_SYMBOL(security_dentry_init_security); | ||
| 336 | |||
| 327 | int security_inode_init_security(struct inode *inode, struct inode *dir, | 337 | int security_inode_init_security(struct inode *inode, struct inode *dir, |
| 328 | const struct qstr *qstr, | 338 | const struct qstr *qstr, |
| 329 | const initxattrs initxattrs, void *fs_data) | 339 | const initxattrs initxattrs, void *fs_data) |
