add: drop privileges
This commit is contained in:
		
							parent
							
								
									486b45c680
								
							
						
					
					
						commit
						1d8408581a
					
				
					 6 changed files with 118 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -26,6 +26,8 @@ typedef struct
 | 
			
		|||
{
 | 
			
		||||
    char *file;
 | 
			
		||||
    char database[256];
 | 
			
		||||
    char user[256];
 | 
			
		||||
    char group[256];
 | 
			
		||||
    log_level_t log_level;
 | 
			
		||||
    run_type_t run_type;
 | 
			
		||||
    char server_port[6];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,4 +14,7 @@ helper_parse_cli(int argc, const char **argv, config_t *config);
 | 
			
		|||
int
 | 
			
		||||
helper_get_weekday(const struct tm *time_struct);
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
helper_drop_privileges();
 | 
			
		||||
 | 
			
		||||
#endif /* CORE_HELPERS_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue