Module posix1e :: Class Entry
[hide private]
[frames] | no frames]

Class Entry

object --+
         |
        Entry

Type which represents an entry in an ACL.

The type exists only if the OS has full support for POSIX.1e Can be created either by:

>>> e = posix1e.Entry(myACL) # this creates a new entry in the ACL
>>> e = myACL.append() # another way for doing the same thing

or by:

>>> for entry in myACL:
...     print entry

Note that the Entry keeps a reference to its ACL, so even if you delete the ACL, it won't be cleaned up and will continue to exist until its Entry(ies) will be deleted.

Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__str__(x)
str(x)
 
copy(...)
Copy an ACL entry.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]
  parent
The parent ACL of this entry
  permset
The permission set of this ACL entry
  qualifier
The qualifier of the current entry
  tag_type
The tag type of the current entry

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__str__(x)
(Informal representation operator)

 

str(x)

Overrides: object.__str__

copy(...)

 

Copy an ACL entry.

This method sets all the parameters to those of another entry, even one of another's ACL Parameters:

  • src, instance of type Entry

Property Details [hide private]

qualifier

The qualifier of the current entry

If the tag type is ACL_USER, this should be a user id. If the tag type if ACL_GROUP, this should be a group id. Else, it doesn't matter.

tag_type

The tag type of the current entry

This is one of:

  • ACL_UNDEFINED_TAG
  • ACL_USER_OBJ
  • ACL_USER
  • ACL_GROUP_OBJ
  • ACL_GROUP
  • ACL_MASK
  • ACL_OTHER