diff options
| author | Petr Vorel <[email protected]> | 2021-10-08 11:14:30 +0200 |
|---|---|---|
| committer | Mimi Zohar <[email protected]> | 2021-10-09 22:17:58 -0400 |
| commit | cc4299ea039972e57e219e2981b74967c133d41c (patch) | |
| tree | dbf838cdd0fbdb3d3ad8c8a83c1e7b140d9e96b9 /security/integrity/ima/ima_api.c | |
| parent | 61868acb0728db19a0ff107fb2361421eb1cd33c (diff) | |
ima: Use strscpy instead of strlcpy
strlcpy is deprecated, use its safer replacement.
Signed-off-by: Petr Vorel <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'security/integrity/ima/ima_api.c')
| -rw-r--r-- | security/integrity/ima/ima_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_api.c b/security/integrity/ima/ima_api.c index 2c6c3a5228b5..a64fb0130b01 100644 --- a/security/integrity/ima/ima_api.c +++ b/security/integrity/ima/ima_api.c @@ -403,7 +403,7 @@ const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf) } if (!pathname) { - strlcpy(namebuf, path->dentry->d_name.name, NAME_MAX); + strscpy(namebuf, path->dentry->d_name.name, NAME_MAX); pathname = namebuf; } |