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.7.0-rc2~9 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=f05b960dd00eb1bf6d211cfa057c277cb561e97f;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 */