xref: /aosp_15_r20/external/sandboxed-api/contrib/libtiff/README.md (revision ec63e07ab9515d95e79c211197c445ef84cefa6a)
1# sapi-libtiff
2
3This library was sandboxed as part of Google's summer 2020 internship program
4([blog post](https://security.googleblog.com/2020/12/improving-open-source-security-during.html)).
5
6Copyright 2020 Google LLC.
7
8## Usage
9
10#### build:
11
12```bash
13mkdir -p build && cd build && cmake .. \
14  -DSAPI_ROOT=$HOME/sapi_root \
15  -DBUILD_SHARED_LIBS=OFF
16make -j 8
17```
18
19#### to run the sandboxed example:
20
21`./example/sandboxed absolute/path/to/project/dir`
22
23#### to run tests:
24
25`./test/tests`
26
27you also can use sandbox flags `sandbox2_danger_danger_permit_all` and
28`sandbox2_danger_danger_permit_all_and_log` for debugging.
29