Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / uss / uss_acl.h
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10 /*
11 * Interface to the ACL and quota-related operations used by
12 * the AFS user account facility.
13 */
14
15 #ifndef _USS_ACL_H_
16 #define _USS_ACL_H_ 1
17 /*
18 * ------------------------ Exported functions -----------------------
19 */
20 extern afs_int32 uss_acl_SetAccess(char *a_access, int a_clear,
21 int a_negative);
22 /*
23 * Summary:
24 * Set the value of the given ACL.
25 *
26 * Args:
27 * a_access : Ptr to the pathname & ACL to set.
28 * a_clear : Should we clear out the ACL first?
29 * a_negative : Set the negative list?
30 *
31 * Returns:
32 * 0 if everything went well,
33 * Lower-level code otherwise.
34 */
35
36 extern afs_int32 uss_acl_SetDiskQuota(char *a_path, int a_q);
37 /*
38 * Summary:
39 * Set the initial disk quota for a user.
40 *
41 * Args:
42 * a_path : Pathname for volume mountpoint.
43 * a_q : Quota value.
44 *
45 * Returns:
46 * 0 if everything went well,
47 * Lower-level code otherwise.
48 */
49
50 extern afs_int32 uss_acl_CleanUp(void);
51 /*
52 * Summary:
53 * Remove the uss_AccountCreator from the various ACLs s/he
54 * had to wiggle into in order to carry out the account
55 * manipulation.
56 *
57 * Args:
58 * None.
59 *
60 * Returns:
61 * 0 (always)
62 */
63
64 #endif /* _USS_ACL_H_ */