py-rsbac
13 years agoMore explicit warning about versions mismatch. master
Frédéric Jolliton [Fri, 24 Nov 2006 13:55:18 +0000 (13:55 +0000)]
More explicit warning about versions mismatch.

13 years agoAdded license text.
Frédéric Jolliton [Fri, 24 Nov 2006 13:54:56 +0000 (13:54 +0000)]
Added license text.

13 years agoFix TTL processing for um.User.
Frédéric Jolliton [Mon, 20 Nov 2006 12:58:46 +0000 (12:58 +0000)]
Fix TTL processing for um.User.

{get,set}UserTtl are already calling intToTtl and ttlToint,
so it was wrong to call them again in User.getTtl and User.setTtl.

13 years agoUpdated MANIFEST.
Frédéric Jolliton [Thu, 16 Nov 2006 14:10:31 +0000 (14:10 +0000)]
Updated MANIFEST.

13 years agoRemoved unit tests.
Frédéric Jolliton [Thu, 16 Nov 2006 14:09:56 +0000 (14:09 +0000)]
Removed unit tests.

They were covering a small part only, and were not that useful.
I will rewrite them later.

13 years agoUpdated classes with dict and set interface.
Frédéric Jolliton [Thu, 16 Nov 2006 14:00:13 +0000 (14:00 +0000)]
Updated classes with dict and set interface.

This adds more methods to emulate standard dict and set types.

13 years agoFixed lib.declare: Don't wrap missing functions.
Frédéric Jolliton [Sat, 11 Nov 2006 11:36:14 +0000 (11:36 +0000)]
Fixed lib.declare: Don't wrap missing functions.

13 years agoAdded _misc.headerVersion. Updated versions mismatch warning.
Frédéric Jolliton [Fri, 10 Nov 2006 14:47:35 +0000 (14:47 +0000)]
Added _misc.headerVersion. Updated versions mismatch warning.

13 years agoRemoved NOTES.txt.
Frédéric Jolliton [Thu, 9 Nov 2006 13:33:19 +0000 (13:33 +0000)]
Removed NOTES.txt.

That was a file with personnal notes. Most of these notes are now
obsolete or wrong.

13 years agoUpdated MANIFEST.
Frédéric Jolliton [Thu, 9 Nov 2006 13:29:11 +0000 (13:29 +0000)]
Updated MANIFEST.

13 years agoRemoved 1.2.8 support.
Frédéric Jolliton [Thu, 9 Nov 2006 13:27:51 +0000 (13:27 +0000)]
Removed 1.2.8 support.

Anyway, it was not working with 1.2.8 due to many changes made
to support 1.3.0.

13 years agoAdded sanity check for the RSBAC kernel version.
Frédéric Jolliton [Tue, 7 Nov 2006 22:09:33 +0000 (22:09 +0000)]
Added sanity check for the RSBAC kernel version.

13 years agoEmit warning at import time if versions mismatch.
Frédéric Jolliton [Tue, 7 Nov 2006 22:03:56 +0000 (22:03 +0000)]
Emit warning at import time if versions mismatch.

13 years agoUpdated MANIFEST for latest changes.
Frédéric Jolliton [Tue, 7 Nov 2006 21:50:57 +0000 (21:50 +0000)]
Updated MANIFEST for latest changes.

13 years agoUse _autodetect in _misc.libraryVersion.
Frédéric Jolliton [Tue, 7 Nov 2006 21:40:55 +0000 (21:40 +0000)]
Use _autodetect in _misc.libraryVersion.

13 years agoAdded version auto detection of librsbac.so.
Frédéric Jolliton [Tue, 7 Nov 2006 21:37:58 +0000 (21:37 +0000)]
Added version auto detection of librsbac.so.

Added the module _autodetect which looks at librsbac.so to
guess its version. This information is later used to pick
the correct headers to load.

Added headers for 1.2.8 and 1.3.0 release. Removed other
headers modules.

13 years agoAdded the online documentation.
Frédéric Jolliton [Mon, 6 Nov 2006 13:34:11 +0000 (13:34 +0000)]
Added the online documentation.

13 years agoUpdated default TTL to match new scheme.
Frédéric Jolliton [Sun, 5 Nov 2006 19:52:48 +0000 (19:52 +0000)]
Updated default TTL to match new scheme.

13 years agoAdded AuthCapDictProxyBase.__contains__.
Frédéric Jolliton [Sun, 5 Nov 2006 14:03:27 +0000 (14:03 +0000)]
Added AuthCapDictProxyBase.__contains__.

13 years agoAdded acl.grant and acl.revoke functions.
Frédéric Jolliton [Sun, 5 Nov 2006 14:01:41 +0000 (14:01 +0000)]
Added acl.grant and acl.revoke functions.

13 years agoAdded assignation to Rc{Role,Type}Dict classes.
Frédéric Jolliton [Sun, 5 Nov 2006 13:34:10 +0000 (13:34 +0000)]
Added assignation to Rc{Role,Type}Dict classes.

13 years agoAdded rc.findType and rc.findRole.
Frédéric Jolliton [Sun, 5 Nov 2006 13:22:58 +0000 (13:22 +0000)]
Added rc.findType and rc.findRole.

13 years agoFixed rc.grand and rc.revoke functions.
Frédéric Jolliton [Sun, 5 Nov 2006 13:19:11 +0000 (13:19 +0000)]
Fixed rc.grand and rc.revoke functions.

13 years agoAdd None as possible TTL (to keep TTL unchanged.)
Frédéric Jolliton [Sat, 4 Nov 2006 14:43:54 +0000 (14:43 +0000)]
Add None as possible TTL (to keep TTL unchanged.)

13 years agoAdded MANIFEST.
Frédéric Jolliton [Thu, 2 Nov 2006 18:04:31 +0000 (18:04 +0000)]
Added MANIFEST.

13 years agoAdded support for the rsbac.libraryVersion information.
Frédéric Jolliton [Thu, 2 Nov 2006 18:02:52 +0000 (18:02 +0000)]
Added support for the rsbac.libraryVersion information.

13 years agoAdded headers for RSBAC 1.3.1 (pre1).
Frédéric Jolliton [Thu, 2 Nov 2006 17:54:26 +0000 (17:54 +0000)]
Added headers for RSBAC 1.3.1 (pre1).

13 years agoAdded AuthCapDictProxyBase.__contains__.
Frédéric Jolliton [Thu, 2 Nov 2006 17:32:46 +0000 (17:32 +0000)]
Added AuthCapDictProxyBase.__contains__.

13 years agoVarious updates related to AUTH.
Frédéric Jolliton [Mon, 30 Oct 2006 13:43:51 +0000 (13:43 +0000)]
Various updates related to AUTH.

 - Fixed bugs related to ranges.
 - Allowed User() instances where integers were expected
   when describing range.
 - Added all kinds of auth capability sets.
 - Added __setitem__, add and discard methods to the auth cap sets.

13 years agoFixed typo for the eff_selfAcl attribute.
Frédéric Jolliton [Sun, 29 Oct 2006 13:58:11 +0000 (13:58 +0000)]
Fixed typo for the eff_selfAcl attribute.

13 years agoAdded access to effective ACL rights.
Frédéric Jolliton [Sun, 29 Oct 2006 12:38:30 +0000 (12:38 +0000)]
Added access to effective ACL rights.

13 years agoAdded _utils.{ttlToTuple,tupleToTtl}. Fixed TTL uses in the rc module.
Frédéric Jolliton [Sat, 28 Oct 2006 23:33:11 +0000 (23:33 +0000)]
Added _utils.{ttlToTuple,tupleToTtl}. Fixed TTL uses in the rc module.

13 years agoUpdated TTL behavior to be consistent everywhere.
Frédéric Jolliton [Fri, 27 Oct 2006 13:25:31 +0000 (13:25 +0000)]
Updated TTL behavior to be consistent everywhere.

Previously, TTL were represented in 2 different ways:

 * None or a positive integer (where None meant unlimited TTL)

 * False, True or a positive integer (where False mean undefined TTL,
 and True mean unlimited TTL)

The latter is now the default behavior for all the TTLs.

Low level functions still use "raw" TTL (0 for unlimited TTL and
a positive integer otherwise.)

13 years agoUpdated acl.AclBy{Id,Name} to return default entries.
Frédéric Jolliton [Fri, 27 Oct 2006 13:19:36 +0000 (13:19 +0000)]
Updated acl.AclBy{Id,Name} to return default entries.

13 years agoAdded rsbac.auth module.
Frédéric Jolliton [Fri, 27 Oct 2006 13:12:40 +0000 (13:12 +0000)]
Added rsbac.auth module.

13 years agoFixed tests to work with latest code.
Frédéric Jolliton [Fri, 27 Oct 2006 13:00:52 +0000 (13:00 +0000)]
Fixed tests to work with latest code.

13 years agoAdded acl.EffectiveAclBy{Id,Name} classes.
Frédéric Jolliton [Fri, 27 Oct 2006 12:56:43 +0000 (12:56 +0000)]
Added acl.EffectiveAclBy{Id,Name} classes.

13 years agoAdded the roles module, including a SystemRole class. Updated objects to use it.
Frédéric Jolliton [Thu, 26 Oct 2006 01:40:27 +0000 (01:40 +0000)]
Added the roles module, including a SystemRole class. Updated objects to use it.

13 years agoAdded /= operator to flags classes (to remove flags).
Frédéric Jolliton [Thu, 26 Oct 2006 00:12:52 +0000 (00:12 +0000)]
Added /= operator to flags classes (to remove flags).

13 years agoFixed another attribute definition. Added __weakref__ to RC classes.
Frédéric Jolliton [Wed, 25 Oct 2006 20:14:31 +0000 (20:14 +0000)]
Fixed another attribute definition. Added __weakref__ to RC classes.

13 years agoFixed attributes definition in rc.RoleBase.
Frédéric Jolliton [Wed, 25 Oct 2006 16:09:30 +0000 (16:09 +0000)]
Fixed attributes definition in rc.RoleBase.

13 years agoMoved DAZ cache flushing function to its own module.
Frédéric Jolliton [Wed, 25 Oct 2006 12:58:08 +0000 (12:58 +0000)]
Moved DAZ cache flushing function to its own module.

13 years agoMade um.addUser/um.addGroup return um.User and um.Group instance.
Frédéric Jolliton [Wed, 25 Oct 2006 12:56:03 +0000 (12:56 +0000)]
Made um.addUser/um.addGroup return um.User and um.Group instance.

13 years agoAdded __slots__ to all classes.
Frédéric Jolliton [Wed, 25 Oct 2006 12:55:03 +0000 (12:55 +0000)]
Added __slots__ to all classes.

13 years agoPoint to the online documentation.
Frédéric Jolliton [Tue, 24 Oct 2006 22:49:19 +0000 (22:49 +0000)]
Point to the online documentation.

13 years agoFixed getResult* and getRessource* sets of functions.
Frédéric Jolliton [Tue, 24 Oct 2006 16:20:18 +0000 (16:20 +0000)]
Fixed getResult* and getRessource* sets of functions.

13 years agoPut generic path in extra/gen.sh.
Frédéric Jolliton [Mon, 23 Oct 2006 17:59:06 +0000 (17:59 +0000)]
Put generic path in extra/gen.sh.

13 years agoUpdated setup metadata.
Frédéric Jolliton [Mon, 23 Oct 2006 17:58:30 +0000 (17:58 +0000)]
Updated setup metadata.

13 years agoUpdated rsbac.errors to use getErrorName.
Frédéric Jolliton [Mon, 23 Oct 2006 11:55:14 +0000 (11:55 +0000)]
Updated rsbac.errors to use getErrorName.

13 years agoCosmetic changes to some docstring and comment.
Frédéric Jolliton [Sun, 22 Oct 2006 20:23:19 +0000 (20:23 +0000)]
Cosmetic changes to some docstring and comment.

13 years agoAdded functions to ease creation of new network templates.
Frédéric Jolliton [Sun, 22 Oct 2006 20:21:54 +0000 (20:21 +0000)]
Added functions to ease creation of new network templates.

- Renamed newNetworkTemplate to createNetworkTemplate
- Added findUndefinedNetworkTemplate
- Added findUndefinedNetworkTemplates
- Added newNetworkTemplate

13 years agoTiny change for rc.Role.__repr__.
Frédéric Jolliton [Sun, 22 Oct 2006 18:41:24 +0000 (18:41 +0000)]
Tiny change for rc.Role.__repr__.

13 years agoAdded findUnnamedType{s,}, cloneType, Type.copyTo and Type.clone.
Frédéric Jolliton [Sun, 22 Oct 2006 15:54:08 +0000 (15:54 +0000)]
Added findUnnamedType{s,}, cloneType, Type.copyTo and Type.clone.

13 years agoFix attribute name in rc.Role.
Frédéric Jolliton [Sun, 22 Oct 2006 15:15:27 +0000 (15:15 +0000)]
Fix attribute name in rc.Role.

13 years agoFix TTL conversion for um.User and um.Group.
Frédéric Jolliton [Sun, 22 Oct 2006 11:02:40 +0000 (11:02 +0000)]
Fix TTL conversion for um.User and um.Group.

13 years agoAdded a comment about transaction internal use.
Frédéric Jolliton [Sat, 21 Oct 2006 23:19:38 +0000 (23:19 +0000)]
Added a comment about transaction internal use.

13 years agoChanged behavior of the "ttl" argument of the withTransaction function.
Frédéric Jolliton [Sat, 21 Oct 2006 23:03:45 +0000 (23:03 +0000)]
Changed behavior of the "ttl" argument of the withTransaction function.

13 years agoAdded "selfAcl" attribute to NetworkTemplate.
Frédéric Jolliton [Sat, 21 Oct 2006 17:41:24 +0000 (17:41 +0000)]
Added "selfAcl" attribute to NetworkTemplate.

13 years agoMade UnixSocket similar to other FD sub-types.
Frédéric Jolliton [Sat, 21 Oct 2006 17:40:44 +0000 (17:40 +0000)]
Made UnixSocket similar to other FD sub-types.

13 years agoUpdated objects.NetworkObject. Added objects.defaultNetworkObject.
Frédéric Jolliton [Sat, 21 Oct 2006 14:55:48 +0000 (14:55 +0000)]
Updated objects.NetworkObject. Added objects.defaultNetworkObject.

13 years agoAdded objects.defaultNetworkDevice.
Frédéric Jolliton [Sat, 21 Oct 2006 14:37:07 +0000 (14:37 +0000)]
Added objects.defaultNetworkDevice.

13 years agoAdded objects.default{User,Group,Scd} and "acl" attribute to SCD
Frédéric Jolliton [Sat, 21 Oct 2006 14:28:23 +0000 (14:28 +0000)]
Added objects.default{User,Group,Scd} and "acl" attribute to SCD

13 years agoAdd objects.defaultIpc and "acl" attribute to it.
Frédéric Jolliton [Sat, 21 Oct 2006 13:48:57 +0000 (13:48 +0000)]
Add objects.defaultIpc and "acl" attribute to it.

13 years agoFixed acl.clear() for objects.defaultProcess. Fixed acl.Group._id name.
Frédéric Jolliton [Sat, 21 Oct 2006 13:43:35 +0000 (13:43 +0000)]
Fixed acl.clear() for objects.defaultProcess. Fixed acl.Group._id name.

13 years agolib.g_debug must be False by default.
Frédéric Jolliton [Sat, 21 Oct 2006 13:41:34 +0000 (13:41 +0000)]
lib.g_debug must be False by default.

13 years agoAdded lib.g_withDebugCall to turn off call debug at runtime.
Frédéric Jolliton [Sat, 21 Oct 2006 13:35:12 +0000 (13:35 +0000)]
Added lib.g_withDebugCall to turn off call debug at runtime.

13 years agoAdd objects.defaultProcess and "acl" property to it
Frédéric Jolliton [Sat, 21 Oct 2006 13:19:56 +0000 (13:19 +0000)]
Add objects.defaultProcess and "acl" property to it

13 years agoInitial import
Frédéric Jolliton [Sat, 21 Oct 2006 08:28:48 +0000 (08:28 +0000)]
Initial import