From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sH7cA4ZauF65JAAA0tVLHw (envelope-from ) for ; Sun, 10 May 2020 19:48:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cAOoKpNauF7uVAAA1q6Kng (envelope-from ) for ; Sun, 10 May 2020 19:48:35 +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 A126F940039 for ; Sun, 10 May 2020 19:48:33 +0000 (UTC) Received: from localhost ([::1]:58788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXrwA-0001CR-Dq for larch@yhetil.org; Sun, 10 May 2020 15:48:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXrvl-0000oM-2w; Sun, 10 May 2020 15:48:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48707) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXrvk-0004cU-Pe; Sun, 10 May 2020 15:48:08 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=48024 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jXrvj-0007TK-6Z; Sun, 10 May 2020 15:48:08 -0400 From: Jan Nieuwenhuizen To: bug-hurd@gnu.org Subject: Feeble attempt at using xattr gnu.translator Organization: AvatarAcademy.nl X-Url: http://AvatarAcademy.nl Date: Sun, 10 May 2020 21:48:05 +0200 Message-ID: <873687po5m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 X-Spam-Score: -1.01 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 [-1.01 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.53905031194873]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.08), country: US(-0.00), ip: 209.51.188.17(-0.54)]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; FROM_NEQ_ENVFROM(0.00)[janneke@gnu.org,guix-devel-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[joyofsource.com:url,lilypond.org:url,gnu.org:email,avataracademy.com:url]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gnu.org]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[209.51.188.17:from]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: mjl5aP9PWnvu Hello, As part of the effort of creating vm-images for the Hurd using Guix, it would be nice to use extended file attributes to set passive translators. In particular, it would be helpful if we could use setfattr --name=3Dgnu.translator --value=3D/hurd/pfinet 1 That would allow us to boot right into Guile and skip a Bash script to only to run settrans -c /servers/socket/1 /hurd/pflocal Whether on GNU/Linux or on the Hurd (booted with --x-xattr-translator-records and x-xattr-translator-records option in fstab); almost nothing works. The Hurd root@debian:~# cat /etc/fstab # /etc/fstab: static file system information. # # /dev/hd0s2 / ext2 defaults,x-xattr-translator-rec= ords 0 1 /dev/hd0s1 none swap sw 0 0 /dev/hd2 /media/cdrom0 iso9660 noauto 0 0 root@debian:~# fsysopts / ext2fs --writable --no-inherit-dir-group --x-xattr-translator-records -= -store-type=3Dtyped device:hd0s2 root@debian:~# ps -ef --width=3D1000 | grep ext2 - 5 2 - 0:02.98 ext2fs --readonly --multiboot-command-line= =3Droot=3Ddevice:hd0s2 --host-priv-port=3D1 --device-master-port=3D2 --exec= -server-task=3D3 -T typed device:hd0s2 --x-xattr-translator-records so that seems OK? Still, nothing seems to work root@debian:~# touch 1 root@debian:~# mknod 2 c 0 0 root@debian:~# setfattr --name=3Dgnu.translator --value=3D/hurd/pfinet 1 setfattr: 1: Invalid argument root@debian:~# setfattr --name=3Dgnu.translator --value=3D/hurd/pfinet 2 setfattr: 2: Invalid argument root@debian:~# setfattr --name=3Dgnu.author --value=3D/hurd/pfinet 1 setfattr: 1: Invalid argument root@debian:~# setfattr --name=3Dgnu.author --value=3D/hurd/pfinet 2 setfattr: 2: Invalid argument root@debian:~# setfattr --name=3Duser.translator --value=3D/hurd/pfinet= 1 setfattr: 1: Operation not supported root@debian:~# setfattr --name=3Duser.translator --value=3D/hurd/pfinet= 2 setfattr: 2: Operation not supported On GNU/Linux, I only managed to set user.X, not gnu.translator root@dundal ~# touch 1 root@dundal ~# mknod 2 c 0 0 root@dundal ~# setfattr --name=3Dgnu.translator --value=3D/hurd/pfinet 1 setfattr: 1: Operation not supported root@dundal ~# setfattr --name=3Dgnu.translator --value=3D/hurd/pfinet 2 setfattr: 2: Operation not supported root@dundal ~# setfattr --name=3Dgnu.author --value=3D/hurd/pfinet 1 setfattr: 1: Operation not supported root@dundal ~# setfattr --name=3Dgnu.author --value=3D/hurd/pfinet 2 setfattr: 2: Operation not supported root@dundal ~# setfattr --name=3Duser.translator --value=3D/hurd/pfinet= 1 root@dundal ~# setfattr --name=3Duser.translator --value=3D/hurd/pfinet= 2 setfattr: 2: Operation not permitted only one command succeeds, but that's next to useless (well, it suggests to= uch could work and we don't need mknod). This https://lists.gnu.org/archive/html/bug-hurd/2004-02/msg00108.html is the only interesting piece of information I found; down the thread there is a suggestion to try upstreaming. I looked at the Linux sources They seem to suggest that only a couple of namespaces are allowed (and "gnu" is not one of them) but find them hard to read. Greetings, janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com