xrootd
Loading...
Searching...
No Matches
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
46 XrdAccPriv_Mkdir = 0x002, // Insert
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//
65 Lock_Priv = 'k',
68 Read_Priv = 'r',
70 Neg_Priv = '-'
71 };
72
73/******************************************************************************/
74/* X r d A c c P r i v C a p s */
75/******************************************************************************/
76
77struct XrdAccPrivCaps {XrdAccPrivs pprivs; // Positive privileges
78 XrdAccPrivs nprivs; // Negative privileges
79
84
85 };
86#endif
XrdAccPrivSpec
Definition XrdAccPrivs.hh:62
@ Delete_Priv
Definition XrdAccPrivs.hh:63
@ Rename_Priv
Definition XrdAccPrivs.hh:67
@ Read_Priv
Definition XrdAccPrivs.hh:68
@ Neg_Priv
Definition XrdAccPrivs.hh:70
@ Insert_Priv
Definition XrdAccPrivs.hh:64
@ Lookup_Priv
Definition XrdAccPrivs.hh:66
@ Write_Priv
Definition XrdAccPrivs.hh:69
@ All_Priv
Definition XrdAccPrivs.hh:62
@ Lock_Priv
Definition XrdAccPrivs.hh:65
XrdAccPrivs
Definition XrdAccPrivs.hh:39
@ XrdAccPriv_Mkdir
Definition XrdAccPrivs.hh:46
@ XrdAccPriv_Chown
Definition XrdAccPrivs.hh:41
@ XrdAccPriv_Insert
Definition XrdAccPrivs.hh:44
@ XrdAccPriv_Lookup
Definition XrdAccPrivs.hh:47
@ XrdAccPriv_Rename
Definition XrdAccPrivs.hh:48
@ XrdAccPriv_Update
Definition XrdAccPrivs.hh:52
@ XrdAccPriv_All
Definition XrdAccPrivs.hh:39
@ XrdAccPriv_Read
Definition XrdAccPrivs.hh:49
@ XrdAccPriv_Lock
Definition XrdAccPrivs.hh:45
@ XrdAccPriv_None
Definition XrdAccPrivs.hh:53
@ XrdAccPriv_Write
Definition XrdAccPrivs.hh:51
@ XrdAccPriv_Delete
Definition XrdAccPrivs.hh:43
@ XrdAccPriv_Create
Definition XrdAccPrivs.hh:42
@ XrdAccPriv_Readdir
Definition XrdAccPrivs.hh:50
@ XrdAccPriv_Chmod
Definition XrdAccPrivs.hh:40
Definition XrdAccPrivs.hh:77
XrdAccPrivCaps()
Definition XrdAccPrivs.hh:80
XrdAccPrivs nprivs
Definition XrdAccPrivs.hh:78
~XrdAccPrivCaps()
Definition XrdAccPrivs.hh:83
XrdAccPrivs pprivs
Definition XrdAccPrivs.hh:77