Remove write permissions on scripts
Accidental modifications of scripts/programs are more likely if the owner has write permissions on the file. In addition, they are not required and thus can be removed.
This commit is contained in:
parent
cfa599aea8
commit
34aefa55c8
@ -98,7 +98,9 @@ function(install_script target component)
|
||||
list(FIND TARGET_COMPONENT ${component} BUILD_COMPONENT)
|
||||
|
||||
if(BUILD_COMPONENT GREATER -1 OR BUILD_ALL GREATER -1)
|
||||
install(PROGRAMS ${target} DESTINATION ${MAXSCALE_BINDIR} COMPONENT "${component}")
|
||||
install(PROGRAMS ${target} DESTINATION ${MAXSCALE_BINDIR}
|
||||
PERMISSIONS OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE OWNER_READ GROUP_READ WORLD_READ
|
||||
COMPONENT "${component}")
|
||||
endif()
|
||||
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user