Documentation ¶
Overview ¶
Package rootlesscontainers is a generated protocol buffer package.
The rootlesscontainers package is maintained at https://rootlesscontaine.rs/ . If you want to extend the resource definition, please open a PR.
It is generated from these files:
rootlesscontainers.proto
It has these top-level messages:
Resource
Index ¶
Constants ¶
const Keyname = "user.rootlesscontainers"
Keyname is the official xattr key used to store rootlesscontainers.proto blobs, and is the only key we will treat in this special way.
Variables ¶
var NoopID uint32 = 0xFFFFFFFF
NoopID is the uint32 that represents the "noop" id for uid/gid values. It is equal to uint32(-1) but since we cannot write that in Go we have to explicitly write the wrapped value.
Functions ¶
Types ¶
type Resource ¶
type Resource struct { // Zero-value MUST be parsed as a literally zero-value, not "unset". // To keep both uid and gid unchaged, the entire xattr value SHOULD be removed. // To keep either one of uid or gid unchaged, -1 value SHOULD be set. // (Because some protobuf bindings cannot distinguish "unset" from zero-value.) Uid uint32 `protobuf:"varint,1,opt,name=uid" json:"uid,omitempty"` Gid uint32 `protobuf:"varint,2,opt,name=gid" json:"gid,omitempty"` }
Resource defines the schema for "user.rootlesscontainers" xattr values. The resource can be used as a persistent storage for emulated `chown(2)` syscall. Syscall emulators SHOULD try to hide this xattr from the emulated environment.
func (*Resource) Descriptor ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()