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:
parent
c521270688
commit
4e15f5dfe4
|
@ -520,6 +520,24 @@ interface(`apache_search_all_content',`
|
||||||
allow $1 httpdcontent:dir search_dir_perms;
|
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>
|
## <summary>
|
||||||
## Create, read, write, and delete
|
## Create, read, write, and delete
|
||||||
|
|
Loading…
Reference in New Issue