gvisor/runsc
Dean Deng 07f2584979 Plumb getting/setting xattrs through InodeOperations and 9p gofer interfaces.
There was a very bare get/setxattr in the InodeOperations interface. Add
context.Context to both, size to getxattr, and flags to setxattr.
Note that extended attributes are passed around as strings in this
implementation, so size is automatically encoded into the value. Size is
added in getxattr so that implementations can return ERANGE if a value is larger
than can fit in the user-allocated buffer. This prevents us from unnecessarily
passing around an arbitrarily large xattr when the user buffer is actually too
small.

Don't use the existing xattrwalk and xattrcreate messages and define our
own, mainly for the sake of simplicity.

Extended attributes will be implemented in future commits.

PiperOrigin-RevId: 290121300
2020-01-16 12:56:33 -08:00
..
boot New sync package. 2020-01-09 22:02:24 -08:00
cgroup Set CPU number to CPU quota 2019-12-15 21:12:43 +03:00
cmd New sync package. 2020-01-09 22:02:24 -08:00
console Always set SysProcAttr.Ctty to an FD in the child's FD table. 2019-06-26 11:27:31 -07:00
container New sync package. 2020-01-09 22:02:24 -08:00
criutil Add tests for $HOME 2019-10-07 15:55:39 -07:00
debian Fix repository build scripts. 2019-11-05 15:16:04 -08:00
dockerutil Add iptables testing framework. 2019-12-12 14:42:11 -08:00
fsgofer Plumb getting/setting xattrs through InodeOperations and 9p gofer interfaces. 2020-01-16 12:56:33 -08:00
sandbox Bump SO_SNDBUF for fdbased endpoint used by runsc. 2020-01-15 11:19:06 -08:00
specutils Merge pull request #1046 from tomlanyon:crio 2019-10-22 17:05:04 -07:00
testutil New sync package. 2020-01-09 22:02:24 -08:00
BUILD Fix repository build scripts. 2019-11-05 15:16:04 -08:00
main.go Leave minimum CPU number as a constant 2019-12-17 20:41:02 +03:00
version.go Fix `runsc --version` and add a test. 2019-09-10 15:41:47 -07:00
version_test.sh Merge pull request #843 from nlacasse:version 2019-09-12 14:55:24 -07:00