Access Rights and Folders



Hi,
I'm wondering how to expand on the issue dealt with a bit in this
thread:
http://groups.google.com/group/microsoft.public.dotnet.security/browse_thread/thread/cc9121dfe15ef7e2?tvc=2
..
What I want to do is to limit the access control of the app that I
amd working on to only allow it to write in a specific directory
(usually it will just be it's running directory, but maybe it would be
nice to be able to specify a different path either prior to execution
or during runtime). It would be nice to be able to control whether the
app can only read files, or only write files in a particular directory.
You might get my idea...I want to be able to control the app's level
of access.
I've looked a lot into FileIOPermissionAttribute and
FileIOPermission. FileIOPermissionAttribute only seems to let me
assign a minimum level of access rights for the app, but not specify
that I don't want any rights but to a certain directory. Using the
RequestRefuse parameter will refuse rights, but not let me specify that
I want some rights granted, but only to a particular directory. I've
sort of gotten what I want with FileIOPermission and its PermitOnly
method, but when using that, I end up calling it everytime that I make
a call that might write to a file, etc.
So, what are my options? Is there anything that can be done that
would be easy to specify for controling the access rights at the entire
app level?

.



Relevant Pages

  • Re: Begin Daylight Savings Time Problems
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Since then, I created a test app that sets the RTC to 1:59:50 am April 2, ... If I set the RTC so that the beginning of daylight savings time does not ... then there are short duration small processor loading spikes that ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Begin Daylight Savings Time Problems
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Since then, I created a test app that sets the RTC to 1:59:50 am April 2, ... If I set the RTC so that the beginning of daylight savings time does not ... then there are short duration small processor loading spikes that ...
    (microsoft.public.windowsce.platbuilder)
  • Re: running apps as power user. Permission problems.
    ... >runs the app as a power user logged onto their network. ... Then reduced their rights to power ... developers run their own machines as supervisor. ... programmers seem to do a basic installation, ghost it, and just scrub ...
    (microsoft.public.windowsxp.security_admin)
  • RE: WMP11 not adding files from my external Hard Drive
    ... I have the same rights as administrator, ... /R user Revoke specified user's access rights. ... Wildcards can be used to specify more that one file in a command. ... CI - Container Inherit. ...
    (microsoft.public.windowsmedia.player)
  • No access on shares WinXPSP2 from Windows Server 2003 SP2
    ... granting 'read' to everyone and then granting full rights. ... /R user Revoke specified user's access rights. ... Wildcards can be used to specify more that one file in a command. ... CI - Container Inherit. ...
    (microsoft.public.windowsxp.security_admin)