24 <h3>Functions</h3> |
24 <h3>Functions</h3> |
25 |
25 |
26 <table> |
26 <table> |
27 |
27 |
28 <tr> |
28 <tr> |
|
29 <td><a href="#_statIsDangerous">_statIsDangerous</a></td> |
|
30 <td>Function to check for dangerous stat values.</td> |
|
31 </tr> |
|
32 <tr> |
29 <td><a href="#checkFilePermissions">checkFilePermissions</a></td> |
33 <td><a href="#checkFilePermissions">checkFilePermissions</a></td> |
30 <td>Function to check for setting too permissive file permissions.</td> |
34 <td>Function to check for setting too permissive file permissions.</td> |
31 </tr> |
35 </tr> |
32 <tr> |
36 <tr> |
33 <td><a href="#getChecks">getChecks</a></td> |
37 <td><a href="#getChecks">getChecks</a></td> |
34 <td>Public method to get a dictionary with checks handled by this module.</td> |
38 <td>Public method to get a dictionary with checks handled by this module.</td> |
35 </tr> |
39 </tr> |
36 </table> |
40 </table> |
|
41 <hr /> |
|
42 <hr /> |
|
43 <a NAME="_statIsDangerous" ID="_statIsDangerous"></a> |
|
44 <h2>_statIsDangerous</h2> |
|
45 <b>_statIsDangerous</b>(<i>mode</i>) |
|
46 |
|
47 <p> |
|
48 Function to check for dangerous stat values. |
|
49 </p> |
|
50 <dl> |
|
51 |
|
52 <dt><i>mode</i> (int)</dt> |
|
53 <dd> |
|
54 file mode to be checked |
|
55 </dd> |
|
56 </dl> |
|
57 <dl> |
|
58 <dt>Return:</dt> |
|
59 <dd> |
|
60 mode with masked dangerous values |
|
61 </dd> |
|
62 </dl> |
|
63 <dl> |
|
64 <dt>Return Type:</dt> |
|
65 <dd> |
|
66 int |
|
67 </dd> |
|
68 </dl> |
|
69 <div align="right"><a href="#top">Up</a></div> |
37 <hr /> |
70 <hr /> |
38 <hr /> |
71 <hr /> |
39 <a NAME="checkFilePermissions" ID="checkFilePermissions"></a> |
72 <a NAME="checkFilePermissions" ID="checkFilePermissions"></a> |
40 <h2>checkFilePermissions</h2> |
73 <h2>checkFilePermissions</h2> |
41 <b>checkFilePermissions</b>(<i>reportError, context, config</i>) |
74 <b>checkFilePermissions</b>(<i>reportError, context, config</i>) |