/security/tomoyo/ |
D | realpath.c | 93 const int buflen) in tomoyo_get_absolute_path() argument 96 if (buflen >= 256) { in tomoyo_get_absolute_path() 98 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path() 102 buffer[buflen - 2] = '/'; in tomoyo_get_absolute_path() 103 buffer[buflen - 1] = '\0'; in tomoyo_get_absolute_path() 122 const int buflen) in tomoyo_get_dentry_path() argument 125 if (buflen >= 256) { in tomoyo_get_dentry_path() 126 pos = dentry_path_raw(dentry, buffer, buflen - 1); in tomoyo_get_dentry_path() 130 buffer[buflen - 2] = '/'; in tomoyo_get_dentry_path() 131 buffer[buflen - 1] = '\0'; in tomoyo_get_dentry_path() [all …]
|
/security/apparmor/ |
D | path.c | 30 static int prepend(char **buffer, int buflen, const char *str, int namelen) in prepend() argument 32 buflen -= namelen; in prepend() 33 if (buflen < 0) in prepend() 56 static int d_namespace_path(struct path *path, char *buf, int buflen, in d_namespace_path() argument 65 res = dentry_path(path->dentry, buf, buflen); in d_namespace_path() 85 res = __d_path(path, &root, buf, buflen); in d_namespace_path() 88 res = d_absolute_path(path, buf, buflen); in d_namespace_path() 100 res = dentry_path_raw(path->dentry, buf, buflen); in d_namespace_path()
|
/security/keys/ |
D | user_defined.c | 193 long user_read(const struct key *key, char __user *buffer, size_t buflen) in user_read() argument 202 if (buffer && buflen > 0) { in user_read() 203 if (buflen > upayload->datalen) in user_read() 204 buflen = upayload->datalen; in user_read() 206 if (copy_to_user(buffer, upayload->data, buflen) != 0) in user_read()
|
D | request_key_auth.c | 71 char __user *buffer, size_t buflen) in request_key_auth_read() argument 81 if (buffer && buflen > 0) { in request_key_auth_read() 82 if (buflen > datalen) in request_key_auth_read() 83 buflen = datalen; in request_key_auth_read() 85 if (copy_to_user(buffer, rka->callout_info, buflen) != 0) in request_key_auth_read()
|
D | keyctl.c | 544 size_t buflen) in keyctl_describe_key() argument 595 if (buffer && buflen > 0) { in keyctl_describe_key() 596 if (buflen > ret) in keyctl_describe_key() 597 buflen = ret; in keyctl_describe_key() 599 if (copy_to_user(buffer, tmpbuf, buflen) != 0) in keyctl_describe_key() 714 long keyctl_read_key(key_serial_t keyid, char __user *buffer, size_t buflen) in keyctl_read_key() argument 754 ret = key->type->read(key, buffer, buflen); in keyctl_read_key() 1414 size_t buflen) in keyctl_get_security() argument 1444 if (buffer && buflen > 0 && in keyctl_get_security() 1449 if (buffer && buflen > 0) { in keyctl_get_security() [all …]
|
D | keyring.c | 75 char __user *buffer, size_t buflen); 208 char __user *buffer, size_t buflen) in keyring_read() argument 221 if (buffer && buflen > 0) { in keyring_read() 222 if (buflen > qty) in keyring_read() 223 buflen = qty; in keyring_read() 234 if (tmp > buflen) in keyring_read() 235 tmp = buflen; in keyring_read() 242 buflen -= tmp; in keyring_read() 243 if (buflen == 0) in keyring_read()
|
D | trusted.c | 358 size_t buflen) in trusted_tpm_send() argument 363 rc = tpm_send(chip_num, cmd, buflen); in trusted_tpm_send() 1055 size_t buflen) in trusted_read() argument 1065 if (!buffer || buflen <= 0) in trusted_read()
|
D | internal.h | 236 size_t buflen);
|
/security/keys/encrypted-keys/ |
D | encrypted.c | 339 const u8 *buf, unsigned int buflen) in calc_hmac() argument 352 ret = crypto_shash_digest(&sdesc->shash, buf, buflen, digest); in calc_hmac() 357 static int calc_hash(u8 *digest, const u8 *buf, unsigned int buflen) in calc_hash() argument 368 ret = crypto_shash_digest(&sdesc->shash, buf, buflen, digest); in calc_hash() 895 size_t buflen) in encrypted_read() argument 913 if (!buffer || buflen < asciiblob_len) in encrypted_read()
|