|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.tarfileUnsafeMembers</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.tarfileUnsafeMembers</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing checks for insecure use of 'tarfile.extracall()'. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 <tr><td>None</td></tr> |
|
23 </table> |
|
24 <h3>Functions</h3> |
|
25 |
|
26 <table> |
|
27 |
|
28 <tr> |
|
29 <td><a href="#_getMembersValue">_getMembersValue</a></td> |
|
30 <td>Function to extract the value of the 'members' argument.</td> |
|
31 </tr> |
|
32 <tr> |
|
33 <td><a href="#checkTarfileUnsafeMembers">checkTarfileUnsafeMembers</a></td> |
|
34 <td>Function to check for insecure use of 'tarfile.extracall()'.</td> |
|
35 </tr> |
|
36 <tr> |
|
37 <td><a href="#getChecks">getChecks</a></td> |
|
38 <td>Public method to get a dictionary with checks handled by this module.</td> |
|
39 </tr> |
|
40 </table> |
|
41 <hr /> |
|
42 <hr /> |
|
43 <a NAME="_getMembersValue" ID="_getMembersValue"></a> |
|
44 <h2>_getMembersValue</h2> |
|
45 <b>_getMembersValue</b>(<i>context</i>) |
|
46 |
|
47 <p> |
|
48 Function to extract the value of the 'members' argument. |
|
49 </p> |
|
50 <dl> |
|
51 |
|
52 <dt><i>context</i> (SecurityContext)</dt> |
|
53 <dd> |
|
54 security context object |
|
55 </dd> |
|
56 </dl> |
|
57 <dl> |
|
58 <dt>Return:</dt> |
|
59 <dd> |
|
60 dictionary containing the argument value |
|
61 </dd> |
|
62 </dl> |
|
63 <dl> |
|
64 <dt>Return Type:</dt> |
|
65 <dd> |
|
66 dict |
|
67 </dd> |
|
68 </dl> |
|
69 <div align="right"><a href="#top">Up</a></div> |
|
70 <hr /> |
|
71 <hr /> |
|
72 <a NAME="checkTarfileUnsafeMembers" ID="checkTarfileUnsafeMembers"></a> |
|
73 <h2>checkTarfileUnsafeMembers</h2> |
|
74 <b>checkTarfileUnsafeMembers</b>(<i>reportError, context, config</i>) |
|
75 |
|
76 <p> |
|
77 Function to check for insecure use of 'tarfile.extracall()'. |
|
78 </p> |
|
79 <dl> |
|
80 |
|
81 <dt><i>reportError</i> (func)</dt> |
|
82 <dd> |
|
83 function to be used to report errors |
|
84 </dd> |
|
85 <dt><i>context</i> (SecurityContext)</dt> |
|
86 <dd> |
|
87 security context object |
|
88 </dd> |
|
89 <dt><i>config</i> (dict)</dt> |
|
90 <dd> |
|
91 dictionary with configuration data |
|
92 </dd> |
|
93 </dl> |
|
94 <div align="right"><a href="#top">Up</a></div> |
|
95 <hr /> |
|
96 <hr /> |
|
97 <a NAME="getChecks" ID="getChecks"></a> |
|
98 <h2>getChecks</h2> |
|
99 <b>getChecks</b>(<i></i>) |
|
100 |
|
101 <p> |
|
102 Public method to get a dictionary with checks handled by this module. |
|
103 </p> |
|
104 <dl> |
|
105 <dt>Return:</dt> |
|
106 <dd> |
|
107 dictionary containing checker lists containing checker function and |
|
108 list of codes |
|
109 </dd> |
|
110 </dl> |
|
111 <dl> |
|
112 <dt>Return Type:</dt> |
|
113 <dd> |
|
114 dict |
|
115 </dd> |
|
116 </dl> |
|
117 <div align="right"><a href="#top">Up</a></div> |
|
118 <hr /> |
|
119 </body></html> |