mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-06 09:07:16 -04:00
unix: add bindings for keyutils syscalls
This CL adds support for the ADD_KEY, REQUESET_KEY, and KEYCTL syscalls. These syscalls allow access to the kernel keyring facilities. In C code, these syscalls are wrapped by the libkeyutils package. See: http://man7.org/linux/man-pages/man7/keyutils.7.html The ADD_KEY and REQUEST_KEY calls are fairly straightforward, but the KEYCTL syscall is a multiplexor for a number of key management functions. See: http://man7.org/linux/man-pages/man3/keyctl.3.html The Go bindings for the KEYCTL functions attempt to replicate what libkeyutils does. This is done via generated helper functions. Change-Id: If8c97d4ef5bce14c43dee3e6772ded42dc3c595a Reviewed-on: https://go-review.googlesource.com/41415 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
e62c3de784
commit
a2e06a18b0
@@ -45,6 +45,7 @@ package unix
|
|||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <linux/filter.h>
|
#include <linux/filter.h>
|
||||||
|
#include <linux/keyctl.h>
|
||||||
#include <linux/netlink.h>
|
#include <linux/netlink.h>
|
||||||
#include <linux/rtnetlink.h>
|
#include <linux/rtnetlink.h>
|
||||||
#include <linux/icmpv6.h>
|
#include <linux/icmpv6.h>
|
||||||
@@ -261,6 +262,10 @@ type FscryptPolicy C.struct_fscrypt_policy
|
|||||||
|
|
||||||
type FscryptKey C.struct_fscrypt_key
|
type FscryptKey C.struct_fscrypt_key
|
||||||
|
|
||||||
|
// Structure for Keyctl
|
||||||
|
|
||||||
|
type KeyctlDHParams C.struct_keyctl_dh_params
|
||||||
|
|
||||||
// Advice to Fadvise
|
// Advice to Fadvise
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ struct ltchars {
|
|||||||
#include <linux/falloc.h>
|
#include <linux/falloc.h>
|
||||||
#include <linux/filter.h>
|
#include <linux/filter.h>
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
|
#include <linux/keyctl.h>
|
||||||
#include <linux/netlink.h>
|
#include <linux/netlink.h>
|
||||||
#include <linux/random.h>
|
#include <linux/random.h>
|
||||||
#include <linux/reboot.h>
|
#include <linux/reboot.h>
|
||||||
@@ -398,6 +399,8 @@ ccflags="$@"
|
|||||||
$2 ~ /^ALG_/ ||
|
$2 ~ /^ALG_/ ||
|
||||||
$2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE|IOC_(GET|SET)_ENCRYPTION)/ ||
|
$2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE|IOC_(GET|SET)_ENCRYPTION)/ ||
|
||||||
$2 ~ /^GRND_/ ||
|
$2 ~ /^GRND_/ ||
|
||||||
|
$2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
|
||||||
|
$2 ~ /^KEYCTL_/ ||
|
||||||
$2 ~ /^SPLICE_/ ||
|
$2 ~ /^SPLICE_/ ||
|
||||||
$2 ~ /^(VM|VMADDR)_/ ||
|
$2 ~ /^(VM|VMADDR)_/ ||
|
||||||
$2 !~ "WMESGLEN" &&
|
$2 !~ "WMESGLEN" &&
|
||||||
|
|||||||
+109
-3
@@ -755,6 +755,113 @@ func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {
|
|||||||
return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html)
|
||||||
|
|
||||||
|
// KeyctlInt calls keyctl commands in which each argument is an int.
|
||||||
|
// These commands are KEYCTL_REVOKE, KEYCTL_CHOWN, KEYCTL_CLEAR, KEYCTL_LINK,
|
||||||
|
// KEYCTL_UNLINK, KEYCTL_NEGATE, KEYCTL_SET_REQKEY_KEYRING, KEYCTL_SET_TIMEOUT,
|
||||||
|
// KEYCTL_ASSUME_AUTHORITY, KEYCTL_SESSION_TO_PARENT, KEYCTL_REJECT,
|
||||||
|
// KEYCTL_INVALIDATE, and KEYCTL_GET_PERSISTENT.
|
||||||
|
//sys KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlBuffer calls keyctl commands in which the third and fourth
|
||||||
|
// arguments are a buffer and its length, respectively.
|
||||||
|
// These commands are KEYCTL_UPDATE, KEYCTL_READ, and KEYCTL_INSTANTIATE.
|
||||||
|
//sys KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlString calls keyctl commands which return a string.
|
||||||
|
// These commands are KEYCTL_DESCRIBE and KEYCTL_GET_SECURITY.
|
||||||
|
func KeyctlString(cmd int, id int) (string, error) {
|
||||||
|
// We must loop as the string data may change in between the syscalls.
|
||||||
|
// We could allocate a large buffer here to reduce the chance that the
|
||||||
|
// syscall needs to be called twice; however, this is unnecessary as
|
||||||
|
// the performance loss is negligible.
|
||||||
|
var buffer []byte
|
||||||
|
for {
|
||||||
|
// Try to fill the buffer with data
|
||||||
|
length, err := KeyctlBuffer(cmd, id, buffer, 0)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if the data was written
|
||||||
|
if length <= len(buffer) {
|
||||||
|
// Exclude the null terminator
|
||||||
|
return string(buffer[:length-1]), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make a bigger buffer if needed
|
||||||
|
buffer = make([]byte, length)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keyctl commands with special signatures.
|
||||||
|
|
||||||
|
// KeyctlGetKeyringID implements the KEYCTL_GET_KEYRING_ID command.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_get_keyring_ID.3.html
|
||||||
|
func KeyctlGetKeyringID(id int, create bool) (ringid int, err error) {
|
||||||
|
createInt := 0
|
||||||
|
if create {
|
||||||
|
createInt = 1
|
||||||
|
}
|
||||||
|
return KeyctlInt(KEYCTL_GET_KEYRING_ID, id, createInt, 0, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
// KeyctlSetperm implements the KEYCTL_SETPERM command. The perm value is the
|
||||||
|
// key handle permission mask as described in the "keyctl setperm" section of
|
||||||
|
// http://man7.org/linux/man-pages/man1/keyctl.1.html.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_setperm.3.html
|
||||||
|
func KeyctlSetperm(id int, perm uint32) error {
|
||||||
|
_, err := KeyctlInt(KEYCTL_SETPERM, id, int(perm), 0, 0)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys keyctlJoin(cmd int, arg2 string) (ret int, err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlJoinSessionKeyring implements the KEYCTL_JOIN_SESSION_KEYRING command.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_join_session_keyring.3.html
|
||||||
|
func KeyctlJoinSessionKeyring(name string) (ringid int, err error) {
|
||||||
|
return keyctlJoin(KEYCTL_JOIN_SESSION_KEYRING, name)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlSearch implements the KEYCTL_SEARCH command.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_search.3.html
|
||||||
|
func KeyctlSearch(ringid int, keyType, description string, destRingid int) (id int, err error) {
|
||||||
|
return keyctlSearch(KEYCTL_SEARCH, ringid, keyType, description, destRingid)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlInstantiateIOV implements the KEYCTL_INSTANTIATE_IOV command. This
|
||||||
|
// command is similar to KEYCTL_INSTANTIATE, except that the payload is a slice
|
||||||
|
// of Iovec (each of which represents a buffer) instead of a single buffer.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_instantiate_iov.3.html
|
||||||
|
func KeyctlInstantiateIOV(id int, payload []Iovec, ringid int) error {
|
||||||
|
return keyctlIOV(KEYCTL_INSTANTIATE_IOV, id, payload, ringid)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlDHCompute implements the KEYCTL_DH_COMPUTE command. This command
|
||||||
|
// computes a Diffie-Hellman shared secret based on the provide params. The
|
||||||
|
// secret is written to the provided buffer and the returned size is the number
|
||||||
|
// of bytes written (returning an error if there is insufficient space in the
|
||||||
|
// buffer). If a nil buffer is passed in, this function returns the minimum
|
||||||
|
// buffer length needed to store the appropriate data. Note that this differs
|
||||||
|
// from KEYCTL_READ's behavior which always returns the requested payload size.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_dh_compute.3.html
|
||||||
|
func KeyctlDHCompute(params *KeyctlDHParams, buffer []byte) (size int, err error) {
|
||||||
|
return keyctlDH(KEYCTL_DH_COMPUTE, params, buffer)
|
||||||
|
}
|
||||||
|
|
||||||
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
||||||
var msg Msghdr
|
var msg Msghdr
|
||||||
var rsa RawSockaddrAny
|
var rsa RawSockaddrAny
|
||||||
@@ -1033,6 +1140,7 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
|
|||||||
* Direct access
|
* Direct access
|
||||||
*/
|
*/
|
||||||
//sys Acct(path string) (err error)
|
//sys Acct(path string) (err error)
|
||||||
|
//sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)
|
||||||
//sys Adjtimex(buf *Timex) (state int, err error)
|
//sys Adjtimex(buf *Timex) (state int, err error)
|
||||||
//sys Chdir(path string) (err error)
|
//sys Chdir(path string) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
@@ -1086,6 +1194,7 @@ func Getpgrp() (pid int) {
|
|||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Removexattr(path string, attr string) (err error)
|
//sys Removexattr(path string, attr string) (err error)
|
||||||
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
|
//sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error)
|
||||||
//sys Setdomainname(p []byte) (err error)
|
//sys Setdomainname(p []byte) (err error)
|
||||||
//sys Sethostname(p []byte) (err error)
|
//sys Sethostname(p []byte) (err error)
|
||||||
//sysnb Setpgid(pid int, pgid int) (err error)
|
//sysnb Setpgid(pid int, pgid int) (err error)
|
||||||
@@ -1169,7 +1278,6 @@ func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
|||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
*/
|
*/
|
||||||
// AddKey
|
|
||||||
// AfsSyscall
|
// AfsSyscall
|
||||||
// Alarm
|
// Alarm
|
||||||
// ArchPrctl
|
// ArchPrctl
|
||||||
@@ -1208,7 +1316,6 @@ func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
|||||||
// IoprioGet
|
// IoprioGet
|
||||||
// IoprioSet
|
// IoprioSet
|
||||||
// KexecLoad
|
// KexecLoad
|
||||||
// Keyctl
|
|
||||||
// Lgetxattr
|
// Lgetxattr
|
||||||
// Llistxattr
|
// Llistxattr
|
||||||
// LookupDcookie
|
// LookupDcookie
|
||||||
@@ -1244,7 +1351,6 @@ func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
|||||||
// Readahead
|
// Readahead
|
||||||
// Readv
|
// Readv
|
||||||
// RemapFilePages
|
// RemapFilePages
|
||||||
// RequestKey
|
|
||||||
// RestartSyscall
|
// RestartSyscall
|
||||||
// RtSigaction
|
// RtSigaction
|
||||||
// RtSigpending
|
// RtSigpending
|
||||||
|
|||||||
@@ -750,6 +750,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
|
|||||||
@@ -750,6 +750,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
|
|||||||
@@ -750,6 +750,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
|
|||||||
@@ -751,6 +751,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
|
|||||||
@@ -750,6 +750,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
|
|||||||
@@ -750,6 +750,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
|
|||||||
@@ -750,6 +750,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
|
|||||||
@@ -750,6 +750,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
|
|||||||
@@ -750,6 +750,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
|
|||||||
@@ -750,6 +750,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
|
|||||||
@@ -750,6 +750,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
|
|||||||
@@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg2)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg3)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(arg4)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Adjtimex(buf *Timex) (state int, err error) {
|
func Adjtimex(buf *Timex) (state int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||||
state = int(r0)
|
state = int(r0)
|
||||||
@@ -851,6 +976,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 *byte
|
||||||
|
_p2, err = BytePtrFromString(callback)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setdomainname(p []byte) (err error) {
|
func Setdomainname(p []byte) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
|
|||||||
@@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg2)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg3)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(arg4)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Adjtimex(buf *Timex) (state int, err error) {
|
func Adjtimex(buf *Timex) (state int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||||
state = int(r0)
|
state = int(r0)
|
||||||
@@ -851,6 +976,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 *byte
|
||||||
|
_p2, err = BytePtrFromString(callback)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setdomainname(p []byte) (err error) {
|
func Setdomainname(p []byte) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
|
|||||||
@@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg2)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg3)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(arg4)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Adjtimex(buf *Timex) (state int, err error) {
|
func Adjtimex(buf *Timex) (state int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||||
state = int(r0)
|
state = int(r0)
|
||||||
@@ -851,6 +976,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 *byte
|
||||||
|
_p2, err = BytePtrFromString(callback)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setdomainname(p []byte) (err error) {
|
func Setdomainname(p []byte) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
|
|||||||
@@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg2)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg3)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(arg4)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Adjtimex(buf *Timex) (state int, err error) {
|
func Adjtimex(buf *Timex) (state int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||||
state = int(r0)
|
state = int(r0)
|
||||||
@@ -851,6 +976,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 *byte
|
||||||
|
_p2, err = BytePtrFromString(callback)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setdomainname(p []byte) (err error) {
|
func Setdomainname(p []byte) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
|
|||||||
@@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg2)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg3)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(arg4)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Adjtimex(buf *Timex) (state int, err error) {
|
func Adjtimex(buf *Timex) (state int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||||
state = int(r0)
|
state = int(r0)
|
||||||
@@ -851,6 +976,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 *byte
|
||||||
|
_p2, err = BytePtrFromString(callback)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setdomainname(p []byte) (err error) {
|
func Setdomainname(p []byte) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
|
|||||||
@@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg2)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg3)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(arg4)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Adjtimex(buf *Timex) (state int, err error) {
|
func Adjtimex(buf *Timex) (state int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||||
state = int(r0)
|
state = int(r0)
|
||||||
@@ -851,6 +976,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 *byte
|
||||||
|
_p2, err = BytePtrFromString(callback)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setdomainname(p []byte) (err error) {
|
func Setdomainname(p []byte) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
|
|||||||
@@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg2)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg3)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(arg4)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Adjtimex(buf *Timex) (state int, err error) {
|
func Adjtimex(buf *Timex) (state int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||||
state = int(r0)
|
state = int(r0)
|
||||||
@@ -851,6 +976,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 *byte
|
||||||
|
_p2, err = BytePtrFromString(callback)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setdomainname(p []byte) (err error) {
|
func Setdomainname(p []byte) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
|
|||||||
@@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg2)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg3)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(arg4)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Adjtimex(buf *Timex) (state int, err error) {
|
func Adjtimex(buf *Timex) (state int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||||
state = int(r0)
|
state = int(r0)
|
||||||
@@ -851,6 +976,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 *byte
|
||||||
|
_p2, err = BytePtrFromString(callback)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setdomainname(p []byte) (err error) {
|
func Setdomainname(p []byte) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
|
|||||||
@@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg2)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg3)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(arg4)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Adjtimex(buf *Timex) (state int, err error) {
|
func Adjtimex(buf *Timex) (state int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||||
state = int(r0)
|
state = int(r0)
|
||||||
@@ -851,6 +976,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 *byte
|
||||||
|
_p2, err = BytePtrFromString(callback)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setdomainname(p []byte) (err error) {
|
func Setdomainname(p []byte) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
|
|||||||
@@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg2)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg3)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(arg4)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Adjtimex(buf *Timex) (state int, err error) {
|
func Adjtimex(buf *Timex) (state int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||||
state = int(r0)
|
state = int(r0)
|
||||||
@@ -851,6 +976,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 *byte
|
||||||
|
_p2, err = BytePtrFromString(callback)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setdomainname(p []byte) (err error) {
|
func Setdomainname(p []byte) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
|
|||||||
@@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg2)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(arg3)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(arg4)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(payload) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&payload[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Adjtimex(buf *Timex) (state int, err error) {
|
func Adjtimex(buf *Timex) (state int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||||
state = int(r0)
|
state = int(r0)
|
||||||
@@ -851,6 +976,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(keyType)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(description)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 *byte
|
||||||
|
_p2, err = BytePtrFromString(callback)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||||
|
id = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setdomainname(p []byte) (err error) {
|
func Setdomainname(p []byte) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
|
|||||||
@@ -166,6 +166,12 @@ type FscryptKey struct {
|
|||||||
Size uint32
|
Size uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KeyctlDHParams struct {
|
||||||
|
Private int32
|
||||||
|
Prime int32
|
||||||
|
Base int32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_NORMAL = 0x0
|
FADV_NORMAL = 0x0
|
||||||
FADV_RANDOM = 0x1
|
FADV_RANDOM = 0x1
|
||||||
|
|||||||
@@ -168,6 +168,12 @@ type FscryptKey struct {
|
|||||||
Size uint32
|
Size uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KeyctlDHParams struct {
|
||||||
|
Private int32
|
||||||
|
Prime int32
|
||||||
|
Base int32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_NORMAL = 0x0
|
FADV_NORMAL = 0x0
|
||||||
FADV_RANDOM = 0x1
|
FADV_RANDOM = 0x1
|
||||||
|
|||||||
@@ -170,6 +170,12 @@ type FscryptKey struct {
|
|||||||
Size uint32
|
Size uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KeyctlDHParams struct {
|
||||||
|
Private int32
|
||||||
|
Prime int32
|
||||||
|
Base int32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_NORMAL = 0x0
|
FADV_NORMAL = 0x0
|
||||||
FADV_RANDOM = 0x1
|
FADV_RANDOM = 0x1
|
||||||
|
|||||||
@@ -169,6 +169,12 @@ type FscryptKey struct {
|
|||||||
Size uint32
|
Size uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KeyctlDHParams struct {
|
||||||
|
Private int32
|
||||||
|
Prime int32
|
||||||
|
Base int32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_NORMAL = 0x0
|
FADV_NORMAL = 0x0
|
||||||
FADV_RANDOM = 0x1
|
FADV_RANDOM = 0x1
|
||||||
|
|||||||
@@ -169,6 +169,12 @@ type FscryptKey struct {
|
|||||||
Size uint32
|
Size uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KeyctlDHParams struct {
|
||||||
|
Private int32
|
||||||
|
Prime int32
|
||||||
|
Base int32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_NORMAL = 0x0
|
FADV_NORMAL = 0x0
|
||||||
FADV_RANDOM = 0x1
|
FADV_RANDOM = 0x1
|
||||||
|
|||||||
@@ -169,6 +169,12 @@ type FscryptKey struct {
|
|||||||
Size uint32
|
Size uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KeyctlDHParams struct {
|
||||||
|
Private int32
|
||||||
|
Prime int32
|
||||||
|
Base int32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_NORMAL = 0x0
|
FADV_NORMAL = 0x0
|
||||||
FADV_RANDOM = 0x1
|
FADV_RANDOM = 0x1
|
||||||
|
|||||||
@@ -169,6 +169,12 @@ type FscryptKey struct {
|
|||||||
Size uint32
|
Size uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KeyctlDHParams struct {
|
||||||
|
Private int32
|
||||||
|
Prime int32
|
||||||
|
Base int32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_NORMAL = 0x0
|
FADV_NORMAL = 0x0
|
||||||
FADV_RANDOM = 0x1
|
FADV_RANDOM = 0x1
|
||||||
|
|||||||
@@ -169,6 +169,12 @@ type FscryptKey struct {
|
|||||||
Size uint32
|
Size uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KeyctlDHParams struct {
|
||||||
|
Private int32
|
||||||
|
Prime int32
|
||||||
|
Base int32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_NORMAL = 0x0
|
FADV_NORMAL = 0x0
|
||||||
FADV_RANDOM = 0x1
|
FADV_RANDOM = 0x1
|
||||||
|
|||||||
@@ -170,6 +170,12 @@ type FscryptKey struct {
|
|||||||
Size uint32
|
Size uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KeyctlDHParams struct {
|
||||||
|
Private int32
|
||||||
|
Prime int32
|
||||||
|
Base int32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_NORMAL = 0x0
|
FADV_NORMAL = 0x0
|
||||||
FADV_RANDOM = 0x1
|
FADV_RANDOM = 0x1
|
||||||
|
|||||||
@@ -170,6 +170,12 @@ type FscryptKey struct {
|
|||||||
Size uint32
|
Size uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KeyctlDHParams struct {
|
||||||
|
Private int32
|
||||||
|
Prime int32
|
||||||
|
Base int32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_NORMAL = 0x0
|
FADV_NORMAL = 0x0
|
||||||
FADV_RANDOM = 0x1
|
FADV_RANDOM = 0x1
|
||||||
|
|||||||
@@ -169,6 +169,12 @@ type FscryptKey struct {
|
|||||||
Size uint32
|
Size uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KeyctlDHParams struct {
|
||||||
|
Private int32
|
||||||
|
Prime int32
|
||||||
|
Base int32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_NORMAL = 0x0
|
FADV_NORMAL = 0x0
|
||||||
FADV_RANDOM = 0x1
|
FADV_RANDOM = 0x1
|
||||||
|
|||||||
Reference in New Issue
Block a user