]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/misc-progs/setuid.h
d1155c5e8dedac0f426808888941136281f9fc6d
[people/teissler/ipfire-2.x.git] / src / misc-progs / setuid.h
1 /* SmoothWall helper program - header file
2 *
3 * This program is distributed under the terms of the GNU General Public
4 * Licence. See the file COPYING for details.
5 * Simple header file for all setuid progs.
6 *
7 */
8
9 #ifndef SETUID_H
10 #define SETUID_H 1
11
12 #include <stdlib.h>
13 #include <sys/types.h>
14
15 /* As nothing in setuid.c uses STRING_SIZE specifically there's no real reason
16 * to redefine it if it already is set */
17 #ifndef STRING_SIZE
18 #define STRING_SIZE 256
19 #endif
20
21 extern char * trusted_env[4];
22
23 int system_core(char* command, uid_t uid, gid_t gid, char *error);
24 int safe_system(char* command);
25 int unpriv_system(char* command, uid_t uid, gid_t gid);
26 size_t strlcat(char *dst, const char *src, size_t len);
27 int initsetuid(void);
28
29 #endif