#14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to sys… · python/cpython@eac0939 · GitHub
Skip to content

Commit eac0939

Browse files
committed
#14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog.
Unlike the other facilities, we don't use a fallback for AUTHPRIV if it doesn't exist. Because it is intended for logging sensitive log messages, it is better that a program trying to log such messages fail than that it log them insecurely. Initial patch by Federico Reghenzani.
1 parent 8c69632 commit eac0939

4 files changed

Lines changed: 18 additions & 4 deletions

File tree

Doc/library/syslog.rst

Lines changed: 6 additions & 4 deletions

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ Terry Reedy
832832
Gareth Rees
833833
Steve Reeves
834834
Lennart Regebro
835+
Federico Reghenzani
835836
Ofir Reichenberg
836837
Sean Reifschneider
837838
Michael P. Reilly

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ Core and Builtins
3434
Library
3535
-------
3636

37+
- Issue #14416: syslog now defines the LOG_ODELAY and LOG_AUTHPRIV constants
38+
if they are defined in <syslog.h>.
39+
3740
- IDLE can be launched as python -m idlelib
3841

3942
- Issue #14295: Add unittest.mock

Modules/syslogmodule.c

Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)