mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 07:36:19 +00:00
4b16b9c77f
It is useful to know where the client is connecting from, so include the socket address in probe data. * daemon/libvirtd.h: Use virSocketAddr for storing client address and keep printable address handy for logging * daemon/libvirtd.c: Include socket address in client connect/disconnect probes * daemon/probes.d: Add socket address to probes * examples/systemtap/client.stp: Print socket address * src/util/network.h: Add sockaddr_un to virSocketAddr union
29 lines
866 B
Plaintext
29 lines
866 B
Plaintext
#!/usr/bin/stap
|
|
|
|
probe libvirt.daemon.client.connect {
|
|
printf("Client fd=%d connected readonly=%d addr=%s\n", fd, readonly, addr);
|
|
}
|
|
probe libvirt.daemon.client.disconnect {
|
|
printf("Client fd=%d disconnected addr=%s\n", fd, addr);
|
|
}
|
|
|
|
probe libvirt.daemon.client.tls_allow {
|
|
printf("Client fd=%d tls allow %s\n", fd, x509dname);
|
|
}
|
|
probe libvirt.daemon.client.tls_deny {
|
|
printf("Client fd=%d tls deny %s\n", fd, x509dname);
|
|
}
|
|
probe libvirt.daemon.client.tls_fail {
|
|
printf("Client fd=%d tls fail\n", fd);
|
|
}
|
|
|
|
probe libvirt.daemon.client.auth_allow {
|
|
printf("Client fd=%d auth %s allow %s\n", fd, authname, identity);
|
|
}
|
|
probe libvirt.daemon.client.auth_deny {
|
|
printf("Client fd=%d auth %s deny %s\n", fd, authname, identity);
|
|
}
|
|
probe libvirt.daemon.client.auth_fail {
|
|
printf("Client fd=%d auth %s fail\n", fd, authname);
|
|
}
|