From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31522 invoked from network); 10 May 2022 20:54:07 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 10 May 2022 20:54:07 -0000 Received: from MTA-11-3.privateemail.com ([198.54.122.105]) by 9front; Tue May 10 16:52:46 -0400 2022 Received: from mta-11.privateemail.com (localhost [127.0.0.1]) by mta-11.privateemail.com (Postfix) with ESMTP id 5492818001C7 for <9front@9front.org>; Tue, 10 May 2022 16:52:40 -0400 (EDT) Received: from localhost (unknown [10.20.151.153]) by mta-11.privateemail.com (Postfix) with ESMTPA id 76EA518001D4 for <9front@9front.org>; Tue, 10 May 2022 16:52:39 -0400 (EDT) Date: Tue, 10 May 2022 13:52:20 -0700 From: Anthony Martin To: 9front@9front.org Message-ID: References: <28db6450-6d7c-977f-aaff-62f152e79968@posixcafe.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28db6450-6d7c-977f-aaff-62f152e79968@posixcafe.org> X-Virus-Scanned: ClamAV using ClamSMTP List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: deep-learning component Subject: [9front] Re: [PATCH] kernel: disallow executing from #| or #d Reply-To: 9front@9front.org Precedence: bulk Jacob Moody once said: > I believe this would also work for binaries > if the writer could predict what parts of the binary > the kernel will want to read. I am inclined to > block this behavior but would be curious what others > think. Included is a patch to error on OEXEC opens > in devdup and devpipe. OREAD and OEXEC are essentially the same thing on Plan 9. If you can open and read a file, you can always just copy the contents to a new file that you own and change the mode. Unix retains the illusion. Cheers, Anthony