From: Zac Medico Date: Wed, 21 Mar 2012 07:40:21 +0000 (-0700) Subject: Bug #361759: QA check for /etc/udev/rules.d X-Git-Tag: v2.2.0_alpha94~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1ac859dfea03701f02dcd25ba3b91fb17cf520cf;p=portage.git Bug #361759: QA check for /etc/udev/rules.d --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index d2de0a709..b08389714 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -258,6 +258,18 @@ install_qa_check() { eqawarn "$f" fi + if [[ -d ${ED}/etc/udev/rules.d ]] ; then + f= + for x in $(ls "${ED}/etc/udev/rules.d") ; do + f+=" etc/udev/rules.d/$x\n" + done + if [[ -n $f ]] ; then + eqawarn "QA Notice: udev rules should be installed in /lib/udev/rules.d:" + eqawarn + eqawarn "$f" + fi + fi + # Now we look for all world writable files. local unsafe_files=$(find "${ED}" -type f -perm -2 | sed -e "s:^${ED}:- :") if [[ -n ${unsafe_files} ]] ; then