[Y-devel] Access control
Andrew Suffield asuffield at debian.org
Fri Mar 5 16:04:56 GMT 2004
On Fri, Mar 05, 2004 at 11:29:58AM +0100, Peter Prohaska wrote:
> On Fri, Mar 05, 2004 at 10:39:21AM +0000, Leonardo Giordani wrote:
> > I joined the mailining list only two days ago, so I beg your pardon if I state
> > already solved problems.
> >
> > What about access control?
> > Is someone already working on it?
>
> Hi Leonardo,
>
> I'm currently working on this.
> Some basic modules to seperate the destict stages of connecting and and
> access control are ready in a proof of concept state.
>
> The biggest problem i have to think through is currently the module
> loader.
> I have core modules providing an interface for i.e. connection management
> and other modules implementing specific types of connections like tcp/ip
> etc.
> I asked about that problem on irc yesterday and mark told me that the
> module manager does not support intermodule dependencies and alike. He
> would apreciate if someone would try to write a better one which
> supports things like (as i understand the problem):
> - reference counting
> - dependency resolution
Got those already. Intrinsic in the way DSOs work on an ELF
platform. You don't normally want to do things that way, though.
> - automatic loading / unloading
Don't really need that, at least not in the way you mean.
> [- maybe signature verification and checksum verification
Can't imagine any scenarios where this would be useful.
> > I notice this:
> > - When a client connects (i.e. invokes Window::create) the client is listed
> > into the clients and is assigned a client number.
> > - I tried to implement a message YMO_REQUEST_ACCESS in a Object::get_access
> > method, but it does not work, because the client does not exist and cannot be
> > reached (no m->from number)
>
> mmmm... cannot follow here right now.
That's because it was insane.
> My current approach is to clean up the client interface a little and to
> provide an interface for writing "client modules".
>
> At the moment I have seperated the system into:
> * Listener:
> - implements a server socket (i.e. tcp/ip, unix, etc.)
> - On connection request, it spawns a Channel object
> * Channel:
> - responsible for read()/write()
> - registering with either the control module or what ever is used to handle
> sync/async io wakups
> - buffering
> * ProtocolCodec / MessageCodec:
> - serialises / deserialises messages / data
> * ProtocolCodecStack:
> - links a set of ProtocolCodecs together
> * Client:
> - provides the send message / receive message interface
> - uses ProtocolCodecStack and Channel objects as backend
Sounds like a lot of unnecessary complexity to me. This isn't a
particularly complex problem, there's no need for a headlong dive into
the second system effect.
--
.''`. ** Debian GNU/Linux ** | Andrew Suffield
: :' : https://www.debian.org/ |
`. `' |
`- -><- |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://www.y-windows.org/pipermail/y-devel/attachments/20040305/65397e2b/attachment.bin
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved