aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-10-17 02:31:38 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:43:07 -0400
commitcbfee34520666862f8ff539e580c48958fbb7706 (patch)
treeded5cafce333e908a0fbeda1f7c55eaf7c1fbaaa /include/linux
parentb53767719b6cd8789392ea3e7e2eb7b8906898f0 (diff)
security/ cleanups
This patch contains the following cleanups that are now possible: - remove the unused security_operations->inode_xattr_getsuffix - remove the no longer used security_operations->unregister_security - remove some no longer required exit code - remove a bunch of no longer used exports Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: James Morris <jmorris@namei.org> Cc: Chris Wright <chrisw@sous-sol.org> Cc: Stephen Smalley <sds@tycho.nsa.gov> Cc: Serge Hallyn <serue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/security.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/security.h b/include/linux/security.h
index df591d289ec9..9b0b63c50f44 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -1158,10 +1158,6 @@ struct request_sock;
1158 * allow module stacking. 1158 * allow module stacking.
1159 * @name contains the name of the security module being stacked. 1159 * @name contains the name of the security module being stacked.
1160 * @ops contains a pointer to the struct security_operations of the module to stack. 1160 * @ops contains a pointer to the struct security_operations of the module to stack.
1161 * @unregister_security:
1162 * remove a stacked module.
1163 * @name contains the name of the security module being unstacked.
1164 * @ops contains a pointer to the struct security_operations of the module to unstack.
1165 * 1161 *
1166 * @secid_to_secctx: 1162 * @secid_to_secctx:
1167 * Convert secid to security context. 1163 * Convert secid to security context.
@@ -1259,7 +1255,6 @@ struct security_operations {
1259 int (*inode_removexattr) (struct dentry *dentry, char *name); 1255 int (*inode_removexattr) (struct dentry *dentry, char *name);
1260 int (*inode_need_killpriv) (struct dentry *dentry); 1256 int (*inode_need_killpriv) (struct dentry *dentry);
1261 int (*inode_killpriv) (struct dentry *dentry); 1257 int (*inode_killpriv) (struct dentry *dentry);
1262 const char *(*inode_xattr_getsuffix) (void);
1263 int (*inode_getsecurity)(const struct inode *inode, const char *name, void *buffer, size_t size, int err); 1258 int (*inode_getsecurity)(const struct inode *inode, const char *name, void *buffer, size_t size, int err);
1264 int (*inode_setsecurity)(struct inode *inode, const char *name, const void *value, size_t size, int flags); 1259 int (*inode_setsecurity)(struct inode *inode, const char *name, const void *value, size_t size, int flags);
1265 int (*inode_listsecurity)(struct inode *inode, char *buffer, size_t buffer_size); 1260 int (*inode_listsecurity)(struct inode *inode, char *buffer, size_t buffer_size);
@@ -1350,8 +1345,6 @@ struct security_operations {
1350 /* allow module stacking */ 1345 /* allow module stacking */
1351 int (*register_security) (const char *name, 1346 int (*register_security) (const char *name,
1352 struct security_operations *ops); 1347 struct security_operations *ops);
1353 int (*unregister_security) (const char *name,
1354 struct security_operations *ops);
1355 1348
1356 void (*d_instantiate) (struct dentry *dentry, struct inode *inode); 1349 void (*d_instantiate) (struct dentry *dentry, struct inode *inode);
1357 1350
@@ -1432,9 +1425,7 @@ struct security_operations {
1432/* prototypes */ 1425/* prototypes */
1433extern int security_init (void); 1426extern int security_init (void);
1434extern int register_security (struct security_operations *ops); 1427extern int register_security (struct security_operations *ops);
1435extern int unregister_security (struct security_operations *ops);
1436extern int mod_reg_security (const char *name, struct security_operations *ops); 1428extern int mod_reg_security (const char *name, struct security_operations *ops);
1437extern int mod_unreg_security (const char *name, struct security_operations *ops);
1438extern struct dentry *securityfs_create_file(const char *name, mode_t mode, 1429extern struct dentry *securityfs_create_file(const char *name, mode_t mode,
1439 struct dentry *parent, void *data, 1430 struct dentry *parent, void *data,
1440 const struct file_operations *fops); 1431 const struct file_operations *fops);
@@ -1518,7 +1509,6 @@ int security_inode_listxattr(struct dentry *dentry);
1518int security_inode_removexattr(struct dentry *dentry, char *name); 1509int security_inode_removexattr(struct dentry *dentry, char *name);
1519int security_inode_need_killpriv(struct dentry *dentry); 1510int security_inode_need_killpriv(struct dentry *dentry);
1520int security_inode_killpriv(struct dentry *dentry); 1511int security_inode_killpriv(struct dentry *dentry);
1521const char *security_inode_xattr_getsuffix(void);
1522int security_inode_getsecurity(const struct inode *inode, const char *name, void *buffer, size_t size, int err); 1512int security_inode_getsecurity(const struct inode *inode, const char *name, void *buffer, size_t size, int err);
1523int security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags); 1513int security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags);
1524int security_inode_listsecurity(struct inode *inode, char *buffer, size_t buffer_size); 1514int security_inode_listsecurity(struct inode *inode, char *buffer, size_t buffer_size);
@@ -1923,11 +1913,6 @@ static inline int security_inode_killpriv(struct dentry *dentry)
1923 return cap_inode_killpriv(dentry); 1913 return cap_inode_killpriv(dentry);
1924} 1914}
1925 1915
1926static inline const char *security_inode_xattr_getsuffix (void)
1927{
1928 return NULL ;
1929}
1930
1931static inline int security_inode_getsecurity(const struct inode *inode, const char *name, void *buffer, size_t size, int err) 1916static inline int security_inode_getsecurity(const struct inode *inode, const char *name, void *buffer, size_t size, int err)
1932{ 1917{
1933 return -EOPNOTSUPP; 1918 return -EOPNOTSUPP;