projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace deprecated readdir_r() with readdir()
[lttng-tools.git]
/
src
/
common
/
runas.h
diff --git
a/src/common/runas.h
b/src/common/runas.h
index 9840eb056942ad7eb56fb83ee8a3aef4c29d49e4..46d4502e9c781a387f4723123f634167fe2a11ff 100644
(file)
--- a/
src/common/runas.h
+++ b/
src/common/runas.h
@@
-19,17
+19,24
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include <sys/types.h>
#include <unistd.h>
#include <pthread.h>
#include <unistd.h>
#include <pthread.h>
+LTTNG_HIDDEN
int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid);
int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid);
+LTTNG_HIDDEN
int run_as_mkdir(const char *path, mode_t mode, uid_t uid, gid_t gid);
int run_as_mkdir(const char *path, mode_t mode, uid_t uid, gid_t gid);
+LTTNG_HIDDEN
int run_as_open(const char *path, int flags, mode_t mode, uid_t uid, gid_t gid);
int run_as_open(const char *path, int flags, mode_t mode, uid_t uid, gid_t gid);
+LTTNG_HIDDEN
+int run_as_unlink(const char *path, uid_t uid, gid_t gid);
+LTTNG_HIDDEN
+int run_as_rmdir_recursive(const char *path, uid_t uid, gid_t gid);
-/*
- * We need to lock pthread exit, which deadlocks __nptl_setxid in the
- * clone.
- */
-extern pthread_mutex_t lttng_libc_state_lock;
+LTTNG_HIDDEN
+int run_as_create_worker(char *procname);
+LTTNG_HIDDEN
+void run_as_destroy_worker(void);
#endif /* _RUNAS_H */
#endif /* _RUNAS_H */
This page took
0.024906 seconds
and
5
git commands to generate.