BIND 10 #983: Python wrappers for ACLs
BIND 10 Development
do-not-reply at isc.org
Tue Jul 12 07:30:26 UTC 2011
#983: Python wrappers for ACLs
-------------------------------------+-------------------------------------
Reporter: | Owner: jinmei
vorner | Status: reviewing
Type: task | Milestone:
Priority: major | Sprint-20110712
Component: | Resolution:
Unclassified | Sensitive: 0
Keywords: | Sub-Project: DNS
Defect Severity: N/A | Estimated Difficulty: 5.0
Feature Depending on Ticket: ACL | Total Hours: 0
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by jinmei):
Replying to [comment:11 jinmei]:
> > I don't know if having the library loaded suffices here. I think my
linker looks only into libraries that are noted as dependencies. Don't you
load the library already before? I think the test imports the acl.acl
module first. What do you suggest I try?
>
> Hmm, this is strange. dns_test.py explicitly import isc.acl.acl
> before line 19 that triggered the exception above:
Okay, after some more research I realized that sharing symbols
between multiple loadable modules is very tricky, almost infeasible
if we want to be portable.
So I've developed a different workaround and committed it to the
branch. Could you try and review it?
(This specific issue took much more time than I expected, so I've not
addressed other issues yet).
BTW, while working on this, I also considered an option of
consolidating multiple modules into a single loadable module (.so).
And, unless I miss something, it seems very difficult if not
impossible. It would be very close to re-implementing the import
mechanism of the Python interpreter, which would be very complicated
and contain subtle corner cases, and I'm not even sure if we can
reasonably achieve that only using the exposed API.
--
Ticket URL: <http://bind10.isc.org/ticket/983#comment:12>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list