diff options
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/security/security.c b/security/security.c index daa97f4ac9d1..7b88c6aeaed4 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -1254,24 +1254,42 @@ void security_secmark_refcount_dec(void) | |||
1254 | } | 1254 | } |
1255 | EXPORT_SYMBOL(security_secmark_refcount_dec); | 1255 | EXPORT_SYMBOL(security_secmark_refcount_dec); |
1256 | 1256 | ||
1257 | int security_tun_dev_alloc_security(void **security) | ||
1258 | { | ||
1259 | return security_ops->tun_dev_alloc_security(security); | ||
1260 | } | ||
1261 | EXPORT_SYMBOL(security_tun_dev_alloc_security); | ||
1262 | |||
1263 | void security_tun_dev_free_security(void *security) | ||
1264 | { | ||
1265 | security_ops->tun_dev_free_security(security); | ||
1266 | } | ||
1267 | EXPORT_SYMBOL(security_tun_dev_free_security); | ||
1268 | |||
1257 | int security_tun_dev_create(void) | 1269 | int security_tun_dev_create(void) |
1258 | { | 1270 | { |
1259 | return security_ops->tun_dev_create(); | 1271 | return security_ops->tun_dev_create(); |
1260 | } | 1272 | } |
1261 | EXPORT_SYMBOL(security_tun_dev_create); | 1273 | EXPORT_SYMBOL(security_tun_dev_create); |
1262 | 1274 | ||
1263 | void security_tun_dev_post_create(struct sock *sk) | 1275 | int security_tun_dev_attach_queue(void *security) |
1264 | { | 1276 | { |
1265 | return security_ops->tun_dev_post_create(sk); | 1277 | return security_ops->tun_dev_attach_queue(security); |
1266 | } | 1278 | } |
1267 | EXPORT_SYMBOL(security_tun_dev_post_create); | 1279 | EXPORT_SYMBOL(security_tun_dev_attach_queue); |
1268 | 1280 | ||
1269 | int security_tun_dev_attach(struct sock *sk) | 1281 | int security_tun_dev_attach(struct sock *sk, void *security) |
1270 | { | 1282 | { |
1271 | return security_ops->tun_dev_attach(sk); | 1283 | return security_ops->tun_dev_attach(sk, security); |
1272 | } | 1284 | } |
1273 | EXPORT_SYMBOL(security_tun_dev_attach); | 1285 | EXPORT_SYMBOL(security_tun_dev_attach); |
1274 | 1286 | ||
1287 | int security_tun_dev_open(void *security) | ||
1288 | { | ||
1289 | return security_ops->tun_dev_open(security); | ||
1290 | } | ||
1291 | EXPORT_SYMBOL(security_tun_dev_open); | ||
1292 | |||
1275 | #endif /* CONFIG_SECURITY_NETWORK */ | 1293 | #endif /* CONFIG_SECURITY_NETWORK */ |
1276 | 1294 | ||
1277 | #ifdef CONFIG_SECURITY_NETWORK_XFRM | 1295 | #ifdef CONFIG_SECURITY_NETWORK_XFRM |