blob: df9b5776081a8e4d1de827b0d3b4f95e14d26c06 [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
from autotest_lib.client.bin import test, utils
from autotest_lib.client.common_lib import error
class security_RootfsOwners(test.test):
version = 1
def run_once(self):
This is a regression test for 7989.
Do a find on the system for rootfs files own by chronos.
Test fails if there is any.
cmd = 'find / -xdev -user chronos -print'
cmd_output = utils.system_output(cmd, ignore_status=True)
if (cmd_output != '') :
raise error.TestFail('Rootfs should not contain any files owned by chronos')