keyutils.h | keyutils.h | |||
---|---|---|---|---|
skipping to change at line 99 | skipping to change at line 99 | |||
#define KEYCTL_READ 11 /* read a key or keyring's c ontents */ | #define KEYCTL_READ 11 /* read a key or keyring's c ontents */ | |||
#define KEYCTL_INSTANTIATE 12 /* instantiate a partially c onstructed key */ | #define KEYCTL_INSTANTIATE 12 /* instantiate a partially c onstructed key */ | |||
#define KEYCTL_NEGATE 13 /* negate a partially constr ucted key */ | #define KEYCTL_NEGATE 13 /* negate a partially constr ucted key */ | |||
#define KEYCTL_SET_REQKEY_KEYRING 14 /* set default request-key k eyring */ | #define KEYCTL_SET_REQKEY_KEYRING 14 /* set default request-key k eyring */ | |||
#define KEYCTL_SET_TIMEOUT 15 /* set timeout on a key */ | #define KEYCTL_SET_TIMEOUT 15 /* set timeout on a key */ | |||
#define KEYCTL_ASSUME_AUTHORITY 16 /* assume authority to instantiate key */ | #define KEYCTL_ASSUME_AUTHORITY 16 /* assume authority to instantiate key */ | |||
#define KEYCTL_GET_SECURITY 17 /* get key security label */ | #define KEYCTL_GET_SECURITY 17 /* get key security label */ | |||
#define KEYCTL_SESSION_TO_PARENT 18 /* set my session keyring on my parent process */ | #define KEYCTL_SESSION_TO_PARENT 18 /* set my session keyring on my parent process */ | |||
#define KEYCTL_REJECT 19 /* reject a partially constr ucted key */ | #define KEYCTL_REJECT 19 /* reject a partially constr ucted key */ | |||
#define KEYCTL_INSTANTIATE_IOV 20 /* instantiate a partially c onstructed key */ | #define KEYCTL_INSTANTIATE_IOV 20 /* instantiate a partially c onstructed key */ | |||
#define KEYCTL_INVALIDATE 21 /* invalidate a key */ | ||||
/* | /* | |||
* syscall wrappers | * syscall wrappers | |||
*/ | */ | |||
extern key_serial_t add_key(const char *type, | extern key_serial_t add_key(const char *type, | |||
const char *description, | const char *description, | |||
const void *payload, | const void *payload, | |||
size_t plen, | size_t plen, | |||
key_serial_t ringid); | key_serial_t ringid); | |||
skipping to change at line 151 | skipping to change at line 152 | |||
extern long keyctl_assume_authority(key_serial_t key); | extern long keyctl_assume_authority(key_serial_t key); | |||
extern long keyctl_get_security(key_serial_t key, char *buffer, size_t bufl en); | extern long keyctl_get_security(key_serial_t key, char *buffer, size_t bufl en); | |||
extern long keyctl_session_to_parent(void); | extern long keyctl_session_to_parent(void); | |||
extern long keyctl_reject(key_serial_t id, unsigned timeout, unsigned error , | extern long keyctl_reject(key_serial_t id, unsigned timeout, unsigned error , | |||
key_serial_t ringid); | key_serial_t ringid); | |||
struct iovec; | struct iovec; | |||
extern long keyctl_instantiate_iov(key_serial_t id, | extern long keyctl_instantiate_iov(key_serial_t id, | |||
const struct iovec *payload_iov, | const struct iovec *payload_iov, | |||
unsigned ioc, | unsigned ioc, | |||
key_serial_t ringid); | key_serial_t ringid); | |||
extern long keyctl_invalidate(key_serial_t id); | ||||
/* | /* | |||
* utilities | * utilities | |||
*/ | */ | |||
extern int keyctl_describe_alloc(key_serial_t id, char **_buffer); | extern int keyctl_describe_alloc(key_serial_t id, char **_buffer); | |||
extern int keyctl_read_alloc(key_serial_t id, void **_buffer); | extern int keyctl_read_alloc(key_serial_t id, void **_buffer); | |||
extern int keyctl_get_security_alloc(key_serial_t id, char **_buffer); | extern int keyctl_get_security_alloc(key_serial_t id, char **_buffer); | |||
typedef int (*recursive_key_scanner_t)(key_serial_t parent, key_serial_t ke y, | typedef int (*recursive_key_scanner_t)(key_serial_t parent, key_serial_t ke y, | |||
char *desc, int desc_len, void *data) ; | char *desc, int desc_len, void *data) ; | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||