[Mono-list] Is PrincipalPermissionAttribute working?

DI Mag. Rainer Burgstaller rainer.burgstaller@web.de
Mon, 17 May 2004 16:55:03 +0200


Hello Sebastien

Thanks for the quick reply. So what would be the quickest alternative?

Would this work?

void MySecretFunction() {
	PrincipalPermission permission = new  
PrincipalPermission(null,"root",true);
	permission.Demand();
	// do something secret here
}

> The PrincipalPermission class is implemented but Mono doesn't (and won't)
> support security attributes in 1.0.
> See bugzilla entry #52693 for more details.


cheers