aclspace.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. * END COPYRIGHT BLOCK **/
  6. #include <string.h>
  7. #include <libaccess/acl.h>
  8. #include "aclpriv.h"
  9. #include <libaccess/aclglobal.h>
  10. /* Ordered list of generic rights */
  11. char *generic_rights[7] = {
  12. "read",
  13. "write",
  14. "execute",
  15. "delete",
  16. "info",
  17. "list",
  18. NULL
  19. } ;
  20. char *http_generic[7] = {
  21. "http_get, http_head, http_trace, http_revlog, http_options, http_copy, http_getattribute, http_index, http_getproperties, http_getattributenames ",
  22. "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",
  23. "http_post",
  24. "http_delete, http_destroy, http_move",
  25. "http_head, http_trace, http_options",
  26. "http_index",
  27. NULL
  28. } ;
  29. /* Pointer to all global ACL data. This pointer is moved (atomically)
  30. when a cache flush call is made.
  31. */
  32. ACLGlobal_p ACLGlobal;
  33. ACLGlobal_p oldACLGlobal;