(file) Return to Policy.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Executor

 1 kumpf 1.2 /*
 2           //%2006////////////////////////////////////////////////////////////////////////
 3           //
 4           // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 5           // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
 6           // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
 7           // IBM Corp.; EMC Corporation, The Open Group.
 8           // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
 9           // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
10           // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
11           // EMC Corporation; VERITAS Software Corporation; The Open Group.
12           // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
13           // EMC Corporation; Symantec Corporation; The Open Group.
14           //
15           // Permission is hereby granted, free of charge, to any person obtaining a copy
16           // of this software and associated documentation files (the "Software"), to
17           // deal in the Software without restriction, including without limitation the
18           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
19           // sell copies of the Software, and to permit persons to whom the Software is
20           // furnished to do so, subject to the following conditions:
21           // 
22 kumpf 1.2 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
23           // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
24           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
25           // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
26           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
27           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28           // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30           //
31           //%/////////////////////////////////////////////////////////////////////////////
32           */
33           
34           #ifndef _Executor_Policy_h
35           #define _Executor_Policy_h
36           
37 kumpf 1.3 #include <stdlib.h>
38           #include "Defines.h"
39           #include "Messages.h"
40           
41           /*
42           **==============================================================================
43           **
44           ** Policy
45           **
46           **     This structure defines a policy rule.
47           **
48           **==============================================================================
49           */
50           
51           struct Policy
52           {
53               enum ExecutorMessageCode messageCode;
54               const char* arg1;
55               const char* arg2;
56 kumpf 1.5     unsigned long flags;
57 kumpf 1.3 };
58           
59           EXECUTOR_LINKAGE
60           int CheckPolicy(
61               const struct Policy* policyTable,
62               size_t policyTableSize,
63               enum ExecutorMessageCode messageCode,
64               const char* arg1,
65 kumpf 1.5     const char* arg2,
66               unsigned long* flags);
67 kumpf 1.3 
68           EXECUTOR_LINKAGE
69 kumpf 1.5 int CheckOpenFilePolicy(const char* path, int mode, unsigned long* flags);
70 kumpf 1.2 
71 kumpf 1.3 EXECUTOR_LINKAGE
72 kumpf 1.2 int CheckRemoveFilePolicy(const char* path);
73           
74 kumpf 1.3 EXECUTOR_LINKAGE
75 kumpf 1.2 int CheckRenameFilePolicy(const char* oldPath, const char* newPath);
76           
77 kumpf 1.3 EXECUTOR_LINKAGE
78 kumpf 1.4 void DumpPolicyHelper(
79               FILE* outputStream,
80               const struct Policy* policyTable,
81               size_t policyTableSize,
82               int expandMacros);
83           
84           EXECUTOR_LINKAGE
85           void DumpPolicy(FILE* outputStream, int expandMacros);
86 kumpf 1.2 
87           #endif /* _Executor_Policy_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2