mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Work around a very obscure but potentially severe security problem.
The user can have the variables OWNCLOUD_USERNAME and OWNCLOUD_GROUPNAME defined in his environment to point to his own username and groupname. Suggested by: Adam McDougall
This commit is contained in:
parent
59721d841a
commit
fc1783f996
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347952
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= owncloud
|
||||
PORTVERSION= 6.0.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://download.owncloud.org/community/
|
||||
|
||||
@ -19,9 +20,14 @@ USE_PHP= bz2 ctype curl dom exif fileinfo filter gd hash iconv json \
|
||||
xsl wddx zip zlib
|
||||
WANT_PHP_WEB= yes
|
||||
|
||||
OWNCLOUD_USERNAME?= www
|
||||
OWNCLOUD_GROUPNAME?= ${OWNCLOUD_USERNAME}
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
NO_BUILD= yes
|
||||
SUB_FILES= pkg-message
|
||||
PLIST_SUB= OWNCLOUD_USERNAME=${OWNCLOUD_USERNAME} \
|
||||
OWNCLOUD_GROUPNAME=${OWNCLOUD_GROUPNAME}
|
||||
|
||||
OPTIONS_MULTI= DB
|
||||
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
|
||||
|
@ -1,5 +1,5 @@
|
||||
@owner www
|
||||
@group www
|
||||
@owner %%OWNCLOUD_USERNAME%%
|
||||
@group %%OWNCLOUD_GROUPNAME%%
|
||||
%%WWWDIR%%/.htaccess
|
||||
%%WWWDIR%%/3rdparty/Archive/Tar.php
|
||||
%%WWWDIR%%/3rdparty/Console/Getopt.php
|
||||
|
Loading…
Reference in New Issue
Block a user