Commit Graph

1346 Commits

Author SHA1 Message Date
Katarzyna Miernikiewicz
b806fa83a8 style changes 2020-09-18 12:31:02 +00:00
Katarzyna Miernikiewicz
bcdda46857 minor changes 2020-09-18 12:27:31 +00:00
Katarzyna Miernikiewicz
961441672f style improvement 2020-09-18 10:16:35 +00:00
Katarzyna Miernikiewicz
73522f4844
Merge branch 'master' into jsonnet 2020-09-18 12:09:34 +02:00
Katarzyna Miernikiewicz
3b1def654d updated README 2020-09-18 09:58:52 +00:00
Wiktor Garbacz
9ffa5afba6 Remove unnecessary TLV struct
Drive-by: Zero-copy RecvString
PiperOrigin-RevId: 332412385
Change-Id: I169ffa78f016ec2d55c1a3677ea97beed095123c
2020-09-18 02:23:22 -07:00
Christian Blichmann
45c208b19a Update .clang-format to prefer & and * to be close to the type
PiperOrigin-RevId: 332412318
Change-Id: I4cd6d295ef68292c9412722829729142578c4c9f
2020-09-18 02:22:43 -07:00
Katarzyna Miernikiewicz
9fec584455 more tests ready 2020-09-17 15:59:03 +00:00
Copybara-Service
c663427cf9 Merge pull request #49 from bohdanty:master
PiperOrigin-RevId: 332240434
Change-Id: I9e71cf3d3ab50e3a379e3c651b931ca95692666f
2020-09-17 08:36:07 -07:00
Copybara-Service
d4274251a6 Merge pull request #50 from Manwi23:master
PiperOrigin-RevId: 332214390
Change-Id: If9e87dc52cf1e5e2266135c38b6c4429f7f78e5f
2020-09-17 05:28:19 -07:00
Christian Blichmann
13c28403a6 Implement system include detection for CMake build
The Bazel build already queries the current toolchain for its system include
directories. This change brings feature parity and is necessary for systems
with unusual include locations.

PiperOrigin-RevId: 332195812
Change-Id: Ie81d614d21e90b4bd9edf2084ef80bf0d85dd750
2020-09-17 03:08:11 -07:00
Andrei Medar
7e24ee2232 Added sandbox policy for extract function 2020-09-16 15:57:31 +00:00
Katarzyna Miernikiewicz
6dcac6de05 dummy test works 2020-09-16 14:43:42 +00:00
Maciej Szawłowski
a68b851c2c Added TypeKind.CHAR_U handling in the generator.
PiperOrigin-RevId: 331988119
Change-Id: I8301c5041c32da185202ed34292e6a2988ecff46
2020-09-16 06:00:55 -07:00
Katarzyna Miernikiewicz
5eed4ec606
Merge branch 'master' into master 2020-09-15 18:26:58 +02:00
Andrei Medar
9ec90b741c added extraction example to minitar 2020-09-15 16:16:09 +00:00
Katarzyna Miernikiewicz
4c20174f83 base for tests ready 2020-09-15 16:16:05 +00:00
Copybara-Service
da41899797 Merge pull request #51 from doinachiroiu:master
PiperOrigin-RevId: 331767052
Change-Id: I286e746fec6248c88df563be00da9451ddd63eb7
2020-09-15 07:46:03 -07:00
Katarzyna Miernikiewicz
c9dcda68e9 preparing to add gtest 2020-09-15 13:22:47 +00:00
Katarzyna Miernikiewicz
8bcd99f86e restyling 2020-09-15 10:16:00 +00:00
Katarzyna Miernikiewicz
fa4b39578a transaction fully working 2020-09-15 09:40:43 +00:00
Katarzyna Miernikiewicz
63147e42b3 transaction added 2020-09-14 16:24:21 +00:00
Andrei Medar
0bc5c28cb5 Applied requested changes 2020-09-14 15:23:29 +00:00
root
9789eb6768 added a part of the example code 2020-09-14 14:39:16 +00:00
Christian Blichmann
ed0086eb66 Fix dynamic binary startup on PPC and newer glibc (> 2.19)
This allows the `_llseek` syscall when it is defined.

PiperOrigin-RevId: 331498182
Change-Id: I2760b264e3a82000b38d278a9c280501a3dbc724
2020-09-14 01:18:33 -07:00
Bohdan
e8a15ea151 Moved tests to root folder, removed unused headers 2020-09-13 18:20:10 +03:00
Katarzyna Miernikiewicz
71e6237cf7 cast changes 2020-09-11 16:35:52 +00:00
Andrei Medar
c562f818c6 modified CMake so that the patching part takes place in the build directory 2020-09-11 16:09:09 +00:00
Katarzyna Miernikiewicz
490ffeb683 beginning of work on transaction 2020-09-11 16:08:04 +00:00
Andrei Medar
14a46f792c small fix 2020-09-11 15:11:00 +00:00
Christian Blichmann
21f7373e76 Initial changes to support AArch64
This is a work in progress:
- Syscall tables need work
- Only tested on real hardware using one of our test hosts

As a drive-by, this change also enables the open source version to function on
POWER.

Another side-effect of this change is that the default policies no longer
check for different host architectures at runtime. On x86_64, we do not need
to check for PPC or AArch64 specifice and vice versa.

PiperOrigin-RevId: 331137472
Change-Id: Ic6d6be5cbe61d83dbe13d5a0be036871754b2eb8
2020-09-11 06:34:27 -07:00
Andrei Medar
bae2411996 Added patches section to README 2020-09-11 10:31:43 +00:00
Andrei Medar
92983f2bd7 added patches in order to use the original lodepng repository 2020-09-11 10:29:01 +00:00
Christian Blichmann
c19949eb7b Use inclusive language
PiperOrigin-RevId: 331116936
Change-Id: I7084b24440a1c78c0d70030da900330f0b8d954f
2020-09-11 03:14:12 -07:00
root
48935a2e5d small changes to cmake (wip trying to add head patch for libarchive) 2020-09-10 16:52:59 +00:00
Katarzyna Miernikiewicz
b6a1c273fc README update 2020-09-10 15:52:38 +00:00
Katarzyna Miernikiewicz
6e1483243c jsonnet formatter added 2020-09-10 15:42:00 +00:00
Andrei Medar
56481b1c9f added a sandbox file and extracted the functions that will be sandboxed 2020-09-10 15:22:22 +00:00
Katarzyna Miernikiewicz
8b7fd81b21 YAML stream example added 2020-09-10 13:27:22 +00:00
Christian Blichmann
6a1e4b881c Introduce config header to centralize CPU architecture checks
This allows us to remove some uses of macros.

Related changes:
- Make it clear that we support hosting sandboxed binaries from 64-bit
  processes only. CPU architectures are x86-64 and POWER64 (little endian).
- Introduced CPU architecture macros, abstracting away compiler specifics

PiperOrigin-RevId: 330918134
Change-Id: Ife7ad5f14723eec9f68055127b0583b8aecd38dd
2020-09-10 05:48:00 -07:00
Katarzyna Miernikiewicz
ac3149102f example reorganization 2020-09-10 11:06:31 +00:00
Katarzyna Miernikiewicz
7650657662 multiple files example added 2020-09-10 10:19:06 +00:00
Andrei Medar
de27b90ae4 added helper library 2020-09-09 12:02:40 +00:00
Katarzyna Miernikiewicz
1b307adf5d added README 2020-09-09 09:56:42 +00:00
Kevin Hamacher
1f8e88586b Log details when executor fails to open the sandboxee binary
PiperOrigin-RevId: 330680717
Change-Id: I4ec855861196177321783dc94f2e05a28e84d512
2020-09-09 02:12:29 -07:00
Sandboxed API Team
776e34502a Internal cleanup migrating StatusOr.
PiperOrigin-RevId: 330561315
Change-Id: Ie8d8857e7fa5819be3358b26425790ede97c99f8
2020-09-08 12:24:35 -07:00
Katarzyna Miernikiewicz
f7eff228f0 minor fix 2020-09-08 15:28:21 +00:00
Katarzyna Miernikiewicz
dfc9d11f35 enabling usage of files in the same directory as input file 2020-09-08 15:03:22 +00:00
root
ecbd169616 modified usage of sapi:✌️:Array 2020-09-08 14:21:57 +00:00
Andrei Medar
b5bde83c14 corrected error inside CMakeLists 2020-09-08 13:51:22 +00:00