~jamesodhunt/upstart/event-prefixes-temp

Viewing all changes in revision 1431.

  • Committer: James Hunt
  • Date: 2013-01-29 17:31:19 UTC
  • Revision ID: james.hunt@ubuntu.com-20130129173119-hbzjm0lqftmjmd1k
* extra/upstart-event-bridge.c: Ignore events explicitly
  prefixed with '::' and ':sys:' as they are system-level private.
* init/control.c: control_emit_event_with_file(): Call
  event_check_emit_policy() to disallow invalid events.
* init/event.c:
  - event_type_from_name(): New function to categorise an event
    based on its name.
  - event_check_emit_policy(): New function.
  - event_canonical_name(): Determine short name of event.
* init/event.h: Defines to support new functions and EventType enum.
* init/event_operator.c: event_operator_match(): Perform checks on
  @event and @oper to determine new match behaviour for PID 1
  and Session Init processes.
* init/tests/test_event.c: test_event_names(): New test.
* init/tests/test_event_operator.c:
  - test_operator_match(): Updates for new syntax.
* util/man/initctl.8: Explanation of new event prefix syntax.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: