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
_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to