diff --git a/resources/Common/Platform/Darwin/default.mk b/resources/Common/Platform/Darwin/default.mk index b195395..68c53cf 100644 --- a/resources/Common/Platform/Darwin/default.mk +++ b/resources/Common/Platform/Darwin/default.mk @@ -10,12 +10,4 @@ $(shell test -f ${2}${1} && echo -n ${2}${1} || echo ${1}) endef define permissions - setfacl -dRm m:rwX $(1) - setfacl -Rm m:rwX $(1) - setfacl -dRm u:`whoami`:rwX $(1) - setfacl -Rm u:`whoami`:rwX $(1) - setfacl -dRm u:${RUNNER}:rwX $(1) - setfacl -Rm u:${RUNNER}:rwX $(1) - setfacl -dRm u:root:rwX $(1) - setfacl -Rm u:root:rwX $(1) endef diff --git a/resources/Common/Platform/Linux/default.mk b/resources/Common/Platform/Linux/default.mk index 5a64c9f..2944497 100644 --- a/resources/Common/Platform/Linux/default.mk +++ b/resources/Common/Platform/Linux/default.mk @@ -11,12 +11,5 @@ $(shell test -f ${2}${1} && echo -n ${2}${1} || echo ${1}) endef define permissions - setfacl -dRm m:rwX $(1) - setfacl -Rm m:rwX $(1) - setfacl -dRm u:`whoami`:rwX $(1) - setfacl -Rm u:`whoami`:rwX $(1) - setfacl -dRm u:${RUNNER}:rwX $(1) - setfacl -Rm u:${RUNNER}:rwX $(1) - setfacl -dRm u:root:rwX $(1) - setfacl -Rm u:root:rwX $(1) + endef diff --git a/resources/Common/Platform/Windows/default.mk b/resources/Common/Platform/Windows/default.mk index 5d449ee..f165150 100644 --- a/resources/Common/Platform/Windows/default.mk +++ b/resources/Common/Platform/Windows/default.mk @@ -19,12 +19,4 @@ endef # TODO: review define permissions - setfacl -dRm m:rwX $(1) - setfacl -Rm m:rwX $(1) - setfacl -dRm u:`whoami`:rwX $(1) - setfacl -Rm u:`whoami`:rwX $(1) - setfacl -dRm u:${RUNNER}:rwX $(1) - setfacl -Rm u:${RUNNER}:rwX $(1) - setfacl -dRm u:root:rwX $(1) - setfacl -Rm u:root:rwX $(1) endef diff --git a/tests/functional/MakefileTestCase.php b/tests/functional/MakefileTestCase.php index afa8693..7d961d4 100644 --- a/tests/functional/MakefileTestCase.php +++ b/tests/functional/MakefileTestCase.php @@ -172,14 +172,16 @@ protected function generatePermissionsExecutionPath(array $dirs): array $commands = []; foreach ($dirs as $dir) { $commands[] = sprintf('mkdir -p %1$s', $dir); - $commands[] = sprintf('setfacl -dRm m:rwX %1$s', $dir); - $commands[] = sprintf('setfacl -Rm m:rwX %1$s', $dir); - $commands[] = sprintf('setfacl -dRm u:`whoami`:rwX %1$s', $dir); - $commands[] = sprintf('setfacl -Rm u:`whoami`:rwX %1$s', $dir); - $commands[] = sprintf('setfacl -dRm u:999:rwX %1$s', $dir); - $commands[] = sprintf('setfacl -Rm u:999:rwX %1$s', $dir); - $commands[] = sprintf('setfacl -dRm u:root:rwX %1$s', $dir); - $commands[] = sprintf('setfacl -Rm u:root:rwX %1$s', $dir); + if (\PHP_OS_FAMILY === 'linux') { + $commands[] = sprintf('setfacl -dRm m:rwX %1$s', $dir); + $commands[] = sprintf('setfacl -Rm m:rwX %1$s', $dir); + $commands[] = sprintf('setfacl -dRm u:`whoami`:rwX %1$s', $dir); + $commands[] = sprintf('setfacl -Rm u:`whoami`:rwX %1$s', $dir); + $commands[] = sprintf('setfacl -dRm u:999:rwX %1$s', $dir); + $commands[] = sprintf('setfacl -Rm u:999:rwX %1$s', $dir); + $commands[] = sprintf('setfacl -dRm u:root:rwX %1$s', $dir); + $commands[] = sprintf('setfacl -Rm u:root:rwX %1$s', $dir); + } } return $commands;