diff options
Diffstat (limited to 'src/security')
-rw-r--r-- | src/security/virt-aa-helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index a5cb85c83..7b41d3849 100644 --- a/src/security/virt-aa-helper.c +++ b/src/security/virt-aa-helper.c @@ -473,7 +473,7 @@ valid_name(const char *name) * used to subvert the profile */ const char *bad = " /[]*"; - if (strlen(name) == 0 || strlen(name) > PATH_MAX - 1) + if (strlen(name) == 0) return -1; if (strcspn(name, bad) != strlen(name)) @@ -544,7 +544,7 @@ valid_path(const char *path, const bool readonly) "/sys/devices/pci" /* for hostdev pci devices */ }; - if (path == NULL || strlen(path) > PATH_MAX - 1) { + if (path == NULL) { vah_error(NULL, 0, _("bad pathname")); return -1; } |