diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-12-16 21:24:24 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-16 21:24:24 +0000 |
commit | c46ddf9c69d71989996115194fbb7b70155396c9 (patch) | |
tree | c33473ec9f50fac99718c9cb481c2c1db7595941 /pkg/abi/linux | |
parent | f1c7bb8642584b8c808b311dfd094479a0424466 (diff) | |
parent | e6f4124afd951c3b089f9c75c499c14f4d90a590 (diff) |
Merge release-20191210.0-31-ge6f4124 (automated)
Diffstat (limited to 'pkg/abi/linux')
-rwxr-xr-x | pkg/abi/linux/xattr.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkg/abi/linux/xattr.go b/pkg/abi/linux/xattr.go new file mode 100755 index 000000000..a3b6406fa --- /dev/null +++ b/pkg/abi/linux/xattr.go @@ -0,0 +1,27 @@ +// Copyright 2019 The gVisor Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package linux + +// Constants for extended attributes. +const ( + XATTR_NAME_MAX = 255 + XATTR_SIZE_MAX = 65536 + + XATTR_CREATE = 1 + XATTR_REPLACE = 2 + + XATTR_USER_PREFIX = "user." + XATTR_USER_PREFIX_LEN = len(XATTR_USER_PREFIX) +) |