/[monit]/monit/files.c
ViewVC logotype

Diff of /monit/files.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by hauk, Fri Nov 1 09:46:28 2002 UTC revision 1.14 by chopp, Sat Nov 2 10:47:22 2002 UTC
# Line 49  Line 49 
49  /* Private variables */  /* Private variables */
50  static time_t rc_last_modified;  static time_t rc_last_modified;
51    
 /* Private functions */  
 static int check_file(char *filename, char *description,  
                       int permmask);  
   
52    
53  /**  /**
54   *  Utilities used for managing files used by monit.   *  Utilities used for managing files used by monit.
# Line 316  int check_ssl_files(void) { Line 312  int check_ssl_files(void) {
312  }  }
313    
314    
 /* ------------------------------------------------------------------ Public */  
   
315  /**  /**
316   * Security check for files. The files must have the same uid as the   * Security check for files. The files must have the same uid as the
317   * REAL uid of this process, it must have permissions no greater than   * REAL uid of this process, it must have permissions no greater than
# Line 328  int check_ssl_files(void) { Line 322  int check_ssl_files(void) {
322   * @param permmask The permission mask for the file   * @param permmask The permission mask for the file
323   * @return TRUE if the test passed otherwise FALSE   * @return TRUE if the test passed otherwise FALSE
324   */   */
325  static int check_file(char *filename, char *description,  int check_file(char *filename, char *description,
326                        int permmask) {                        int permmask) {
327    
328    struct stat buf;    struct stat buf;

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26