|
@@ -1032,6 +1032,8 @@ static int caif_create(struct net *net, struct socket *sock, int protocol,
|
|
static struct proto prot = {.name = "PF_CAIF",
|
|
static struct proto prot = {.name = "PF_CAIF",
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
.obj_size = sizeof(struct caifsock),
|
|
.obj_size = sizeof(struct caifsock),
|
|
|
|
+ .useroffset = offsetof(struct caifsock, conn_req.param),
|
|
|
|
+ .usersize = sizeof_field(struct caifsock, conn_req.param)
|
|
};
|
|
};
|
|
|
|
|
|
if (!capable(CAP_SYS_ADMIN) && !capable(CAP_NET_ADMIN))
|
|
if (!capable(CAP_SYS_ADMIN) && !capable(CAP_NET_ADMIN))
|