security/sandbox/linux/android_ucontext.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 // Copyright (c) 2013 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.
     5 /* This file has been imported from
     6  * http://git.chromium.org/gitweb/?p=chromium.git;a=blob_plain;f=sandbox/linux/services/android_ucontext.h;hb=99b3e83972e478a42fa72da1ffefee58413e87d4
     7  */
     9 #ifndef SANDBOX_LINUX_SERVICES_ANDROID_UCONTEXT_H_
    10 #define SANDBOX_LINUX_SERVICES_ANDROID_UCONTEXT_H_
    12 #if defined(__ANDROID__)
    14 #if defined(__arm__)
    15 #include "android_arm_ucontext.h"
    16 #elif defined(__i386__)
    17 #include "android_i386_ucontext.h"
    18 #else
    19 #error "No support for your architecture in Android header"
    20 #endif
    22 #else  // __ANDROID__
    23 #error "Android header file included on non Android."
    24 #endif  // __ANDROID__
    26 #endif  // SANDBOX_LINUX_SERVICES_ANDROID_UCONTEXT_H_

mercurial