diff options
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/security/security.c b/security/security.c index 30b0278de394..59f23b5918b3 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -125,35 +125,6 @@ int register_security(struct security_operations *ops) | |||
125 | return 0; | 125 | return 0; |
126 | } | 126 | } |
127 | 127 | ||
128 | /** | ||
129 | * mod_reg_security - allows security modules to be "stacked" | ||
130 | * @name: a pointer to a string with the name of the security_options to be registered | ||
131 | * @ops: a pointer to the struct security_options that is to be registered | ||
132 | * | ||
133 | * This function allows security modules to be stacked if the currently loaded | ||
134 | * security module allows this to happen. It passes the @name and @ops to the | ||
135 | * register_security function of the currently loaded security module. | ||
136 | * | ||
137 | * The return value depends on the currently loaded security module, with 0 as | ||
138 | * success. | ||
139 | */ | ||
140 | int mod_reg_security(const char *name, struct security_operations *ops) | ||
141 | { | ||
142 | if (verify(ops)) { | ||
143 | printk(KERN_INFO "%s could not verify " | ||
144 | "security operations.\n", __func__); | ||
145 | return -EINVAL; | ||
146 | } | ||
147 | |||
148 | if (ops == security_ops) { | ||
149 | printk(KERN_INFO "%s security operations " | ||
150 | "already registered.\n", __func__); | ||
151 | return -EINVAL; | ||
152 | } | ||
153 | |||
154 | return security_ops->register_security(name, ops); | ||
155 | } | ||
156 | |||
157 | /* Security operations */ | 128 | /* Security operations */ |
158 | 129 | ||
159 | int security_ptrace(struct task_struct *parent, struct task_struct *child, | 130 | int security_ptrace(struct task_struct *parent, struct task_struct *child, |