OLD | NEW |
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS 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 // Some portions Copyright (c) 2009 The Chromium Authors. | 4 // Some portions Copyright (c) 2009 The Chromium Authors. |
5 // | 5 // |
6 // Implements a simple jail that uses CommandLine heavily instead of | 6 // Implements a simple jail that uses CommandLine heavily instead of |
7 // the Options class. It should act as a simple reference implementation | 7 // the Options class. It should act as a simple reference implementation |
8 // for all functionality. | 8 // for all functionality. |
9 | 9 |
10 #ifndef __CHROMEOS_MINIJAIL_MINIJAIL_H | 10 #ifndef __CHROMEOS_MINIJAIL_MINIJAIL_H |
(...skipping 18 matching lines...) Expand all Loading... |
29 ~MiniJailOptions() { } | 29 ~MiniJailOptions() { } |
30 // We can set some defaults here if desired. | 30 // We can set some defaults here if desired. |
31 private: | 31 private: |
32 DISALLOW_COPY_AND_ASSIGN(MiniJailOptions); | 32 DISALLOW_COPY_AND_ASSIGN(MiniJailOptions); |
33 }; | 33 }; |
34 | 34 |
35 class MiniJail : public minijail::Interface { | 35 class MiniJail : public minijail::Interface { |
36 public: | 36 public: |
37 MiniJail() { } | 37 MiniJail() { } |
38 ~MiniJail() { } | 38 ~MiniJail() { } |
| 39 const char *name() { return "MiniJail"; } |
39 bool Jail() const; | 40 bool Jail() const; |
40 private: | 41 private: |
41 DISALLOW_COPY_AND_ASSIGN(MiniJail); | 42 DISALLOW_COPY_AND_ASSIGN(MiniJail); |
42 }; | 43 }; |
43 | 44 |
44 } // namespace chromeos | 45 } // namespace chromeos |
45 | 46 |
46 #endif // __CHROMEOS_MINIJAIL_MINIJAIL | 47 #endif // __CHROMEOS_MINIJAIL_MINIJAIL |
OLD | NEW |