SetLinuxPersonality sets the Linux execution personality. For more information see the personality syscall documentation. checkout getLinuxPersonalityFromStr() from libcontainer/specconv/spec_linux.go for type conversion.
(personality int)
| 154 | // SetLinuxPersonality sets the Linux execution personality. For more information see the personality syscall documentation. |
| 155 | // checkout getLinuxPersonalityFromStr() from libcontainer/specconv/spec_linux.go for type conversion. |
| 156 | func SetLinuxPersonality(personality int) error { |
| 157 | _, _, errno := unix.Syscall(unix.SYS_PERSONALITY, uintptr(personality), 0, 0) |
| 158 | if errno != 0 { |
| 159 | return &os.SyscallError{Syscall: "set_personality", Err: errno} |
| 160 | } |
| 161 | return nil |
| 162 | } |
| 163 | |
| 164 | // GetPtyPeer is a wrapper for ioctl(TIOCGPTPEER). |
| 165 | func GetPtyPeer(ptyFd uintptr, unsafePeerPath string, flags int) (*os.File, error) { |
no test coverage detected
searching dependent graphs…