mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Use inclusive language
PiperOrigin-RevId: 331116936 Change-Id: I7084b24440a1c78c0d70030da900330f0b8d954f
This commit is contained in:
parent
6a1e4b881c
commit
c19949eb7b
|
@ -347,7 +347,7 @@ bool Comms::RecvFD(int* fd) {
|
||||||
|
|
||||||
const auto op = [&msg](int fd) -> ssize_t {
|
const auto op = [&msg](int fd) -> ssize_t {
|
||||||
PotentiallyBlockingRegion region;
|
PotentiallyBlockingRegion region;
|
||||||
// Use syscall, otherwise we would need to whitelist socketcall() on PPC.
|
// Use syscall, otherwise we would need to allow socketcall() on PPC.
|
||||||
return TEMP_FAILURE_RETRY(
|
return TEMP_FAILURE_RETRY(
|
||||||
util::Syscall(__NR_recvmsg, fd, reinterpret_cast<uintptr_t>(&msg), 0));
|
util::Syscall(__NR_recvmsg, fd, reinterpret_cast<uintptr_t>(&msg), 0));
|
||||||
};
|
};
|
||||||
|
|
|
@ -501,7 +501,7 @@ std::string MountFlagsToString(uint64_t flags) {
|
||||||
SAPI_MAP(MS_POSIXACL),
|
SAPI_MAP(MS_POSIXACL),
|
||||||
SAPI_MAP(MS_UNBINDABLE),
|
SAPI_MAP(MS_UNBINDABLE),
|
||||||
SAPI_MAP(MS_PRIVATE),
|
SAPI_MAP(MS_PRIVATE),
|
||||||
SAPI_MAP(MS_SLAVE),
|
SAPI_MAP(MS_SLAVE), // Inclusive language: system constant
|
||||||
SAPI_MAP(MS_SHARED),
|
SAPI_MAP(MS_SHARED),
|
||||||
SAPI_MAP(MS_RELATIME),
|
SAPI_MAP(MS_RELATIME),
|
||||||
SAPI_MAP(MS_KERNMOUNT),
|
SAPI_MAP(MS_KERNMOUNT),
|
||||||
|
|
|
@ -105,10 +105,10 @@ message SyscallDescription {
|
||||||
}
|
}
|
||||||
|
|
||||||
message FsDescription {
|
message FsDescription {
|
||||||
repeated string file_whitelist = 1;
|
repeated string file_allowlist = 1;
|
||||||
repeated string symlink_whitelist = 2;
|
repeated string symlink_allowlist = 2;
|
||||||
repeated string file_greylist = 3;
|
repeated string file_greylist = 3;
|
||||||
repeated string file_blacklist = 4;
|
repeated string file_denylist = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PolicyBuilderDescription {
|
message PolicyBuilderDescription {
|
||||||
|
@ -125,7 +125,7 @@ message NamespaceDescription {
|
||||||
message PolicyDescription {
|
message PolicyDescription {
|
||||||
bytes user_bpf_policy = 1;
|
bytes user_bpf_policy = 1;
|
||||||
reserved 2 to 5;
|
reserved 2 to 5;
|
||||||
// This requires additional fields. (e.g. whitelisted syscall #s)
|
// This requires additional fields. (e.g. allowed syscall numbers)
|
||||||
PolicyBuilderDescription policy_builder_description = 6;
|
PolicyBuilderDescription policy_builder_description = 6;
|
||||||
|
|
||||||
// namespace
|
// namespace
|
||||||
|
|
Loading…
Reference in New Issue
Block a user