| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 1 #include "debug.h" | 5 #include "debug.h" |
| 2 #include "sandbox_impl.h" | 6 #include "sandbox_impl.h" |
| 3 | 7 |
| 4 namespace playground { | 8 namespace playground { |
| 5 | 9 |
| 6 int Sandbox::sandbox_ioctl(int d, int req, void *arg) { | 10 int Sandbox::sandbox_ioctl(int d, int req, void *arg) { |
| 7 Debug::syscall(__NR_ioctl, "Executing handler"); | 11 Debug::syscall(__NR_ioctl, "Executing handler"); |
| 8 struct { | 12 struct { |
| 9 int sysnum; | 13 int sysnum; |
| 10 long long cookie; | 14 long long cookie; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 return true; | 47 return true; |
| 44 default: | 48 default: |
| 45 std::cerr << "Unsupported ioctl: 0x" << std::hex << ioctl_req.req << | 49 std::cerr << "Unsupported ioctl: 0x" << std::hex << ioctl_req.req << |
| 46 std::endl; | 50 std::endl; |
| 47 SecureMem::abandonSystemCall(threadFd, rc); | 51 SecureMem::abandonSystemCall(threadFd, rc); |
| 48 return false; | 52 return false; |
| 49 } | 53 } |
| 50 } | 54 } |
| 51 | 55 |
| 52 } // namespace | 56 } // namespace |
| OLD | NEW |