keyutils.h | keyutils.h | |||
---|---|---|---|---|
skipping to change at line 92 | skipping to change at line 92 | |||
#define KEYCTL_CLEAR 7 /* clear contents of a keyri ng */ | #define KEYCTL_CLEAR 7 /* clear contents of a keyri ng */ | |||
#define KEYCTL_LINK 8 /* link a key into a keyring */ | #define KEYCTL_LINK 8 /* link a key into a keyring */ | |||
#define KEYCTL_UNLINK 9 /* unlink a key from a keyri ng */ | #define KEYCTL_UNLINK 9 /* unlink a key from a keyri ng */ | |||
#define KEYCTL_SEARCH 10 /* search for a key in a key ring */ | #define KEYCTL_SEARCH 10 /* search for a key in a key ring */ | |||
#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_SESSION_TO_PARENT 18 /* set my session keyring on | ||||
my parent process */ | ||||
/* | /* | |||
* 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 135 | skipping to change at line 137 | |||
key_serial_t destringid); | key_serial_t destringid); | |||
extern long keyctl_read(key_serial_t id, char *buffer, size_t buflen); | extern long keyctl_read(key_serial_t id, char *buffer, size_t buflen); | |||
extern long keyctl_instantiate(key_serial_t id, | extern long keyctl_instantiate(key_serial_t id, | |||
const void *payload, | const void *payload, | |||
size_t plen, | size_t plen, | |||
key_serial_t ringid); | key_serial_t ringid); | |||
extern long keyctl_negate(key_serial_t id, unsigned timeout, key_serial_t r ingid); | extern long keyctl_negate(key_serial_t id, unsigned timeout, key_serial_t r ingid); | |||
extern long keyctl_set_reqkey_keyring(int reqkey_defl); | extern long keyctl_set_reqkey_keyring(int reqkey_defl); | |||
extern long keyctl_set_timeout(key_serial_t key, unsigned timeout); | extern long keyctl_set_timeout(key_serial_t key, unsigned timeout); | |||
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_session_to_parent(void); | ||||
/* | /* | |||
* 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); | ||||
#endif /* KEYUTILS_H */ | #endif /* KEYUTILS_H */ | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 7 lines changed or added | |||