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

Eelco Dolstra e.dolstra at tudelft.nl
Sat Jan 9 14:15:50 CET 2010


Hi,

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.'

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list