Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h

Issue 317373003: Merge 274934 "Linux sandbox: restrict futex operations." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1985/src/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_ 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_
6 #define SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_ 6 #define SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "sandbox/linux/sandbox_export.h" 10 #include "sandbox/linux/sandbox_export.h"
(...skipping 22 matching lines...) Expand all
33 // The crashing address will be (option & 0xFFF), where option is the prctl(2) 33 // The crashing address will be (option & 0xFFF), where option is the prctl(2)
34 // argument. 34 // argument.
35 SANDBOX_EXPORT intptr_t 35 SANDBOX_EXPORT intptr_t
36 SIGSYSPrctlFailure(const struct arch_seccomp_data& args, void* aux); 36 SIGSYSPrctlFailure(const struct arch_seccomp_data& args, void* aux);
37 // The crashing address will be request & 0xFFFF, where request is the ioctl(2) 37 // The crashing address will be request & 0xFFFF, where request is the ioctl(2)
38 // argument. 38 // argument.
39 SANDBOX_EXPORT intptr_t 39 SANDBOX_EXPORT intptr_t
40 SIGSYSIoctlFailure(const struct arch_seccomp_data& args, void* aux); 40 SIGSYSIoctlFailure(const struct arch_seccomp_data& args, void* aux);
41 // The crashing address will be (pid & 0xFFF), where pid is the first 41 // The crashing address will be (pid & 0xFFF), where pid is the first
42 // argument (and can be a tid). 42 // argument (and can be a tid).
43 intptr_t SIGSYSKillFailure(const struct arch_seccomp_data& args, void* aux); 43 SANDBOX_EXPORT intptr_t
44 SIGSYSKillFailure(const struct arch_seccomp_data& args, void* aux);
45 // The crashing address will be (op & 0xFFF), where op is the second
46 // argument.
47 SANDBOX_EXPORT intptr_t
48 SIGSYSFutexFailure(const struct arch_seccomp_data& args, void* aux);
44 49
45 // Following four functions return substrings of error messages used 50 // Following four functions return substrings of error messages used
46 // in the above four functions. They are useful in death tests. 51 // in the above four functions. They are useful in death tests.
47 SANDBOX_EXPORT const char* GetErrorMessageContentForTests(); 52 SANDBOX_EXPORT const char* GetErrorMessageContentForTests();
48 SANDBOX_EXPORT const char* GetCloneErrorMessageContentForTests(); 53 SANDBOX_EXPORT const char* GetCloneErrorMessageContentForTests();
49 SANDBOX_EXPORT const char* GetPrctlErrorMessageContentForTests(); 54 SANDBOX_EXPORT const char* GetPrctlErrorMessageContentForTests();
50 SANDBOX_EXPORT const char* GetIoctlErrorMessageContentForTests(); 55 SANDBOX_EXPORT const char* GetIoctlErrorMessageContentForTests();
56 SANDBOX_EXPORT const char* GetFutexErrorMessageContentForTests();
51 57
52 } // namespace sandbox. 58 } // namespace sandbox.
53 59
54 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_ 60 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc ('k') | sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698