[dovecot/core] 999008: doveadm-server: Drop privileges only temporarily w...

GitHub noreply at github.com
Mon Feb 29 11:04:06 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 9990080334c292192954eecafbed47289f3549c3
      https://github.com/dovecot/core/commit/9990080334c292192954eecafbed47289f3549c3
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-02-29 (Mon, 29 Feb 2016)

  Changed paths:
    M src/doveadm/doveadm-mail.c
    M src/doveadm/doveadm-mail.h

  Log Message:
  -----------
  doveadm-server: Drop privileges only temporarily when running mail commands.

This allows running mail commands for multiple users within the same doveadm
connection.


  Commit: 32223e1a31b6f060ab3abcc26a630e7cca0abc89
      https://github.com/dovecot/core/commit/32223e1a31b6f060ab3abcc26a630e7cca0abc89
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-02-29 (Mon, 29 Feb 2016)

  Changed paths:
    M src/lib-storage/mail-storage-service.c

  Log Message:
  -----------
  lib-storage: Use getuid() instead of geteuid() for checking if we're running as root.

This fixes running multiple doveadm commands for different users. Running
mail_storage_service_init() + _deinit() multiple times left euid non-root,
which dropped the MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP flag.


Compare: https://github.com/dovecot/core/compare/ec862f5c8c37...32223e1a31b6


More information about the dovecot-cvs mailing list