aclspace.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. *
  6. * License: GPL (version 3 or any later version).
  7. * See LICENSE for details.
  8. * END COPYRIGHT BLOCK **/
  9. #ifdef HAVE_CONFIG_H
  10. # include <config.h>
  11. #endif
  12. #include <string.h>
  13. #include <libaccess/acl.h>
  14. #include "aclpriv.h"
  15. #include <libaccess/aclglobal.h>
  16. /* Ordered list of generic rights */
  17. const char *generic_rights[7] = {
  18. "read",
  19. "write",
  20. "execute",
  21. "delete",
  22. "info",
  23. "list",
  24. NULL
  25. } ;
  26. const char *http_generic[7] = {
  27. "http_get, http_head, http_trace, http_revlog, http_options, http_copy, http_getattribute, http_index, http_getproperties, http_getattributenames ",
  28. "http_put, http_mkdir, http_startrev, http_stoprev, http_edit, http_post, http_save, http_setattribute, http_revadd, http_revlabel, http_lock, http_unlock, http_unedit, http_stoprev, http_startrev",
  29. "http_post",
  30. "http_delete, http_destroy, http_move",
  31. "http_head, http_trace, http_options",
  32. "http_index",
  33. NULL
  34. } ;
  35. /* Pointer to all global ACL data. This pointer is moved (atomically)
  36. when a cache flush call is made.
  37. */
  38. ACLGlobal_p ACLGlobal;
  39. ACLGlobal_p oldACLGlobal;