path: root/src/wydawca.h
diff options
Diffstat (limited to 'src/wydawca.h')
1 files changed, 9 insertions, 5 deletions
diff --git a/src/wydawca.h b/src/wydawca.h
index f786271..81e6509 100644
--- a/src/wydawca.h
+++ b/src/wydawca.h
@@ -303,6 +303,10 @@ void make_default_meta (struct metadef kwexp[5], const char *user,
303 303
304 304
305/* Global variables */ 305/* Global variables */
306extern uid_t wydawca_uid;
307extern gid_t wydawca_gid;
308extern size_t wydawca_supp_groupc;
309extern gid_t *wydawca_supp_groups;
306extern char *conffile; /* Configuration file name */ 310extern char *conffile; /* Configuration file name */
307extern int debug_level; /* Debugging level */ 311extern int debug_level; /* Debugging level */
308extern int dry_run_mode; /* Dry run indicator */ 312extern int dry_run_mode; /* Dry run indicator */
@@ -355,8 +359,8 @@ size_t trim_length (const char *str);
355size_t trim (char *str); 359size_t trim (char *str);
356void logmsg (int prio, char *fmt, ...) GSC_PRINTFLIKE(2,3); 360void logmsg (int prio, char *fmt, ...) GSC_PRINTFLIKE(2,3);
357int test_dir (const char *name, int *ec); 361int test_dir (const char *name, int *ec);
358char *create_directory (const char *base, const char *name, 362char *create_directory (const char *base, const char *name);
359 uid_t uid, gid_t gid); 363int create_hierarchy (char *dir, size_t baselen);
360void parse_config (void); 364void parse_config (void);
361void log_output (int prio, const char *prog, FILE *fp); 365void log_output (int prio, const char *prog, FILE *fp);
362 366
@@ -428,9 +432,6 @@ int process_directives (struct file_triplet *trp,
428 432
429int enabled_spool_p (const struct spool *spool); 433int enabled_spool_p (const struct spool *spool);
430 434
431int wydawca_set_privs (uid_t uid, gid_t gid);
432int wydawca_set_triplet_privs (struct file_triplet *trp);
433int wydawca_set_root_privs (void);
434 435
435 436
436int parse_time_interval (const char *str, time_t *pint, const char **endp); 437int parse_time_interval (const char *str, time_t *pint, const char **endp);
@@ -538,3 +539,6 @@ void wydawca_lock_init (void);
538/* tcpwrap.h */ 539/* tcpwrap.h */
539extern struct gconf_keyword tcpwrapper_kw[]; 540extern struct gconf_keyword tcpwrapper_kw[];
540int tcpwrap_access(int fd); 541int tcpwrap_access(int fd);
543/* userprivs.c */
544int wydawca_userprivs (uid_t uid, gid_t gid, gid_t *grplist, size_t ngrp);

Return to:

Send suggestions and report system problems to the System administrator.