summaryrefslogtreecommitdiffhomepage
path: root/test/root/crictl_test.go
diff options
context:
space:
mode:
authorIan Lewis <ianlewis@google.com>2019-11-26 18:19:47 -0800
committergVisor bot <gvisor-bot@google.com>2019-11-26 18:21:09 -0800
commit20279c305ece6a458006999c8dafc5672ca92803 (patch)
tree086e072c05f1bc0f6f1b972774fad452b7bb6c35 /test/root/crictl_test.go
parent4a620c436dabbb0d5036e137bfdd44b945e3cff0 (diff)
Allow open(O_TRUNC) and (f)truncate for proc files.
This allows writable proc and devices files to be opened with O_CREAT|O_TRUNC. This is encountered most frequently when interacting with proc or devices files via the command line. e.g. $ echo 8192 1048576 4194304 > /proc/sys/net/ipv4/tcp_rmem Also adds a test to test the behavior of open(O_TRUNC), truncate, and ftruncate on named pipes. Fixes #1116 PiperOrigin-RevId: 282677425
Diffstat (limited to 'test/root/crictl_test.go')
0 files changed, 0 insertions, 0 deletions