1 # Copyright 2017 The Chromium OS Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 TIME="SHORT" 6 AUTHOR = "The Chromium OS Authors" 7 DOC = """ 8 Tests that SessionManager D-Bus endpoints cannot be abused. 9 """ 10 NAME = "security_SessionManagerDbusEndpoints" 11 PURPOSE = """ 12 Validates that EnableChromeTesting is root only, and that RestartJob will not 13 launch arbitrary processes. 14 """ 15 CRITERIA = """ 16 Fails if EnableChromeTesting can be called as user 'chronos', or if RestartJob 17 allows executing an arbitrary binary. 18 """ 19 ATTRIBUTES = "suite:bvt-perbuild" 20 TEST_CATEGORY = "Security" 21 TEST_CLASS = "security" 22 TEST_TYPE = "client" 23 JOB_RETRIES = 2 24 25 job.run_test("security_SessionManagerDbusEndpoints") 26