summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
89831a7)
It is OK not to the the fchmod. However, if UST apps start before
lttng-sessiond, they will have write access to the futex shm.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ret = fchmod(wait_shm_fd, mode);
if (ret < 0) {
perror("fchmod");
exit(EXIT_FAILURE);
}
ret = fchmod(wait_shm_fd, mode);
if (ret < 0) {
perror("fchmod");
exit(EXIT_FAILURE);
}
+#else
+#warning "FreeBSD does not support setting file mode on shm FD. Remember that for secure use, lttng-sessiond should be started before applications linked on lttng-ust."
+#endif
DBG("Got the wait shm fd %d", wait_shm_fd);
DBG("Got the wait shm fd %d", wait_shm_fd);