apache: add interface for list dir perms on httpd content

This is needed by some webservers such as nginx when autoindexing is
enabled.

Signed-off-by: Kenton Groombridge <me@concord.sh>
This commit is contained in:
Kenton Groombridge 2021-01-27 15:39:51 -05:00
parent c521270688
commit 4e15f5dfe4
No known key found for this signature in database
GPG Key ID: 16DD27345D9905A7
1 changed files with 18 additions and 0 deletions

View File

@ -520,6 +520,24 @@ interface(`apache_search_all_content',`
allow $1 httpdcontent:dir search_dir_perms;
')
#######################################
## <summary>
## List all apache content.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`apache_list_all_content',`
gen_require(`
attribute httpdcontent;
')
allow $1 httpdcontent:dir list_dir_perms;
')
########################################
## <summary>
## Create, read, write, and delete