Closed
Description
Log4j needs some security manager permissions, for example to write to a file, or read configuration in an env variable. We make log4j available to all Elasticsearch plugins, but those plugins don't necessarily have all the necessary permissions, especially in the context of reduced permissions (eg ingest attachment reduces permissions when calling Tika code, but Tika code may still log).
We should improve how our log4j loggers handle permissions, so that calling code does not need to worry about the permissions necessary for log4j.