~ubuntu-branches/ubuntu/utopic/vsftpd/utopic-proposed

« back to all changes in this revision

Viewing changes to ftppolicy.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-03 17:49:00 UTC
  • mto: (2.4.1 sid) (1.5.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20090503174900-0osuifgr8jknvu5e
Tags: upstream-2.1.1~pre1
ImportĀ upstreamĀ versionĀ 2.1.1~pre1

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
static int
163
163
socket_validator(struct pt_sandbox* p_sandbox, void* p_arg)
164
164
{
165
 
  int ret;
166
165
  struct vsf_session* p_sess = (struct vsf_session*) p_arg;
167
166
  unsigned long arg1;
168
167
  unsigned long arg2;
171
170
  {
172
171
    expected_family = AF_INET6;
173
172
  }
174
 
  ret = ptrace_sandbox_get_socketcall_arg(p_sandbox, 0, &arg1);
 
173
  int ret = ptrace_sandbox_get_socketcall_arg(p_sandbox, 0, &arg1);
175
174
  if (ret != 0)
176
175
  {
177
176
    return ret;
191
190
static int
192
191
connect_validator(struct pt_sandbox* p_sandbox, void* p_arg)
193
192
{
194
 
  int ret;
195
193
  struct vsf_session* p_sess = (struct vsf_session*) p_arg;
196
194
  unsigned long arg2;
197
195
  unsigned long arg3;
205
203
    expected_family = AF_INET6;
206
204
    expected_len = sizeof(struct sockaddr_in6);
207
205
  }
208
 
  ret = ptrace_sandbox_get_socketcall_arg(p_sandbox, 1, &arg2);
 
206
  int ret = ptrace_sandbox_get_socketcall_arg(p_sandbox, 1, &arg2);
209
207
  if (ret != 0)
210
208
  {
211
209
    return ret;
260
258
static int
261
259
getsockopt_validator(struct pt_sandbox* p_sandbox, void* p_arg)
262
260
{
263
 
  int ret;
264
261
  unsigned long arg2;
265
262
  unsigned long arg3;
266
263
  (void) p_arg;
267
 
  ret = ptrace_sandbox_get_socketcall_arg(p_sandbox, 1, &arg2);
 
264
  int ret = ptrace_sandbox_get_socketcall_arg(p_sandbox, 1, &arg2);
268
265
  if (ret != 0)
269
266
  {
270
267
    return ret;
284
281
static int
285
282
setsockopt_validator(struct pt_sandbox* p_sandbox, void* p_arg)
286
283
{
287
 
  int ret;
288
284
  unsigned long arg2;
289
285
  unsigned long arg3;
290
286
  (void) p_arg;
291
 
  ret = ptrace_sandbox_get_socketcall_arg(p_sandbox, 1, &arg2);
 
287
  int ret = ptrace_sandbox_get_socketcall_arg(p_sandbox, 1, &arg2);
292
288
  if (ret != 0)
293
289
  {
294
290
    return ret;