summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Erat <derat@chromium.org>2014-06-11 15:02:01 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-06-12 08:39:59 +0000
commitbdc2c943432d795e8cffd268fa52bc4b2d9ef153 (patch)
tree1a00223c2e129cb03e0ea454d81859f718429efc
parent224f5ac761852cd9ffe56438f6807732bd9ee445 (diff)
downloadvboot-bdc2c943432d795e8cffd268fa52bc4b2d9ef153.tar.gz
vboot_reference: Don't use session_manager_use_flags.txt.
Make ensure_no_nonrelease_files.sh stop grepping /etc/session_manager_use_flags.txt for USE flags. Instead, look for non-comment lines in /etc/chrome_dev.conf. BUG=chromium:377301 TEST=manual: ran against images both with and without extra config directives BRANCH=none CQ-DEPEND=I86d01f4a551433527bb434dc62c30fb44082f774 CQ-DEPEND=Ic030207840b6be79b51486d1706573241a01c08d Change-Id: Iefeefd936dc7706ed74340edb6521621885bbe25 Reviewed-on: https://chromium-review.googlesource.com/203463 Reviewed-by: Mike Frysinger <vapier@chromium.org> Commit-Queue: Daniel Erat <derat@chromium.org> Tested-by: Daniel Erat <derat@chromium.org>
-rwxr-xr-xscripts/image_signing/ensure_no_nonrelease_files.sh20
1 files changed, 9 insertions, 11 deletions
diff --git a/scripts/image_signing/ensure_no_nonrelease_files.sh b/scripts/image_signing/ensure_no_nonrelease_files.sh
index 1b6625f3..e40aadab 100755
--- a/scripts/image_signing/ensure_no_nonrelease_files.sh
+++ b/scripts/image_signing/ensure_no_nonrelease_files.sh
@@ -48,17 +48,15 @@ main() {
fi
done
- # Some things which used to be flag-files, checked-for by this
- # test, are now tracked as use-flags.
- local useflag_path="$rootfs/etc/session_manager_use_flags.txt"
- for prefix in dangerous_ test_; do
- local matches=$(grep "^$prefix" "$useflag_path")
- if [ -n "$matches" ]; then
- echo "FAIL: Found non-release use flags in $useflag_path:"
- echo "$matches"
- testfail=1
- fi
- done
+ # Verify that session_manager isn't configured to pass additional
+ # environment variables or command-line arguments to Chrome.
+ local config_path="$rootfs/etc/chrome_dev.conf"
+ local matches=$(grep "^[^#]" "${config_path}")
+ if [ -n "$matches" ]; then
+ echo "FAIL: Found commands in $config_path:"
+ echo "$matches"
+ testfail=1
+ fi
exit $testfail
}