projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make root able to connect to any traceable app
[ust.git]
/
libustcomm
/
ustcomm.h
diff --git
a/libustcomm/ustcomm.h
b/libustcomm/ustcomm.h
index 0ec04fc6e5edfd83458e021ecf835c0b5f429eaa..995295810a5fc80ee4f8fcd1cae87618ed821a03 100644
(file)
--- a/
libustcomm/ustcomm.h
+++ b/
libustcomm/ustcomm.h
@@
-25,6
+25,9
@@
#include <ust/kcompat/kcompat.h>
#define SOCK_DIR "/tmp/ust-app-socks"
#include <ust/kcompat/kcompat.h>
#define SOCK_DIR "/tmp/ust-app-socks"
+#define USER_TMP_DIR "/tmp"
+#define USER_SOCK_DIR_BASE "ust-socks-"
+#define USER_SOCK_DIR USER_TMP_DIR "/" USER_SOCK_DIR_BASE
struct ustcomm_sock {
struct cds_list_head list;
struct ustcomm_sock {
struct cds_list_head list;
@@
-118,7
+121,7
@@
struct ustcomm_notify_buf_mapped {
};
/* Ensure directory existence, usefull for unix sockets */
};
/* Ensure directory existence, usefull for unix sockets */
-extern int ensure_dir_exists(const char *dir);
+extern int ensure_dir_exists(const char *dir
, mode_t mode
);
/* Create and delete sockets */
extern struct ustcomm_sock * ustcomm_init_sock(int fd, int epoll_fd,
/* Create and delete sockets */
extern struct ustcomm_sock * ustcomm_init_sock(int fd, int epoll_fd,
@@
-156,6
+159,9
@@
extern int ustcomm_req(int sock,
char *res_data);
extern int ustcomm_request_consumer(pid_t pid, const char *channel);
char *res_data);
extern int ustcomm_request_consumer(pid_t pid, const char *channel);
+
+/* Returns the current users socket directory, must be freed */
+extern char *ustcomm_user_sock_dir(void);
extern int ustcomm_connect_app(pid_t pid, int *app_fd);
extern int ustcomm_connect_path(const char *path, int *connection_fd);
extern int ustcomm_connect_app(pid_t pid, int *app_fd);
extern int ustcomm_connect_path(const char *path, int *connection_fd);
This page took
0.024372 seconds
and
4
git commands to generate.