From owner-freebsd-current@freebsd.org Sun Jul 5 07:00:33 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 581B5362ABE for ; Sun, 5 Jul 2020 07:00:33 +0000 (UTC) (envelope-from gbe@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B002n1j6Zz4Z5x; Sun, 5 Jul 2020 07:00:33 +0000 (UTC) (envelope-from gbe@freebsd.org) Received: from localhost (p548612f6.dip0.t-ipconnect.de [84.134.18.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gbe) by smtp.freebsd.org (Postfix) with ESMTPSA id D13BF14A8A; Sun, 5 Jul 2020 07:00:32 +0000 (UTC) (envelope-from gbe@freebsd.org) Date: Sun, 5 Jul 2020 09:00:31 +0200 From: Gordon Bergling To: Enji Cooper Cc: freebsd-current , Alan Somers Subject: Re: Undeletable files after kyua test runs Message-ID: <20200705070031.GA3218@lion.0xfce3.net> References: <20200629172626.GA63722@lion.0xfce3.net> <28F5E543-5B64-4CC0-A450-A2719D3C3A65@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: X-Operating-System: FreeBSD 12.1-STABLE amd64 X-Host-Uptime: 7:40AM up 1 day, 20:30, 5 users, load averages: 1.25, 1.09, 1.04 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2020 07:00:33 -0000 On Sat, Jul 04, 2020 at 10:02:45AM -0700, Enji Cooper wrote: > > On Jul 4, 2020, at 8:59 AM, Enji Cooper wrote: > >> On Jul 2, 2020, at 7:57 PM, Enji Cooper > wrote: > >>> On Jun 29, 2020, at 10:26 AM, Gordon Bergling > wrote: > >>> > >>> Hi, > >>> > >>> I recently stumbled across undeletable files that are generated by kyua test runs, > >>> for example > >>> > >>> -rwxr-xr-x 1 root wheel 0 May 9 13:10 /tmp/kyua.aB4q62/8676/work/fileforaudit > >>> > >>> I haven't yet identified the test that generate those files, but it is impossible > >>> to delete them. I have clear_tmp_enable="YES" set in the /etc/rc.conf, but > >>> on every boot the system argues that these file aren't deletable. > >>> I tried to 'rm -rf' them by hand but, even this wasn't possible. I have looked for > >>> any extend attributes, but I didn't find any. > >>> > >>> Has anyone an idea how this is possible and may how these files can be deleted? > >> > >> The issue is tests/sys/audit/file-attribute-modify.c , based on the file present that can’t be deleted. Can you please provide more information about the test run in a PR (I see how it can leave files behind, but I want to make sure it is what I think it is, first)? > > > > PR filed: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247761 . Working on a CR. > > Hi, > I just created the following CR: https://reviews.freebsd.org/D25561 and added the following related GitHub issue to PR: https://github.com/jmmv/kyua/issues/142 . This should be completed to avoid issues like this in the future from occurring. > Thank you for the report! > -Enji Hi Enji, thanks for taking care of this issue and creating a PR. I didn't find the time in the last 3 days. Are you still need informationen about the kyua runs? I usually just do a # kyua test -k /usr/tests/Kyuafile once in a while, which results for example in the following undeletable files / directories. -rwxr-xr-x 1 root wheel 0 Jul 1 12:44 /tmp/kyua.gv1loN/8718/work/fileforaudit -rwxr-xr-x 1 root wheel 0 Jul 5 08:50 /tmp/kyua.FH0CAp/8718/work/fileforaudit --Gordon