X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Frunas-stub.c;fp=src%2Fcommon%2Frunas-stub.c;h=99b44d32acf44fca676b107b950cc9e0b31456fa;hb=241e0a5ac6da55b41adaf516fbd36af332d94b3d;hp=0000000000000000000000000000000000000000;hpb=fe9f7760c61d1248a062138fd059c84ec03967f6;p=lttng-tools.git diff --git a/src/common/runas-stub.c b/src/common/runas-stub.c new file mode 100644 index 000000000..99b44d32a --- /dev/null +++ b/src/common/runas-stub.c @@ -0,0 +1,57 @@ +#ifndef _RUNAS_STUB_H +#define _RUNAS_STUB_H + +/* + * Copyright (C) 2018 - Francis Deslauriers + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2 only, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#include +#include + +int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid) +{ + return -1; +} +int run_as_mkdir(const char *path, mode_t mode, uid_t uid, gid_t gid) +{ + return -1; +} +int run_as_open(const char *path, int flags, mode_t mode, uid_t uid, gid_t gid) +{ + return -1; +} +int run_as_unlink(const char *path, uid_t uid, gid_t gid) +{ + return -1; +} +int run_as_rmdir_recursive(const char *path, uid_t uid, gid_t gid) +{ + return -1; +} +int lttng_elf_get_symbol_offset(int fd, char *symbol, uint64_t *offset) +{ + return -1; +} +int run_as_create_worker(char *procname) +{ + return -1; +} +void run_as_destroy_worker(void) +{ + return; +} + +#endif /* _RUNAS_STUB_H */