Skip to content

Commit

Permalink
Fix: Hide run-as functions
Browse files Browse the repository at this point in the history
Signed-off-by: Jérémie Galarneau <[email protected]>
  • Loading branch information
jgalar committed Sep 17, 2015
1 parent 793494f commit dec59c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/common/runas.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@
#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);
LTTNG_HIDDEN
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);
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);

/* Backward compat. */
Expand All @@ -34,7 +39,9 @@ static inline int run_as_recursive_rmdir(const char *path, uid_t uid, gid_t gid)
return run_as_rmdir_recursive(path, uid, gid);
}

LTTNG_HIDDEN
int run_as_create_worker(char *procname);
LTTNG_HIDDEN
void run_as_destroy_worker(void);

#endif /* _RUNAS_H */

0 comments on commit dec59c1

Please sign in to comment.