mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Have lgetxattr return ENODATA.
It is a workaround to lgetxattr/lsetxattr working with security.capacity when running docker in gvisor. PiperOrigin-RevId: 563194162
This commit is contained in:
@@ -195,6 +195,8 @@ func (fstype FilesystemType) GetFilesystem(ctx context.Context, vfsObj *vfs.Virt
|
||||
allowXattrPrefix := map[string]struct{}{
|
||||
linux.XATTR_TRUSTED_PREFIX: struct{}{},
|
||||
linux.XATTR_USER_PREFIX: struct{}{},
|
||||
// The "security" namespace is allowed, but it always returns an error.
|
||||
linux.XATTR_SECURITY_PREFIX: struct{}{},
|
||||
}
|
||||
|
||||
tmpfsOpts, tmpfsOptsOk := opts.InternalData.(FilesystemOpts)
|
||||
|
||||
Reference in New Issue
Block a user