Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

acct(2): begin the deprecation of legacy BSD process accounting

As Christian points out [1], even though it's privileged, this interface
has a lot of footguns. There are better options these days (e.g. eBPF),
so it would be good to start discouraging its use and mark it as
deprecated.

[1]: https://lore.kernel.org/linux-fsdevel/20250212-giert-spannend-8893f1eaba7d@brauner/

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260106-bsd-acct-v1-1-d15564b52c83@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Jeff Layton and committed by
Christian Brauner
46329a9d 6784f274

+5 -2
+5 -2
init/Kconfig
··· 624 624 arch_update_hw_pressure() and arch_scale_thermal_pressure(). 625 625 626 626 config BSD_PROCESS_ACCT 627 - bool "BSD Process Accounting" 627 + bool "BSD Process Accounting (DEPRECATED)" 628 628 depends on MULTIUSER 629 + default n 629 630 help 630 631 If you say Y here, a user level program will be able to instruct the 631 632 kernel (via a special system call) to write process accounting ··· 636 635 command name, memory usage, controlling terminal etc. (the complete 637 636 list is in the struct acct in <file:include/linux/acct.h>). It is 638 637 up to the user level program to do useful things with this 639 - information. This is generally a good idea, so say Y. 638 + information. This mechanism is antiquated and has significant 639 + scalability issues. You probably want to use eBPF instead. Say 640 + N unless you really need this. 640 641 641 642 config BSD_PROCESS_ACCT_V3 642 643 bool "BSD Process Accounting version 3 file format"