[Python-Dev] POSIX Capabilities (original) (raw)
Matt Kern matt.kern at undue.org
Fri Nov 17 13:15:22 CET 2006
- Previous message: [Python-Dev] Weekly Python Patch/Bug Summary
- Next message: [Python-Dev] POSIX Capabilities
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I was looking around for an interface to POSIX capabilities from Python under Linux. I couldn't find anything that did the job, so I wrote the attached PosixCapabilities module. It has a number of shortcomings:
- it is written using ctypes to interface directly to libcap;
- it assumes the sizes/types of various POSIX defined types;
- it only gets/sets process capabilities;
- it can test/set/clear capability flags.
Despite the downsides, I think it would be good to get the package out there. If anyone wishes to adopt it, update it, rewrite it and/or put it into the distribution, then feel free.
Regards, Matt
-- Matt Kern http://www.undue.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: PosixCapabilities.py Type: text/x-python Size: 7374 bytes Desc: not available Url : http://mail.python.org/pipermail/python-dev/attachments/20061117/4db99f3b/attachment-0001.py
- Previous message: [Python-Dev] Weekly Python Patch/Bug Summary
- Next message: [Python-Dev] POSIX Capabilities
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]