xrootd
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 //
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
45  XrdAccPriv_Lock = 0x004,
46  XrdAccPriv_Mkdir = 0x002, // Insert
49  XrdAccPriv_Read = 0x020,
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 
82  }
84 
85  };
86 #endif
Definition: XrdAccPrivs.hh:62
Definition: XrdAccPrivs.hh:69
Definition: XrdAccPrivs.hh:66
Definition: XrdAccPrivs.hh:45
XrdAccPrivs
Definition: XrdAccPrivs.hh:39
Definition: XrdAccPrivs.hh:70
Definition: XrdAccPrivs.hh:67
Definition: XrdAccPrivs.hh:46
Definition: XrdAccPrivs.hh:47
Definition: XrdAccPrivs.hh:64
Definition: XrdAccPrivs.hh:44
Definition: XrdAccPrivs.hh:68
Definition: XrdAccPrivs.hh:43
XrdAccPrivs nprivs
Definition: XrdAccPrivs.hh:78
Definition: XrdAccPrivs.hh:50
XrdAccPrivs pprivs
Definition: XrdAccPrivs.hh:77
Definition: XrdAccPrivs.hh:77
Definition: XrdAccPrivs.hh:53
Definition: XrdAccPrivs.hh:40
Definition: XrdAccPrivs.hh:48
Definition: XrdAccPrivs.hh:42
Definition: XrdAccPrivs.hh:41
XrdAccPrivSpec
Definition: XrdAccPrivs.hh:62
Definition: XrdAccPrivs.hh:51
Definition: XrdAccPrivs.hh:49
XrdAccPrivCaps()
Definition: XrdAccPrivs.hh:80
Definition: XrdAccPrivs.hh:39
Definition: XrdAccPrivs.hh:63
~XrdAccPrivCaps()
Definition: XrdAccPrivs.hh:83
Definition: XrdAccPrivs.hh:65
Definition: XrdAccPrivs.hh:52