]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - include/linux/security.h
UBUNTU: SAUCE: net: Prepare UDS for security module stacking
[mirror_ubuntu-jammy-kernel.git] / include / linux / security.h
index e03708dc189be8e83166ba061c2a7b52dc3d280e..2e124b5a248c271a218a4668e830e7661a105d58 100644 (file)
@@ -1455,7 +1455,8 @@ int security_socket_shutdown(struct socket *sock, int how);
 int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb);
 int security_socket_getpeersec_stream(struct socket *sock, char __user *optval,
                                      int __user *optlen, unsigned len);
-int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid);
+int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb,
+                                    struct lsmblob *blob);
 int security_sk_alloc(struct sock *sk, int family, gfp_t priority);
 void security_sk_free(struct sock *sk);
 void security_sk_clone(const struct sock *sk, struct sock *newsk);
@@ -1594,7 +1595,9 @@ static inline int security_socket_getpeersec_stream(struct socket *sock, char __
        return -ENOPROTOOPT;
 }
 
-static inline int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid)
+static inline int security_socket_getpeersec_dgram(struct socket *sock,
+                                                  struct sk_buff *skb,
+                                                  struct lsmblob *blob)
 {
        return -ENOPROTOOPT;
 }