[dovecot/core] ac2def: lib-storage: clean up mailbox_list_create to impro...

GitHub noreply at github.com
Wed Oct 19 17:30:09 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: ac2defed599a97c4a71a9e90ba185929dfe59226
      https://github.com/dovecot/core/commit/ac2defed599a97c4a71a9e90ba185929dfe59226
  Author: Josef 'Jeff' Sipek <jeff.sipek at dovecot.fi>
  Date:   2016-10-19 (Wed, 19 Oct 2016)

  Changed paths:
    M src/lib-storage/mailbox-list.c

  Log Message:
  -----------
  lib-storage: clean up mailbox_list_create to improve readability

There is no reason to use mailbox_list_driver_find() here instead of
mailbox_list_find_class() as (1) we do not need the index into the list
driver array, and (2) dealing with double-pointers is harder than regular
pointers.


  Commit: ea42ee9ebd6f96e771c16e3fee705fa2e6fe609d
      https://github.com/dovecot/core/commit/ea42ee9ebd6f96e771c16e3fee705fa2e6fe609d
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2016-10-19 (Wed, 19 Oct 2016)

  Changed paths:
    M src/lib/restrict-access.c
    M src/lib/restrict-access.h

  Log Message:
  -----------
  lib: Add drop_setuid_root for restrict_access

drop_setuid_root, when set to true, will detect
and try to drop getuid()==0. This is done by
recovering current effective UID to set->uid
if set->uid == -1, and then doing seteuid(0).
It will also drop out any other extra privileges,
such as extra groups not requested for.


  Commit: 2558976f0b03852ba673d75d0af6850a61e733ce
      https://github.com/dovecot/core/commit/2558976f0b03852ba673d75d0af6850a61e733ce
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2016-10-19 (Wed, 19 Oct 2016)

  Changed paths:
    M src/lib-program-client/program-client-local.c

  Log Message:
  -----------
  lib-program-client: Try drop setuid root by default

But not if root privileges are asked for.


Compare: https://github.com/dovecot/core/compare/f948338e87fe...2558976f0b03


More information about the dovecot-cvs mailing list