mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 09:14:57 +00:00
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
13 lines
488 B
D
13 lines
488 B
D
provider libvirtd {
|
|
probe client_connect(int fd, int readonly, const char *localAddr, const char *remoteAddr);
|
|
probe client_disconnect(int fd);
|
|
|
|
probe client_auth_allow(int fd, int authtype, const char *identity);
|
|
probe client_auth_deny(int fd, int authtype, const char *identity);
|
|
probe client_auth_fail(int fd, int authtype);
|
|
|
|
probe client_tls_allow(int fd, const char *x509dname);
|
|
probe client_tls_deny(int fd, const char *x509dname);
|
|
probe client_tls_fail(int fd);
|
|
};
|