From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MJNxFusPuV6VLQAA0tVLHw (envelope-from ) for ; Mon, 11 May 2020 08:42:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gIaaDvkPuV4eXAAAB5/wlQ (envelope-from ) for ; Mon, 11 May 2020 08:42:33 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D5201940B80 for ; Mon, 11 May 2020 08:42:30 +0000 (UTC) Received: from localhost ([::1]:53348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jY419-0002ZH-JF for larch@yhetil.org; Mon, 11 May 2020 04:42:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY40x-0002YQ-4w; Mon, 11 May 2020 04:42:19 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]:46362) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY40u-0001MV-DE; Mon, 11 May 2020 04:42:18 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 38F6E304A; Mon, 11 May 2020 10:42:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oEvcb_j-LeuA; Mon, 11 May 2020 10:42:09 +0200 (CEST) Received: from function (lfbn-bor-1-797-11.w86-234.abo.wanadoo.fr [86.234.239.11]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 486C42607; Mon, 11 May 2020 10:42:09 +0200 (CEST) Received: from samy by function with local (Exim 4.93) (envelope-from ) id 1jY40m-00FQdj-8D; Mon, 11 May 2020 10:42:08 +0200 Date: Mon, 11 May 2020 10:42:08 +0200 From: Samuel Thibault To: Jan Nieuwenhuizen Subject: Re: Feeble attempt at using xattr gnu.translator Message-ID: <20200511084208.tnjdat5bofcgsxth@function> Mail-Followup-To: Jan Nieuwenhuizen , bug-hurd@gnu.org, guix-devel@gnu.org References: <873687po5m.fsf@gnu.org> <20200510200555.2yrvifu73emzk44s@function> <87zhaej2fi.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zhaej2fi.fsf@gnu.org> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) Received-SPF: softfail client-ip=2a0c:e300::1; envelope-from=samuel.thibault@gnu.org; helo=hera.aquilenet.fr X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, bug-hurd@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 X-Spam-Score: -0.51 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Scan-Result: default: False [-0.51 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.53952444942716]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.07), country: US(-0.00), ip: 209.51.188.17(-0.54)]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[samuel.thibault@gnu.org,guix-devel-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_SEVEN(0.00)[8]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: 43abLZOaT5JC Jan Nieuwenhuizen, le lun. 11 mai 2020 10:33:53 +0200, a ecrit: > gnu.translator empty if no passive translator > translator and arguments: "/hurd/foo\0arg1\0arg2\0" > > ah...so there's a nice hack (way??) to also pass arguments... ? It's not hack, it's how it's passed on the process main() stack anyway. > diskfs_S_file_set_translator (struct protid *cred, > [...] > if (passivelen && passive[passivelen - 1]) > return EINVAL; > > hmm; so even when there are no arguments, VALUE must end with 0?! That > root@debian:~# setfattr --name=gnu.translator --value='/hurd/pflocal\0' 1 > root@debian:~# showtrans 1 > /hurd/pflocal > --8<---------------cut here---------------end--------------->8--- > > ...so "something" works. Good :) > Sadly, this trick does not work on GNU/Linux. I'm afraid this hasn't > been upstreamed and we would have to debug linux and/or create a patch > for setxattr to accept "gnu." on "Hurd" type file systems. Thoughts? Well, this has to be done, yes, I don't know what else to add :) Samuel