/
githubmirror
/
kubernetes
Обзор
Документация
Войти
/
githubmirror
/
kubernetes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pkg/volume/util/atomic_writer_linux.go
27 строк
860 B
Gavin Lam
bug: Fix link file ownership of projected serviceAccountToken
01 мар 2026, 23:22
01 мар 2026, 23:22
e5920df
Код
Авторство
О чём код?
//go:build linux /* Copyright 2024 The Kubernetes 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 util import "os" // lchown changes the numeric uid and gid of the named file. // If the file is a symbolic link, it changes the uid and gid of the link itself. func (w *AtomicWriter) lchown(name string, uid, gid int) error { return os.Lchown(name, uid, gid) }