xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdAcc
XrdAccPrivs.hh
Go to the documentation of this file.
1
#ifndef __ACC_PRIVS__
2
#define __ACC_PRIVS__
3
/******************************************************************************/
4
/* */
5
/* X r d A c c P r i v s . h h */
6
/* */
7
/* (c) 2003 by the Board of Trustees of the Leland Stanford, Jr., University */
8
/* All Rights Reserved */
9
/* Produced by Andrew Hanushevsky for Stanford University under contract */
10
/* DE-AC02-76-SFO0515 with the Department of Energy */
11
/* */
12
/* This file is part of the XRootD software suite. */
13
/* */
14
/* XRootD is free software: you can redistribute it and/or modify it under */
15
/* the terms of the GNU Lesser General Public License as published by the */
16
/* Free Software Foundation, either version 3 of the License, or (at your */
17
/* option) any later version. */
18
/* */
19
/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
20
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
21
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
22
/* License for more details. */
23
/* */
24
/* You should have received a copy of the GNU Lesser General Public License */
25
/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
26
/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
27
/* */
28
/* The copyright holder's institutional names and contributor's names may not */
29
/* be used to endorse or promote products derived from this software without */
30
/* specific prior written permission of the institution or contributor. */
31
/******************************************************************************/
32
33
/******************************************************************************/
34
/* X r d A c c P r i v s */
35
/******************************************************************************/
36
37
// Recognized privileges
38
//
39
enum
XrdAccPrivs
{
XrdAccPriv_All
= 0x07f,
40
XrdAccPriv_Chmod
= 0x063,
// Insert + Open r/w + Delete
41
XrdAccPriv_Chown
= 0x063,
// Insert + Open r/w + Delete
42
XrdAccPriv_Create
= 0x062,
// Insert + Open r/w
43
XrdAccPriv_Delete
= 0x001,
44
XrdAccPriv_Insert
= 0x002,
45
XrdAccPriv_Lock
= 0x004,
46
XrdAccPriv_Mkdir
= 0x002,
// Insert
47
XrdAccPriv_Lookup
= 0x008,
48
XrdAccPriv_Rename
= 0x010,
49
XrdAccPriv_Read
= 0x020,
50
XrdAccPriv_Readdir
= 0x020,
51
XrdAccPriv_Write
= 0x040,
52
XrdAccPriv_Update
= 0x060,
53
XrdAccPriv_None
= 0x000
54
};
55
56
/******************************************************************************/
57
/* X r d A c c P r i v S p e c */
58
/******************************************************************************/
59
60
// The following are the 1-letter privileges that we support.
61
//
62
enum
XrdAccPrivSpec
{
All_Priv
=
'a'
,
63
Delete_Priv
=
'd'
,
64
Insert_Priv
=
'i'
,
65
Lock_Priv
=
'k'
,
66
Lookup_Priv
=
'l'
,
67
Rename_Priv
=
'n'
,
68
Read_Priv
=
'r'
,
69
Write_Priv
=
'w'
,
70
Neg_Priv
=
'-'
71
};
72
73
/******************************************************************************/
74
/* X r d A c c P r i v C a p s */
75
/******************************************************************************/
76
77
struct
XrdAccPrivCaps
{
XrdAccPrivs
pprivs
;
// Positive privileges
78
XrdAccPrivs
nprivs
;
// Negative privileges
79
80
XrdAccPrivCaps
() {
pprivs
=
XrdAccPriv_None
;
81
nprivs
=
XrdAccPriv_None
;
82
}
83
~XrdAccPrivCaps
() {}
84
85
};
86
#endif
Generated by
1.8.3.1