]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/misc-progs/setuid.h
1 /* SmoothWall helper program - header file
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.
13 #include <sys/types.h>
15 /* As nothing in setuid.c uses STRING_SIZE specifically there's no real reason
16 * to redefine it if it already is set */
18 #define STRING_SIZE 1024
22 #define CONFIG_ROOT "/var/ipfire"
26 #define SNAME "SNAME to be filled"
29 extern char * trusted_env
[4];
31 int run(char* command
, char** argv
);
32 int safe_system(char* command
);
33 int unpriv_system(char* command
, uid_t uid
, gid_t gid
);
36 int is_valid_argument_alnum(const char* arg
);
37 int is_valid_argument_num(const char* arg
);
39 /* Compatibility for the local copy of strlcat,
40 * which has been removed. */
41 #define strlcat(src, dst, size) strncat(src, dst, size)