/usr/include/afs/afs_ptsAdmin.h is in libopenafs-dev 1.6.9-2+deb8u7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | /*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
#ifndef OPENAFS_PTS_ADMIN_H
#define OPENAFS_PTS_ADMIN_H
#include <afs/param.h>
#include <afs/afs_Admin.h>
#define PTS_MAX_NAME_LEN 64 /* must equal PR_MAXNAMELEN */
#define PTS_MAX_GROUPS 5000 /* must equal PR_MAXGROUPS */
typedef enum {
PTS_USER_OWNER_ACCESS,
PTS_USER_ANYUSER_ACCESS
} pts_userAccess_t, *pts_userAccess_p;
typedef enum {
PTS_GROUP_OWNER_ACCESS = 10,
PTS_GROUP_ACCESS,
PTS_GROUP_ANYUSER_ACCESS
} pts_groupAccess_t, *pts_groupAccess_p;
typedef struct pts_UserEntry {
int groupCreationQuota;
int groupMembershipCount;
int nameUid;
int ownerUid;
int creatorUid;
pts_userAccess_t listStatus;
pts_userAccess_t listGroupsOwned;
pts_userAccess_t listMembership;
char name[PTS_MAX_NAME_LEN];
char owner[PTS_MAX_NAME_LEN];
char creator[PTS_MAX_NAME_LEN];
} pts_UserEntry_t, *pts_UserEntry_p;
typedef enum {
PTS_USER_UPDATE_GROUP_CREATE_QUOTA = 0x1,
PTS_USER_UPDATE_PERMISSIONS = 0x2
} pts_UserUpdateFlag_t, *pts_UserUpdateFlag_p;
typedef struct pts_UserUpdateEntry {
pts_UserUpdateFlag_t flag;
int groupCreationQuota;
pts_userAccess_t listStatus;
pts_userAccess_t listGroupsOwned;
pts_userAccess_t listMembership;
} pts_UserUpdateEntry_t, *pts_UserUpdateEntry_p;
typedef struct pts_GroupEntry {
int membershipCount;
int nameUid;
int ownerUid;
int creatorUid;
pts_groupAccess_t listStatus;
pts_groupAccess_t listGroupsOwned;
pts_groupAccess_t listMembership;
pts_groupAccess_t listAdd;
pts_groupAccess_t listDelete;
char name[PTS_MAX_NAME_LEN];
char owner[PTS_MAX_NAME_LEN];
char creator[PTS_MAX_NAME_LEN];
} pts_GroupEntry_t, *pts_GroupEntry_p;
typedef struct pts_GroupUpdateEntry {
pts_groupAccess_t listStatus;
pts_groupAccess_t listGroupsOwned;
pts_groupAccess_t listMembership;
pts_groupAccess_t listAdd;
pts_groupAccess_t listDelete;
} pts_GroupUpdateEntry_t, *pts_GroupUpdateEntry_p;
extern int ADMINAPI pts_GroupMemberAdd(const void *cellHandle,
const char *userName,
const char *groupName,
afs_status_p st);
extern int ADMINAPI pts_GroupOwnerChange(const void *cellHandle,
const char *targetGroup,
const char *newOwner,
afs_status_p st);
extern int ADMINAPI pts_GroupCreate(const void *cellHandle,
char *newGroup,
char *newOwner, int *newGroupId,
afs_status_p st);
extern int ADMINAPI pts_GroupGet(const void *cellHandle,
const char *groupName,
pts_GroupEntry_p groupP, afs_status_p st);
extern int ADMINAPI pts_GroupDelete(const void *cellHandle,
const char *groupName, afs_status_p st);
extern int ADMINAPI pts_GroupMaxGet(const void *cellHandle, int *maxGroupId,
afs_status_p st);
extern int ADMINAPI pts_GroupMaxSet(const void *cellHandle, int maxGroupId,
afs_status_p st);
extern int ADMINAPI pts_GroupMemberListBegin(const void *cellHandle,
const char *groupName,
void **iterationIdP,
afs_status_p st);
extern int ADMINAPI pts_GroupMemberListNext(const void *iterationId,
char *memberName,
afs_status_p st);
extern int ADMINAPI pts_GroupMemberListDone(const void *iterationId,
afs_status_p st);
extern int ADMINAPI pts_GroupMemberRemove(const void *cellHandle,
const char *userName,
const char *groupName,
afs_status_p st);
extern int ADMINAPI pts_GroupRename(const void *cellHandle,
const char *oldName, char *newName,
afs_status_p st);
extern int ADMINAPI pts_GroupModify(const void *cellHandle,
const char *groupName,
const pts_GroupUpdateEntry_p newEntryP,
afs_status_p st);
extern int ADMINAPI pts_UserCreate(const void *cellHandle,
char *userName, int *newUserId,
afs_status_p st);
extern int ADMINAPI pts_UserDelete(const void *cellHandle,
const char *userName, afs_status_p st);
extern int ADMINAPI pts_UserGet(const void *cellHandle, const char *userName,
pts_UserEntry_p userP, afs_status_p st);
extern int ADMINAPI pts_UserRename(const void *cellHandle,
const char *oldName, char *newName,
afs_status_p st);
extern int ADMINAPI pts_UserModify(const void *cellHandle,
const char *userName,
const pts_UserUpdateEntry_p newEntryP,
afs_status_p st);
extern int ADMINAPI pts_UserMaxGet(const void *cellHandle, int *maxUserId,
afs_status_p st);
extern int ADMINAPI pts_UserMaxSet(const void *cellHandle, int maxUserId,
afs_status_p st);
extern int ADMINAPI pts_UserMemberListBegin(const void *cellHandle,
const char *userName,
void **iterationIdP,
afs_status_p st);
extern int ADMINAPI pts_UserMemberListNext(const void *iterationId,
char *userName, afs_status_p st);
extern int ADMINAPI pts_UserMemberListDone(const void *iterationId,
afs_status_p st);
extern int ADMINAPI pts_OwnedGroupListBegin(const void *cellHandle,
const char *userName,
void **iterationIdP,
afs_status_p st);
extern int ADMINAPI pts_OwnedGroupListNext(const void *iterationId,
char *groupName, afs_status_p st);
extern int ADMINAPI pts_OwnedGroupListDone(const void *iterationId,
afs_status_p st);
extern int ADMINAPI pts_UserListBegin(const void *cellHandle,
void **iterationIdP, afs_status_p st);
extern int ADMINAPI pts_UserListNext(const void *iterationId, char *userName,
afs_status_p st);
extern int ADMINAPI pts_UserListDone(const void *iterationId,
afs_status_p st);
extern int ADMINAPI pts_GroupListBegin(const void *cellHandle,
void **iterationIdP, afs_status_p st);
extern int ADMINAPI pts_GroupListNext(const void *iterationId,
char *groupName, afs_status_p st);
extern int ADMINAPI pts_GroupListDone(const void *iterationId,
afs_status_p st);
#endif /* OPENAFS_PTS_ADMIN_H */
|