From: Jérémie Galarneau Date: Thu, 17 Sep 2015 18:12:34 +0000 (-0400) Subject: Fix: Hide run-as functions X-Git-Tag: v2.8.0-rc1~323 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c18250f2bdedfd55e8429a2b559d8290ec7061c0;p=lttng-tools.git Fix: Hide run-as functions Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/runas.h b/src/common/runas.h index e1269a420..2c5565af3 100644 --- a/src/common/runas.h +++ b/src/common/runas.h @@ -22,10 +22,15 @@ #include #include +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. */ @@ -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 */