Permissions granted based on assembly and user
From: /kim/birkelund/aka/sekhmet (msnews_at_sekhmet.dk)
Date: 06/28/04
- Next message: Claude Vernier: "Unit tests, need good advice ?"
- Previous message: rasta: "app lease/licensing"
- Next in thread: Telmo Sampaio: "Re: Permissions granted based on assembly and user"
- Reply: Telmo Sampaio: "Re: Permissions granted based on assembly and user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 28 Jun 2004 08:56:55 +0200
Hi
Considering a multiuser system that supports server-side plugins, where
users have access to different parts of the system through the same plugins,
I'd like to know if the following situation can be solved using built-in
.Net security functionality:
We have a plugin P, and two users U1 and U2. For simplicity lets say that P
is a plugin that reads the content of a file and outputs it to the users. U1
and U2 have access to different files, and it's important that user U1 can't
read user U2's files and vice versa. When U1 is logged in P should be
allowed only to access the files U1 has access to, so that a badly written
or malicious plugin is unable to, by accident or purposfully, output the
content of U2's files to U1.
I know you can load an assembly and set its permissions, based on its
location, evidence or something else. But I'd like a way to give an assembly
different permissions based on the current user logged in. Obviously this
wouldn't be a problem if the assembly was loaded each time a user logged in,
but that isn't the case. Plugin assemblies are loaded once when the system
starts, and the system can have multiple users working at the same time.
In short: is there a way to grant an assembly different sets of permissions
at the same time based on something apart from the assembly it self?
----------------------------------------------------
/kim/birkelund/aka/sekhmet
- Next message: Claude Vernier: "Unit tests, need good advice ?"
- Previous message: rasta: "app lease/licensing"
- Next in thread: Telmo Sampaio: "Re: Permissions granted based on assembly and user"
- Reply: Telmo Sampaio: "Re: Permissions granted based on assembly and user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|