]>
git.ipfire.org Git - people/stevee/pakfire.git/blob - tools/quality-agent.d/001-unsafe-files
93a5dc8d3b05358a0b16690536298d91193ed9f5
3 . $
(dirname ${0})/qa-include
5 DESC
="Searching for world-writeable files..."
10 local files
=$
(find ${BUILDROOT} -type f
-perm -2 2>/dev
/null
)
11 if [ -n "${files}" ]; then
12 log ERROR
" QA Security Notice:"
13 log ERROR
" - The folloing files will be world writable."
14 log ERROR
" - This may or may not be a security problem, most of the time it is one."
15 log ERROR
" - Please double check that these files really need a world writeable bit and file bugs accordingly."
21 files
=$
(find ${BUILDROOT} -type f
'(' -perm -2002 -o -perm -4002 ')')
22 if [ -n "${files}" ]; then
23 log ERROR
" QA Notice: Unsafe files detected (set*id and world writable)"