aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/security.h
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2006-02-01 06:05:00 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-02-01 11:53:11 -0500
commited5a92700d3ce2646cb7763792a5f7ad1bade7e8 (patch)
tree83f0bb909c11e29c90fd3433284911ba7d76567e /include/linux/security.h
parent7ee26aa04d4dbd5e006b2f184d6028c71384681f (diff)
[PATCH] tpm_bios: needs more securityfs_ functions
tpm_bios.c needs securityfs_xyz() functions. Does include/linux/security.h need stubs for these, or should char/tpm/Makefile just be modified to say: ifdef CONFIG_ACPI ifdef CONFIG_SECURITY obj-$(CONFIG_TCG_TPM) += tpm_bios.o endif endif drivers/char/tpm/tpm_bios.c:494: warning: implicit declaration of function 'securityfs_create_dir' drivers/char/tpm/tpm_bios.c:494: warning: assignment makes pointer from integer without a cast drivers/char/tpm/tpm_bios.c:499: warning: implicit declaration of function 'securityfs_create_file' drivers/char/tpm/tpm_bios.c:501: warning: assignment makes pointer from integer without a cast drivers/char/tpm/tpm_bios.c:508: warning: assignment makes pointer from integer without a cast drivers/char/tpm/tpm_bios.c:523: warning: implicit declaration of function 'securityfs_remove' *** Warning: "securityfs_create_file" [drivers/char/tpm/tpm_bios.ko] undefined! *** Warning: "securityfs_create_dir" [drivers/char/tpm/tpm_bios.ko] undefined! *** Warning: "securityfs_remove" [drivers/char/tpm/tpm_bios.ko] undefined! There are also some gcc and sparse warnings that could be fixed. (see http://www.xenotime.net/linux/doc/build-tpm.out) Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Cc: Serge Hallyn <serue@us.ibm.com> Cc: Greg KH <greg@kroah.com> Cc: Kylene Jo Hall <kjhall@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/security.h')
-rw-r--r--include/linux/security.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/security.h b/include/linux/security.h
index ef753654daa5..bb1da86747c7 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -2617,6 +2617,25 @@ static inline int security_netlink_recv (struct sk_buff *skb)
2617 return cap_netlink_recv (skb); 2617 return cap_netlink_recv (skb);
2618} 2618}
2619 2619
2620static inline struct dentry *securityfs_create_dir(const char *name,
2621 struct dentry *parent)
2622{
2623 return ERR_PTR(-ENODEV);
2624}
2625
2626static inline struct dentry *securityfs_create_file(const char *name,
2627 mode_t mode,
2628 struct dentry *parent,
2629 void *data,
2630 struct file_operations *fops)
2631{
2632 return ERR_PTR(-ENODEV);
2633}
2634
2635static inline void securityfs_remove(struct dentry *dentry)
2636{
2637}
2638
2620#endif /* CONFIG_SECURITY */ 2639#endif /* CONFIG_SECURITY */
2621 2640
2622#ifdef CONFIG_SECURITY_NETWORK 2641#ifdef CONFIG_SECURITY_NETWORK