summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2021-03-31 12:54:06 -0700
committerColin Cross <ccross@android.com>2021-03-31 13:17:42 -0700
commit607c0b795ceac7d73f9b8b1c3e14e88e9c237e43 (patch)
treec13d361b29731d16fa0a521187d76bf74ee3de76 /java/java.go
parent3fbf2bea6ada498fcac0de7e190044fa3063902a (diff)
Fix multiple copies of read-only files in sbox
Sbox preserves the permissions of input files when copying them into the sandbox. A read-only file copied into the sandbox multiple times causes a permission denied error on the second write. Building in Bazel results in more read-only files, which triggers the issue on existing sbox rules with duplicate input files. Remove the destination file when copying if it exists. Bug: 184113103 Test: m USE_BAZEL=true Change-Id: I7edf92d82b766100e3cbbd90d22428269d7d0167
Diffstat (limited to 'java/java.go')
0 files changed, 0 insertions, 0 deletions