587 |
587 |
588 #endif |
588 #endif |
589 |
589 |
590 #ifdef BSD |
590 #ifdef BSD |
591 |
591 |
592 int fs_acl_check(SysACL *acl, User *user, char *path, uint32_t access_mask) { |
592 int fs_acl_check(SysACL *acl, User *user, const char *path, uint32_t access_mask) { |
593 return 1; |
593 return 1; |
594 } |
594 } |
595 |
595 |
596 int fs_acl_check_fd(SysACL *acl, User *user, int fd, uint32_t access_mask) { |
596 int fs_acl_check_fd(SysACL *acl, User *user, int fd, uint32_t access_mask) { |
597 return 1; |
597 return 1; |
606 |
606 |
607 #ifdef LINUX |
607 #ifdef LINUX |
608 |
608 |
609 #include <sys/fsuid.h> |
609 #include <sys/fsuid.h> |
610 |
610 |
611 int fs_acl_check(SysACL *acl, User *user, char *path, uint32_t access_mask) { |
611 int fs_acl_check(SysACL *acl, User *user, const char *path, uint32_t access_mask) { |
612 struct passwd *ws_pw = conf_getglobals()->Vuserpw; |
612 struct passwd *ws_pw = conf_getglobals()->Vuserpw; |
613 if(!ws_pw) { |
613 if(!ws_pw) { |
614 log_ereport(LOG_FAILURE, "fs_acl_check: unknown webserver uid/gid"); |
614 log_ereport(LOG_FAILURE, "fs_acl_check: unknown webserver uid/gid"); |
615 return 1; |
615 return 1; |
616 } |
616 } |