/[pdpsoft]/trunk/grid-mw-security/cgul/fileutil/fileutil.h
ViewVC logotype

Diff of /trunk/grid-mw-security/cgul/fileutil/fileutil.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1475 by msalle, Mon Feb 8 15:00:23 2010 UTC revision 1476 by msalle, Mon Feb 8 16:11:46 2010 UTC
# Line 22  int cgul_filelock(int fd, int lock_type, Line 22  int cgul_filelock(int fd, int lock_type,
22  int cgul_read_proxy(const char *path, int lock_type, char **proxy, gid_t read_gid);  int cgul_read_proxy(const char *path, int lock_type, char **proxy, gid_t read_gid);
23    
24  /**  /**
25     * Used to read in a config file, the path is checked to be trusted using
26     * safe_is_path_trusted_r() from the safefile library of J. Kupsch.
27     * Upon successful completion config contains the contents of path
28     * Return values:
29     *  0: succes
30     *  -1: I/O error
31     *  -2: privilege-drop error
32     *  -3: permission error (untrusted path)
33     *  -4: memory error
34     *  -5: unknown or safefile error
35     */
36    int cgul_read_config(const char *path, char **config, gid_t read_gid);
37    
38    /**
39   * Writes proxy from *proxy to *path using given lock_type (see cgul_filelock).   * Writes proxy from *proxy to *path using given lock_type (see cgul_filelock).
40   * It tries to drop privilege to given write_uid, gid_t write_gid. When either   * It tries to drop privilege to given write_uid, gid_t write_gid. When either
41   * of them is -1, that one is ignored.   * of them is -1, that one is ignored.

Legend:
Removed from v.1475  
changed lines
  Added in v.1476

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28