Bug 1266458
Summary: | aide can not handle directory name with spaces | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Eva Mrakova <emrakova> |
Component: | aide | Assignee: | Daniel Kopeček <dkopecek> |
Status: | CLOSED WORKSFORME | QA Contact: | Karel Srot <ksrot> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.2 | CC: | cww, dkopecek, emrakova, kfujii, ksrot, myamazak, pvrabec, qe-baseos-security |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1180435 | Environment: | |
Last Closed: | 2016-10-06 12:25:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1203710 |
Description
Eva Mrakova
2015-09-25 10:43:48 UTC
Hi Eva, how did you reproduce this issue? I finally got to processing aide bugs and I found out that the patch from 6.8 is already applied to the 0.15.1 codebase. I tried to reproduce the issue but I don't see it with my setup (testing on rhel-7.2). Did you follow a different steps to reproduce the issue? This is what I did: # mkdir -p /var/tmp/aidetest/a\ 123456/x # touch /var/tmp/aidetest/a\ 123456/x/foo # aide -i && mv -f /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz AIDE, version 0.15.1 ### AIDE database at /var/lib/aide/aide.db.new.gz initialized. # aide AIDE, version 0.15.1 ### All files match AIDE database. Looks okay! # echo abc > /var/tmp/aidetest/a\ 123456/x/foo # aide AIDE, version 0.15.1 ### All files match AIDE database. Looks okay! # tail -n2 /etc/aide.conf /var/tmp/aidetest NORMAL !/var/tmp/aidetest/a\ 123456/x Hi Dan, we are able to reproduce the problem and it seems to be quite sensitive on directory names. E.g. if I remember properly, I wasn't able to reproduce it with a directory name where the space was as the 2nd letter. In our test we are using path /tmp/tmp.kds9esUgmy/dir\ bz1180435/subdir/tstfile. I will run the test case again to find out the current status and report the result. (In reply to Karel Srot from comment #4) > Hi Dan, > we are able to reproduce the problem and it seems to be quite sensitive on > directory names. E.g. if I remember properly, I wasn't able to reproduce it > with a directory name where the space was as the 2nd letter. In our test we > are using path /tmp/tmp.kds9esUgmy/dir\ bz1180435/subdir/tstfile. Hmm. So I tested it with the space at position 4. # mkdir -p /var/tmp/aidetest/abc\ 123456/x # touch /var/tmp/aidetest/abc\ 123456/x/foo # aide -i && mv -f /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz AIDE, version 0.15.1 ### AIDE database at /var/lib/aide/aide.db.new.gz initialized. # aide AIDE, version 0.15.1 ### All files match AIDE database. Looks okay! # echo abc > /var/tmp/aidetest/abc\ 123456/x/foo # aide AIDE, version 0.15.1 ### All files match AIDE database. Looks okay! # tail -n2 /etc/aide.conf /var/tmp/aidetest NORMAL !/var/tmp/aidetest/abc\ 123456/x ---------- snip ----------- and position 3 (to check some odd numbers too)...: ---------- snip ----------- # mkdir -p /var/tmp/aidetest/ab\ 123456/x # touch /var/tmp/aidetest/ab\ 123456/x/foo # aide -i && mv -f /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz AIDE, version 0.15.1 ### AIDE database at /var/lib/aide/aide.db.new.gz initialized. # aide AIDE, version 0.15.1 ### All files match AIDE database. Looks okay! # echo abc > /var/tmp/aidetest/ab\ 123456/x/foo # aide AIDE, version 0.15.1 ### All files match AIDE database. Looks okay! # tail -n2 /etc/aide.conf /var/tmp/aidetest NORMAL !/var/tmp/aidetest/ab\ 123456/x ---------- snip ----------- If you could compile some clear steps to reproduce, that would be great! I am closing the bug as the fix is already present and we cannot reproduce the issue on recent RHEL releases. |