Fix runas namespace
[lttng-tools.git] / common / runas.h
CommitLineData
60b6c79c
MD
1#ifndef _RUNAS_H
2#define _RUNAS_H
3
4/*
5 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
6 * Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; only verion 2
11 * of the License.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 */
22
23#include <unistd.h>
24
e11d277b
DG
25int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid);
26int run_as_mkdir(const char *path, mode_t mode, uid_t uid, gid_t gid);
27int run_as_open(const char *path, int flags, mode_t mode, uid_t uid, gid_t gid);
60b6c79c
MD
28
29#endif /* _RUNAS_H */
This page took 0.034043 seconds and 4 git commands to generate.