]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - include/linux/security.h
security: add hook for socketpair()
[mirror_ubuntu-eoan-kernel.git] / include / linux / security.h
index ecb06e1357dd12bbcfd96eba526d673d344b8006..63030c85ee1927ae0de30a07148fa511e19231aa 100644 (file)
@@ -1177,6 +1177,7 @@ int security_unix_may_send(struct socket *sock,  struct socket *other);
 int security_socket_create(int family, int type, int protocol, int kern);
 int security_socket_post_create(struct socket *sock, int family,
                                int type, int protocol, int kern);
+int security_socket_socketpair(struct socket *socka, struct socket *sockb);
 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen);
 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen);
 int security_socket_listen(struct socket *sock, int backlog);
@@ -1248,6 +1249,12 @@ static inline int security_socket_post_create(struct socket *sock,
        return 0;
 }
 
+static inline int security_socket_socketpair(struct socket *socka,
+                                            struct socket *sockb)
+{
+       return 0;
+}
+
 static inline int security_socket_bind(struct socket *sock,
                                       struct sockaddr *address,
                                       int addrlen)