Closed f-galland closed 5 months ago
Defining file attributes through the %attr
directive under the %files
section of the wazuh-indexer.rpm.spec
file caused a number of File listed twice
warnings when running the assemble.sh
script.
After considering various alternatives, I ended up putting together a list of files with find
, and cropping out the few files that needed special permissions off of it, and then declaring those with %attr
under %files
.
If more files need non 640
permissions, they can be appended after wazuh-indexer.rpm.spec
's line 104
.
The list of exclussions was put together by means of set -- "$@" "$FILENAME"
because the %install
phase uses the minimalistic dash shell.
.deb
package file permissions:
find {/usr/share/wazuh-indexer,/etc/wazuh-indexer,/var/log/wazuh-indexer} -printf "%m %h/%f\n" | sort -n
.rpm
package file permissions:
find {/usr/share/wazuh-indexer,/etc/wazuh-indexer,/var/log/wazuh-indexer} -printf "%m %h/%f\n" | sort -n
Description
This PR fixes file permissions in installed packages.
Issues Resolved
Resolves #124
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.