diff options
author | Yi Kong <yikong@google.com> | 2021-05-27 01:29:22 +0800 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2021-06-11 01:49:56 +0800 |
commit | 2a8f28f46094672eec33ae234ed97a8b63c483c4 (patch) | |
tree | bb2d12fcb00260a05a06fd9dde7c12b7e21c53b9 /profcollectd/libprofcollectd/simpleperf_etm_trace_provider.rs | |
parent | 791c277789eaed56b901b4f0a5a3656e5930c935 (diff) | |
download | extras-2a8f28f46094672eec33ae234ed97a8b63c483c4.tar.gz |
profcollectd: fix setting ACL bits
Unlike C++17 filesystem library, Rust OpenOptions.mode masks the given ACL
bits with environment umask. This behaviour is unintended.
Since the Rust API doesn't not provide a way to set ACL without umask
during file creation, change the permission after the fact.
Test: manual
Bug: 189325542
Change-Id: I285c36d93d69e8304177d54dc48429f924020f8a
Merged-In: I285c36d93d69e8304177d54dc48429f924020f8a
(cherry picked from commit dcff610995f7d100b5b2729959bd47e58f2a4862)
Diffstat (limited to 'profcollectd/libprofcollectd/simpleperf_etm_trace_provider.rs')
0 files changed, 0 insertions, 0 deletions