[Nix-dev] grantpt(), new file with setuid bit set, annoying consequences

Lluís Batlle viriketo at gmail.com
Sat Jan 9 15:13:50 CET 2010


Hallo,

2010/1/9 Eelco Dolstra <e.dolstra at tudelft.nl>:
> Lluís Batlle wrote:
>
>> So, what do you propose?
>> 1. In nixos, set pt_chown to the 'setuid' magic. This will make
>> nix-installed gnu screen or x terminals fail in non-nixos.
>> 2. Remind the users that they should belong to the tty group to use
>> screen or x terminals
>> 3. Something you think better and I have not written here.
>
> 4. Put back the DEVPTS_SUPER_MAGIC check that was removed?
>
> This would be consistent with the manpage, which says: 'Many systems implement
> this function via a set-user-ID helper binary called "pt_chown".  With Linux
> devpts no such helper binary is required.'

Our devpts does not make the devices owned by 'tty'. We should achieve
that, or we will keep on without working 'mesg y'. Nevertheless, it
like the approach. Fine for me.



More information about the nix-dev mailing list