You are logged in as ordinary user "sysops" on a CentOS 9 test server. To reproduce an application crash you export a diagnostic variable:
$ export LD_PRELOAD=/opt/debug/libmalloc.so
The crash only occurs with this variable present, but the binary itself must be executed as root. The sudo policy is still using its default env_reset setting, which normally clears most user-defined variables.
Which single sudo command-line option should you include when you run the binary so that LD_PRELOAD is retained rather than stripped out?
The -E (or --preserve-env) flag tells sudo's security policy to keep the current environment variables, overriding the default env_reset behavior. This allows LD_PRELOAD and any other user-defined variables to be passed to the root process.
-i launches the target user's login shell and initializes a fresh environment, so LD_PRELOAD would be removed. -H only resets the HOME variable to the target user's home directory and does nothing to preserve other variables. -k (or --reset-timestamp) merely clears cached sudo credentials; it has no effect on which environment variables are passed to the command.