Index of the checkperms module
-
m
paste.script.checkperms
...
- This is a module to check the filesystem for the presence and
permissions of certain files. It can also be used to correct the
permissions (but not existance) of those files.
-
a
exe_bits
...
-
a
exe_mask
...
-
a
full_mask
...
-
a
modes
...
-
C
PermissionSpec
...
- Represents a set of specifications for permissions.
-
f
calc_mode_diff
...
- Gives the difference between the actual mode of the file and the
given mode. If keep_exe is true, then if the mode doesn't
include any executable information the executable information will
simply be ignored. High bits are also always ignored (except
suid/sgid and sticky bit).
-
f
calc_ownership_spec
...
- Calculates what a string spec means, returning (uid, username,
gid, groupname), where there can be None values meaning no
preference.
-
f
calc_set_mode
...
- Calculates the new mode given the current node cur_mode and
the mode spec mode and if keep_exe is true then also keep
the executable bits in cur_mode if mode has no executable
bits in it. Return the new mode.
-
f
mode_diff
...
- Returns the differences calculated using calc_mode_diff
-
f
ownership_diff
...
- Return a list of differences between the ownership of filename
and the spec given.
-
f
read_perm_spec
...
- Reads a spec like 'rw-r--r--' into a octal number suitable for
chmod. That is characters in groups of three -- first group is
user, second for group, third for other (all other people). The
characters are r (read), w (write), and x (executable), though the
executable can also be s (sticky). Files in sticky directories
get the directories permission setting.
-
f
set_mode
...
- Sets the mode on filename using calc_set_mode
-
f
set_ownership
...
- Set the ownership of filename given the spec.