diff options
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 15 |
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 */ |
1433 | extern int security_init (void); | 1426 | extern int security_init (void); |
1434 | extern int register_security (struct security_operations *ops); | 1427 | extern int register_security (struct security_operations *ops); |
1435 | extern int unregister_security (struct security_operations *ops); | ||
1436 | extern int mod_reg_security (const char *name, struct security_operations *ops); | 1428 | extern int mod_reg_security (const char *name, struct security_operations *ops); |
1437 | extern int mod_unreg_security (const char *name, struct security_operations *ops); | ||
1438 | extern struct dentry *securityfs_create_file(const char *name, mode_t mode, | 1429 | extern 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); | |||
1518 | int security_inode_removexattr(struct dentry *dentry, char *name); | 1509 | int security_inode_removexattr(struct dentry *dentry, char *name); |
1519 | int security_inode_need_killpriv(struct dentry *dentry); | 1510 | int security_inode_need_killpriv(struct dentry *dentry); |
1520 | int security_inode_killpriv(struct dentry *dentry); | 1511 | int security_inode_killpriv(struct dentry *dentry); |
1521 | const char *security_inode_xattr_getsuffix(void); | ||
1522 | int security_inode_getsecurity(const struct inode *inode, const char *name, void *buffer, size_t size, int err); | 1512 | int security_inode_getsecurity(const struct inode *inode, const char *name, void *buffer, size_t size, int err); |
1523 | int security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags); | 1513 | int security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags); |
1524 | int security_inode_listsecurity(struct inode *inode, char *buffer, size_t buffer_size); | 1514 | int 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 | ||
1926 | static inline const char *security_inode_xattr_getsuffix (void) | ||
1927 | { | ||
1928 | return NULL ; | ||
1929 | } | ||
1930 | |||
1931 | static inline int security_inode_getsecurity(const struct inode *inode, const char *name, void *buffer, size_t size, int err) | 1916 | static 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; |