keyutils.h | keyutils.h | |||
---|---|---|---|---|
skipping to change at line 100 | skipping to change at line 100 | |||
#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 */ | #define KEYCTL_INVALIDATE 21 /* invalidate a key */ | |||
#define KEYCTL_GET_PERSISTENT 22 /* get a user's persistent k eyring */ | ||||
/* | /* | |||
* 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 153 | skipping to change at line 154 | |||
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); | extern long keyctl_invalidate(key_serial_t id); | |||
extern long keyctl_get_persistent(uid_t uid, 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) ; | |||
extern int recursive_key_scan(key_serial_t key, recursive_key_scanner_t fun c, void *data); | extern int recursive_key_scan(key_serial_t key, recursive_key_scanner_t fun c, void *data); | |||
extern int recursive_session_key_scan(recursive_key_scanner_t func, void *d ata); | extern int recursive_session_key_scan(recursive_key_scanner_t func, void *d ata); | |||
extern key_serial_t find_key_by_type_and_desc(const char *type, const char | ||||
*desc, | ||||
key_serial_t destringid); | ||||
#endif /* KEYUTILS_H */ | #endif /* KEYUTILS_H */ | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 5 lines changed or added | |||