[Bug 1084758] New: seccheck fails to cleanup some temporary files created during daily and weekly run
http://bugzilla.opensuse.org/show_bug.cgi?id=1084758 Bug ID: 1084758 Summary: seccheck fails to cleanup some temporary files created during daily and weekly run Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Security Assignee: security-team@suse.de Reporter: d_werner@gmx.net QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 Build Identifier: During each run of the daily or weekly cron jobs of seccheck afterwards temporary files are left. Specifically these files are daily: created by the pattern specia_files_owner.XXXX in security_daily_helper.inc e.g. /tmp/specia_files_owner.Jx25 weekly: created by the pattern rpm-md5.XXXX in helper.inc e.g. /tmp/rpm-md5.AYWm This is observed with the rpm seccheck-3.0-lp150.2.3.noarch.rpm from Leap 15.0 Build 153.1 Reproducible: Always Steps to Reproduce: 1.have the seccheck rpm installed (and ensure the START_SECCHK="yes" which is the default) 2.let the time pass when the cron job triggers or tweak it to run "soon" 3.check if the files /tmp/rpm-md5.* or /tmp/specia_files_owner.* exist after the cronjob is finished dependent whether the daily or the weekly cron job was executed. Note: the weekly job can run for several minutes. Actual Results: Temporary files created by the cron job are left after the cron job completes. /tmp/specia_files_owner.???? /tmp/rpm-md5.???? Expected Results: seccheck should not leave temporary files after it finishes successfully. I do not consider this bug is not an actual security problem, it is just in a security related component. As far as I remember it even was already once fixed but crept in again. Note: this is not a new problem, AFAIK it also exists in Leap 42.3 and Tumbleweed, but maybe now is a good time to fix it and the fix is simple. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1084758 http://bugzilla.opensuse.org/show_bug.cgi?id=1084758#c1 --- Comment #1 from Dirk Weber <d_werner@gmx.net> --- Created attachment 763292 --> http://bugzilla.opensuse.org/attachment.cgi?id=763292&action=edit Patch based on the content of seccheck-3.0-lp150.2.3.noarch.rpm -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1084758 http://bugzilla.opensuse.org/show_bug.cgi?id=1084758#c2 --- Comment #2 from Dirk Weber <d_werner@gmx.net> --- Confirmation that the bugs also exists in Tumbleweed (Tumbleweed snapshot 20180308) and one liners to verify them: tumbleweed:~ # rpm -q seccheck seccheck-3.0-13.1.noarch tumbleweed:~ # rpm -V seccheck S.5....T. c /etc/cron.d/seccheck tumbleweed:~ # RUN_FROM_CRON=yes /usr/lib/secchk/security-control.sh daily. tumbleweed:~ # ll /tmp/specia_files_owner.* -rw------- 1 root root 0 Mar 10 07:58 /tmp/specia_files_owner.fsRW tumbleweed:~ # RUN_FROM_CRON=yes /usr/lib/secchk/security-control.sh weekly ; date ; ll /tmp/rpm-md5.* Sat Mar 10 08:46:20 CET 2018 -rw------- 1 root root 2164 Mar 10 08:45 /tmp/rpm-md5.vXGU tumbleweed:~ # -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1084758 http://bugzilla.opensuse.org/show_bug.cgi?id=1084758#c7 Dirk Weber <d_werner@gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #7 from Dirk Weber <d_werner@gmx.net> --- solved by https://build.opensuse.org/request/show/607383 -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com