This is an archive of the discontinued LLVM Phabricator instance.

Add new interceptor: acct(2)
ClosedPublic

Authored by krytarowski on Jan 15 2018, 5:10 AM.

Details

Summary

acct - enable or disable process accounting

Sponsored by <The NetBSD Foundation>

Diff Detail

Event Timeline

krytarowski created this revision.Jan 15 2018, 5:10 AM
vitalybuka accepted this revision.Jan 16 2018, 5:01 PM
vitalybuka added inline comments.
lib/sanitizer_common/sanitizer_common_interceptors.inc
6467

"const char *"?

6470

please remove {}

This revision is now accepted and ready to land.Jan 16 2018, 5:01 PM
krytarowski added inline comments.Jan 16 2018, 5:05 PM
lib/sanitizer_common/sanitizer_common_interceptors.inc
6467

I try to omit const in order to prevent "const pollution" phenomena. It might be fine for so short interceptors thought.

This is my motivation and decision is up to you.

Oh, maybe test?

lib/sanitizer_common/sanitizer_common_interceptors.inc
6467

function is declared with const

Could you please don't copy man into the summary?

krytarowski edited the summary of this revision. (Show Details)Jan 16 2018, 6:15 PM

Remove {}
constify input argument

This revision was automatically updated to reflect the committed changes.

test?

Better not, this changes global system accounting properties and this call is reserved for a super-user only.

This call is tested with the userland utilities.