• Home
  • Raw
  • Download

Lines Matching +full:error +full:- +full:ex

3 # Use of this source code is governed by a BSD-style license that can be
6 Wrapper for D-Bus calls ot the AuthPolicy daemon.
20 from autotest_lib.client.common_lib import error
27 Wrapper for D-Bus calls ot the AuthPolicy daemon.
30 authentication and policy fetch. This class is a wrapper around the D-Bus
38 # Number of log lines to include in error logs.
44 # Authpolicy daemon D-Bus parameters.
48 _DBUS_ERROR_SERVICE_UNKNOWN = 'org.freedesktop.DBus.Error.ServiceUnknown'
50 # Default timeout in seconds for D-Bus calls.
57 Creates and returns a D-Bus connection to authpolicyd. The daemon must
73 Restarts authpolicyd and rebinds to D-Bus interface.
94 except dbus.exceptions.DBusException as ex:
95 if ex.get_dbus_name() != self._DBUS_ERROR_SERVICE_UNKNOWN:
99 except error.CmdError as ex:
100 if (ex.result_obj.exit_status == 0):
126 D-Bus call.
157 blob string returned by the D-Bus call.
187 @return ErrorType from the D-Bus call.
200 @return ErrorType from the D-Bus call.
211 @return ErrorType from the D-Bus call.
223 @return error_message: Error message, empty if no error occurred.
236 cmd = 'tail -n %s %s' % (self._LOG_LINE_LIMIT, self._LOG_FILE)
239 except error.CmdError as ex:
240 logging.error('Failed to print authpolicyd log tail: %s', ex)
249 cmd = 'grep -q "exit code 253" %s' % self._LOG_FILE
251 logging.error('Seccomp failure detected!')
252 cmd = 'grep -oE "blocked syscall: \\w+" %s | tail -1' % \
255 logging.error(utils.run(cmd).stdout)
256 logging.error(
259 'the appropriate -seccomp.policy file in authpolicyd.'
261 except error.CmdError as ex:
262 logging.error(
263 'Failed to determine reason for seccomp issue: %s', ex)
273 except error.CmdError as ex:
274 logging.error('Failed to clear authpolicyd log file: %s', ex)
296 os.write(write_fd, self._password.encode('utf-8'))