[Mono-dev] FileSecurity or chmod

Mariner, David DMariner at nds.com
Mon May 11 11:29:33 EDT 2009

Can you check System.OperatingSystem.Platform 


then use either chmod or AccessControl depending on runtime platform.
It's a feels a little messy but it's better than having to distribute
multiple binaries, isn't it?

Hope this helps, 

Dave Mariner

> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com
> bounces at lists.ximian.com] On Behalf Of Atsushi Eno
> Sent: 11. maj 2009 04:10
> Cc: mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-dev] FileSecurity or chmod
> Hello,
> markohrastovec wrote:
> > Is it possible to set permissions for the file with FileSecurity
> If
> > yes. How? I will probably use for start system call to chmod
> > (Mono.Unix.Native.Syscall.chmod) but I do not prefer this solution
> because I
> > lose binary compatibility with windows.
> No. System.Security.AccessControl (ACL based on Windows-ism) is not
> supported. I don't think there is binary compatible cross platform
> way to do it.
> Atsushi Eno
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
This e-mail is confidential, the property of NDS Ltd and intended for the addressee only.  Any dissemination, copying or distribution of this message or any attachments by anyone other than the intended recipient is strictly prohibited.  If you have received this message in error, please immediately notify the postmaster at nds.com and destroy the original message.  Messages sent to and from NDS may be monitored.  NDS cannot guarantee any message delivery method is secure or error-free.  Information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.  We do not accept responsibility for any errors or omissions in this message and/or attachment that arise as a result of transmission.  You should carry out your own virus checks before opening any attachment. Any views or opinions presented are solely those of the author and do not necessarily represent those of NDS.

To protect the environment please do not print this e-mail unless necessary.

More information about the Mono-devel-list mailing list