History

audit: add an option to control logging of passwords with pam_tty_audit

Most commands are entered one line at a time and processed as complete lines in non-canonical mode. Commands that interactively require a password, enter canonical mode to do this while shutting off echo. This pair of features (icanon and !echo) can be used to avoid logging passwords by audit while still logging the rest of the command. Adding a member (log_passwd) to the struct audit_tty_status passed in by pam_tty_audit allows control of canonical mode without echo per task.

Richard Guy Briggs committed 13 years ago

Commit 46e959e1 parent bde02ca4 files · +22 −7Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/audit.h+2−1
@@ -369,7 +369,8 @@ struct audit_status { · 368 unmodified lines
369369 };
370370
371371 struct audit_tty_status {
372− __u32 enabled; /* 1 = enabled, 0 = disabled */
372+ __u32 enabled; /* 1 = enabled, 0 = disabled */
373+ __u32 log_passwd; /* 1 = enabled, 0 = disabled */
373374 };
374375
375376 /* audit_rule_data supports filter rules with both integer and string

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t