This file is indexed.

/usr/include/afs/afs_clientAdmin.h is in libopenafs-dev 1.8.0~pre5-1.

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
/*
 * 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_CLIENT_ADMIN_H
#define OPENAFS_CLIENT_ADMIN_H

#include <afs/afs_Admin.h>

#ifdef DELETE
#undef DELETE
#endif

typedef enum { READ_ONLY, READ_WRITE } vol_type_t, *vol_type_p;
typedef enum { CHECK_VOLUME, DONT_CHECK_VOLUME } vol_check_t, *vol_check_p;

typedef enum { READ, NO_READ } acl_read_t, *acl_read_p;
typedef enum { WRITE, NO_WRITE } acl_write_t, *acl_write_p;
typedef enum { LOOKUP, NO_LOOKUP } acl_lookup_t, *acl_lookup_p;
typedef enum { DELETE, NO_DELETE } acl_delete_t, *acl_delete_p;
typedef enum { INSERT, NO_INSERT } acl_insert_t, *acl_insert_p;
typedef enum { LOCK, NO_LOCK } acl_lock_t, *acl_lock_p;
typedef enum { ADMIN, NO_ADMIN } acl_admin_t, *acl_admin_p;

typedef struct acl {
    acl_read_t read;
    acl_write_t write;
    acl_lookup_t lookup;
    acl_delete_t del;
    acl_insert_t insert;
    acl_lock_t lock;
    acl_admin_t admin;
} acl_t, *acl_p;

#define AFS_MAX_SERVER_NAME_LEN   128
#define AFS_MAX_SERVER_ADDRESS     16

typedef enum {
    DATABASE_SERVER = 0x1,
    FILE_SERVER = 0x2
} afs_server_type_t, *afs_server_type_p;

typedef enum {
    AFS_BOSSERVER,
    AFS_FILESERVER,
    AFS_KASERVER,
    AFS_PTSERVER,
    AFS_VOLSERVER,
    AFS_VLSERVER,
    AFS_CLIENT
} afs_stat_source_t, *afs_stat_source_p;

typedef struct {
    char serverName[AFS_MAX_SERVER_NAME_LEN];
    afs_server_type_t serverType;
    int serverAddress[AFS_MAX_SERVER_ADDRESS];
} afs_serverEntry_t, *afs_serverEntry_p;

extern int ADMINAPI afsclient_TokenGetExisting(const char *cellName,
					       void **tokenHandle,
					       afs_status_p st);

extern int ADMINAPI afsclient_TokenSet(const void *tokenHandle,
				       afs_status_p st);

extern int ADMINAPI afsclient_TokenGetNew(const char *cellName,
					  const char *principal,
					  const char *password,
					  void **tokenHandle,
					  afs_status_p st);

extern int ADMINAPI afsclient_TokenClose(const void *tokenHandle,
					 afs_status_p st);

extern int ADMINAPI afsclient_TokenQuery(void *tokenHandle,
					 unsigned long *expirationDateP,
					 char *principal, char *instance,
					 char *cell, int *hasKasTokens,
					 afs_status_p st);

extern int ADMINAPI afsclient_CellOpen(const char *cellName,
				       const void *tokenHandle,
				       void **cellHandleP, afs_status_p st);

extern int ADMINAPI afsclient_NullCellOpen(void **cellHandleP,
					   afs_status_p st);

extern int ADMINAPI afsclient_CellClose(const void *cellHandle,
					afs_status_p st);

extern int ADMINAPI afsclient_CellNameGet(const void *cellHandle,
					  const char **cellNameP,
					  afs_status_p st);

extern int ADMINAPI afsclient_LocalCellGet(char *cellName, afs_status_p st);

extern int ADMINAPI afsclient_MountPointCreate(const void *cellHandle,
					       const char *directory,
					       const char *volumeName,
					       vol_type_t volType,
					       vol_check_t volCheck,
					       afs_status_p st);

extern int ADMINAPI afsclient_ACLEntryAdd(const char *directory,
					  const char *user, const acl_p acl,
					  afs_status_p st);

extern int ADMINAPI afsclient_Init(afs_status_p st);

extern int ADMINAPI afsclient_AFSServerGet(const void *cellHandle,
					   const char *serverName,
					   afs_serverEntry_p serverEntryP,
					   afs_status_p st);

extern int ADMINAPI afsclient_AFSServerGetBegin(const void *cellHandle,
						void **iterationIdP,
						afs_status_p st);

extern int ADMINAPI afsclient_AFSServerGetNext(void *iterationId,
					       afs_serverEntry_p serverEntryP,
					       afs_status_p st);

extern int ADMINAPI afsclient_AFSServerGetDone(void *iterationId,
					       afs_status_p st);

extern int ADMINAPI afsclient_RPCStatOpen(const void *cellHandle,
					  const char *serverName,
					  afs_stat_source_t type,
					  struct rx_connection
					  **rpcStatHandleP, afs_status_p st);

extern int ADMINAPI afsclient_RPCStatOpenPort(const void *cellHandle,
					      const char *serverName,
                                              const int serverPort,
					      struct rx_connection
					      **rpcStatHandleP,
					      afs_status_p st);

extern int ADMINAPI afsclient_RPCStatClose(struct rx_connection
					   *rpcStatHandle, afs_status_p st);

extern int ADMINAPI afsclient_CMStatOpen(const void *cellHandle,
					 const char *serverName,
					 struct rx_connection
					 **rpcStatHandleP, afs_status_p st);

extern int ADMINAPI afsclient_CMStatOpenPort(const void *cellHandle,
					     const char *serverName,
                                             const int serverPort,
					     struct rx_connection
					     **rpcStatHandleP,
					     afs_status_p st);

extern int ADMINAPI afsclient_CMStatClose(struct rx_connection *rpcStatHandle,
					  afs_status_p st);

extern int ADMINAPI afsclient_RXDebugOpen(const char *serverName,
					  afs_stat_source_t type,
					  rxdebugHandle_p * rxdebugHandleP,
					  afs_status_p st);

extern int ADMINAPI afsclient_RXDebugOpenPort(const char *serverName,
                                              const int serverPort,
					      rxdebugHandle_p *
					      rxdebugHandleP,
					      afs_status_p st);

extern int ADMINAPI afsclient_RXDebugClose(rxdebugHandle_p rxdebugHandle,
					   afs_status_p st);

#endif /* OPENAFS_CLIENT_ADMIN_H */