Changeset 1240

Show
Ignore:
Timestamp:
09/04/08 00:26:06 (3 months ago)
Author:
mbr
Message:

added chmod() to ensure that .pid files have 0600 permissions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fwknop/trunk/CREDITS

    r1217 r1240  
    162162    - Architected the process of packaging fwknop for the Debian Linux 
    163163      distribution. 
     164    - Suggested 0600 permissions mode on all <proc>.pid files in 
     165      /var/run/fwknop/ 
    164166 
    165167Jose Luis Bellido 
  • fwknop/trunk/fwknop_funcs.c

    r1201 r1240  
    104104    } 
    105105 
    106     /* the pid_file now that we have read it */ 
     106    /* close the pid_file now that we have read it */ 
    107107    fclose(pidfile_ptr); 
     108 
     109    /* set permissions to 0600 (suggested by Franck Joncourt) */ 
     110    chmod(pid_file, 0600); 
    108111 
    109112    return;