[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feeble attempt at using xattr gnu.translator
From: |
Samuel Thibault |
Subject: |
Re: Feeble attempt at using xattr gnu.translator |
Date: |
Mon, 11 May 2020 10:42:08 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
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