From owner-freebsd-testing@freebsd.org Sat Jul 4 15:59:12 2020 Return-Path: Delivered-To: freebsd-testing@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 3C0903517C5 for ; Sat, 4 Jul 2020 15:59:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49zc2m0vJBz3bqX for ; Sat, 4 Jul 2020 15:59:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1EC8A3517C4; Sat, 4 Jul 2020 15:59:12 +0000 (UTC) Delivered-To: testing@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 1E750351B2A for ; Sat, 4 Jul 2020 15:59:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49zc2l74G0z3bhB for ; Sat, 4 Jul 2020 15:59:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D65721F00D for ; Sat, 4 Jul 2020 15:59:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 064FxBdZ015739 for ; Sat, 4 Jul 2020 15:59:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 064FxBUl015737 for testing@freebsd.org; Sat, 4 Jul 2020 15:59:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: testing@freebsd.org Subject: [Bug 247761] tests/sys/audit/file-attribute-modify leaves chflags files behind; kyua can't clean up directories Date: Sat, 04 Jul 2020 15:59:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ngie@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: testing@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jul 2020 15:59:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247761 Bug ID: 247761 Summary: tests/sys/audit/file-attribute-modify leaves chflags files behind; kyua can't clean up directories Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: tests Assignee: testing@freebsd.org Reporter: ngie@FreeBSD.org tests/sys/audit/file-attribute-modify.c creates multiple files and director= ies, adds chflags SF_IMMUTABLE and UF_OFFLINE to the files, and relies on kyua to clean up the files/directories. kyua does the best it can to clean up the directory, but it can't remove fi= les with SF_IMMUTABLE on them. The cleanup routine needs to un-SF_IMMUTABLE the file so kyua can clean up = the file/directory. Excerpt from [1]: 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=3D"YES" set in the /etc/rc.conf, bu= t=20 on every boot the system argues that these file aren't deletable.=20 I tried to 'rm -rf' them by hand but, even this wasn't possible. I have loo= ked 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 dele= ted? --Gordon Excerpt from [2]: The issue is tests/sys/audit/file-attribute-modify.c , based on the file present that can=E2=80=99t be deleted. Can you please provide more informat= ion about the test run in a PR (I see how it can leave files behind, but I want to ma= ke sure it is what I think it is, first)? Cheers, -Enji 1. https://lists.freebsd.org/pipermail/freebsd-current/2020-June/076436.html 2. https://lists.freebsd.org/pipermail/freebsd-current/2020-July/076449.html --=20 You are receiving this mail because: You are the assignee for the bug.=