From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 19 19:13:11 2022 Received: (at 54309) by debbugs.gnu.org; 19 Mar 2022 23:13:11 +0000 Received: from localhost ([127.0.0.1]:60768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nViFz-0007rz-MI for submit@debbugs.gnu.org; Sat, 19 Mar 2022 19:13:11 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:55224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nViFy-0007rr-AU for 54309@debbugs.gnu.org; Sat, 19 Mar 2022 19:13:10 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id 8PD82700T4UW6Th01PD8zz; Sun, 20 Mar 2022 00:13:09 +0100 Message-ID: <80cc8802439c49138638dee6d4fb9015723f9727.camel@telenet.be> Subject: Re: [bug#54309] [PATCH] services: auditd: use exclusive log directory for auditd From: Maxime Devos To: fesoj000 , 54309@debbugs.gnu.org Date: Sun, 20 Mar 2022 00:13:08 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-U3UDrUg+SYTZ5RKsDHrf" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647731589; bh=KncFL6CYiuPQxP/gVEazsxd6XDMe+ccac/LiHawbFhM=; h=Subject:From:To:Date:In-Reply-To:References; b=A/Tv3JnH0KUGMpC6J4e50ic5klFva9feNlvfhdi1u8afvkIVdNSZSjF4HKDeDPnrt OAr9tPCCu/2r7tFoRf49w+t2BjZepX7yaYHuH6SryED8oRWrgQQi1Z+xnLPi8vVn9q 4GUqvXmA1U1H6HYC79kNZaorvfiH9kdj8UytaeKk/AuFyQi1DLTZ0JharqqM1hCaK9 U+dGHECIBglc6gbrnug7hxShiqaNLbWUeKq7SUuSDh5n+OoOKjiuS1QRVLHpazO8Nb 43q8zY+B+3uDa22EudVgEnwGFUa2cfQfsjr8NkxdN/H3fi4wb0+rs75m6u1t5zXY5F kEKz/69auXhlw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 54309 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-U3UDrUg+SYTZ5RKsDHrf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable fesoj000 schreef op za 19-03-2022 om 12:34 [+0100]: > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (let* ((previous-umask (umask= #o077))) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (mkdir-p "/var/lo= g/audit") > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (umask previous-u= mask))))) I cannot recommend this, what if 'mkdir-p' throws an exception? That might cause problems. Or maybe not, but it would require some analysis that can be avoided with 'mkdir-p/perms'. Greetings, Maxime. --=-U3UDrUg+SYTZ5RKsDHrf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYjZjhBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7q6aAP48JIAfJ1LLtn22p4Ps43AiU7Er ncPY6sMxUH5KIZXefgD/du52/IebjsxywuoL1p1MP1vo0/Z90xVd8zcXI8vUBAQ= =hgd/ -----END PGP SIGNATURE----- --=-U3UDrUg+SYTZ5RKsDHrf--