mirror of
https://github.com/opencontainers/runc.git
synced 2026-11-06 05:17:05 +00:00
libct/utils: remove deprecated cmsg wrappers
RecvFile, SendFile, and SendRawFd were moved to an internal package in runc 1.5, and the wrappers left in libcontainer/utils were deprecated, with a note that they will be removed in runc 1.6. Remove them. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
1 parent
ee6829a791
commit
167781f4fd
2 files changed
+2
-35
No files matched your search
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
accordingly. This lifts the previous 1024 CPUs/nodes limit. (#5343)
|
||||
- The deprecated `libcontainer/devices` package has been removed. Use
|
||||
`github.com/moby/sys/devices` instead. (#5142, #5223, #5495)
|
||||
- The deprecated `RecvFile`, `SendFile`, and `SendRawFd` functions have been
|
||||
removed from `libcontainer/utils`. (#5227, #5231, #5495)
|
||||
|
||||
### Fixed ###
|
||||
- The poststart hooks are now executed after starting the user-specified
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/opencontainers/runc/internal/cmsg"
|
||||
)
|
||||
|
||||
// RecvFile waits for a file descriptor to be sent over the given AF_UNIX
|
||||
// socket. The file name of the remote file descriptor will be recreated
|
||||
// locally (it is sent as non-auxiliary data in the same payload).
|
||||
//
|
||||
// Deprecated: This method is deprecated and has been moved to an internal
|
||||
// package (see [cmsg.RecvFile]). It will be removed in runc 1.6.
|
||||
func RecvFile(socket *os.File) (*os.File, error) {
|
||||
return cmsg.RecvFile(socket)
|
||||
}
|
||||
|
||||
// SendFile sends a file over the given AF_UNIX socket. file.Name() is also
|
||||
// included so that if the other end uses RecvFile, the file will have the same
|
||||
// name information.
|
||||
//
|
||||
// Deprecated: This method is deprecated and has been moved to an internal
|
||||
// package (see [cmsg.SendFile]). It will be removed in runc 1.6.
|
||||
func SendFile(socket, file *os.File) error {
|
||||
return cmsg.SendFile(socket, file)
|
||||
}
|
||||
|
||||
// SendRawFd sends a specific file descriptor over the given AF_UNIX socket.
|
||||
//
|
||||
// Deprecated: This method is deprecated and has been moved to an internal
|
||||
// package (see [cmsg.SendRawFd]). It will be removed in runc 1.6.
|
||||
func SendRawFd(socket *os.File, msg string, fd uintptr) error {
|
||||
return cmsg.SendRawFd(socket, msg, fd)
|
||||
}
|
||||
Reference in new issue
Block a user