mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Internal change
PiperOrigin-RevId: 439541914 Change-Id: Ib0a0941436da61b499d7359e0ea06d244a111970
This commit is contained in:
parent
fc85310da2
commit
07ca5064d1
|
@ -14,6 +14,8 @@
|
|||
|
||||
# Description: Example using dynamic length structures for Sandboxed API
|
||||
|
||||
package(default_visibility = ["//sandboxed_api:__subpackages__"])
|
||||
|
||||
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
|
||||
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
|
||||
load("//sandboxed_api/bazel:sapi.bzl", "sapi_library")
|
||||
|
@ -32,7 +34,6 @@ cc_library(
|
|||
srcs = ["stringop.cc"],
|
||||
copts = sapi_platform_copts(),
|
||||
linkstatic = True,
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":stringop_params_cc_proto",
|
||||
"//sandboxed_api:lenval_core",
|
||||
|
@ -41,25 +42,25 @@ cc_library(
|
|||
alwayslink = True,
|
||||
)
|
||||
|
||||
STRINGOP_FUNCTIONS = [
|
||||
"duplicate_string",
|
||||
"reverse_string",
|
||||
"pb_duplicate_string",
|
||||
"pb_reverse_string",
|
||||
"nop",
|
||||
"violate",
|
||||
"get_raw_c_string",
|
||||
]
|
||||
|
||||
sapi_library(
|
||||
name = "stringop-sapi",
|
||||
srcs = [],
|
||||
hdrs = ["sandbox.h"],
|
||||
functions = [
|
||||
"duplicate_string",
|
||||
"reverse_string",
|
||||
"pb_duplicate_string",
|
||||
"pb_reverse_string",
|
||||
"nop",
|
||||
"violate",
|
||||
"get_raw_c_string",
|
||||
],
|
||||
functions = STRINGOP_FUNCTIONS,
|
||||
generator_version = 1,
|
||||
input_files = ["stringop.cc"],
|
||||
lib = ":stringop",
|
||||
lib_name = "Stringop",
|
||||
namespace = "",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [":stringop_params_cc_proto"],
|
||||
)
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include "absl/status/status.h"
|
||||
#include "absl/time/time.h"
|
||||
#include "sandboxed_api/examples/stringop/sandbox.h"
|
||||
#include "sandboxed_api/examples/stringop/stringop-sapi.sapi.h"
|
||||
#include "sandboxed_api/examples/stringop/stringop_params.pb.h"
|
||||
#include "sandboxed_api/transaction.h"
|
||||
#include "sandboxed_api/util/status_macros.h"
|
||||
|
|
Loading…
Reference in New Issue
Block a user