[Mono-dev] setuid() + Mono = boom

Peter Williams peter at newton.cx
Thu Sep 1 18:10:43 EDT 2005


Hi all,

I'm trying to write a Mono app that starts out running as root but
quickly drops privileges by calling

	Mono.Unix.Syscall.setuid (user_id);

Unfortunately this doesn't work because the wapi layer loses its ability
to read the .wapi files and very quickly asserts and kills the runtime.

	* Is there a way to disable the wapi bits so this 
	  isn't a problem?

	* Or is there a way to do this through the managed API
	  that might also be more cross-platform?

Thanks,
	Peter

-- 
Peter Williams / peter at newton.cx




More information about the Mono-devel-list mailing list