lp:~jamesodhunt/upstart/remove-basic-user-sessions

Created by James Hunt and last modified
Get this branch:
bzr branch lp:~jamesodhunt/upstart/remove-basic-user-sessions
Only James Hunt can upload to this branch. If you are James Hunt please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
James Hunt
Project:
upstart
Status:
Merged

Recent revisions

1432. By James Hunt

* init/control.c: Comments.

1431. By James Hunt

* init/control.c:
  - Typos.
  - Improved uid checks.
  - Replaced direct call to control_get_origin_uid() with call to new
    control_check_permission() (as early as possible) for clarity and
    to confine policy to one location.
  - control_set_log_prioity(): Added missing call to
    control_check_permission().
  - control_get_origin_uid(): Check message contents before allowing
    D-Bus calls.
* init/control.h: Added missing prototypes.

1430. By James Hunt

* init/control.c: More careful uid checking.

1429. By James Hunt

* util/tests/test_user_sessions.sh: Removed.
* init/man/init.5: Updated to reflect removal of user jobs.

1428. By James Hunt

* Sync with lp:upstart.

1427. By James Hunt

* init/control.c:
  - control_reload_configuration(): Added missing permission checks.
  - control_emit_event_with_file(): Added missing permission checks.
  - Added calls to new function control_get_origin_uid() to allow
    D-Bus methods to be policed by filtering on uid, rather than
    relying on the same information that used to be stored in the
    old Session object.
* init/job.c: Typo.
* init/job_class.c:
  - job_class_new(): Removed user elements from session code.
  - job_class_serialise(): Comments.
  - job_class_deserialise(): Comments.
* init/job_process.c: job_process_spawn(): Removed user session
  handling.
* init/session.c: Removed user session handling since it is
  about to be replaced by the ability to run Upstart as a
  non-privileged user (aka a 'Session Init').
* init/session.h: Updated prototypes.
* init/state.h: Comments.
* init/tests/test_conf.c: test_source_reload_job_dir(): Added missing
  check.
* init/tests/test_state.c:
  - session_diff(): Removed user check.
  - Updated all calls to session_new().
* util/tests/test_initctl.c: test_notify_disk_writeable(): Ensure this
  test is not run as root.

1426. By James Hunt

* init/log.c:log_clear_unflushed(): Simplify asserts.

1425. By James Hunt

* init/log.c:
  - log_clear_unflushed(): Correct remote_closed assertion to handle
    early-job-logging scenario where a job satisfies both of the
    following conditions:
    - ends before the log directory becomes writeable.
    - has spawned one or more processes that continue to run after the
      job itself has exited and which produce output before the log
      directory becomes writeable.
    (LP: #1096531).

1423. By James Hunt

Merge of lp:~xnox/upstart/overrides.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:upstart
This branch contains Public information 
Everyone can see this information.

Subscribers