Score:2

logrotate fails to run Java postrotate program

ru flag

Somewhat recent versions of logrotate fail to execute postrotate actions that invoke Java when logrotate is started via systemd. In my logs I see:

logrotate[123]: Error occurred during initialization of VM
logrotate[123]: Failed to mark memory page as executable - check if grsecurity/PaX is enabled
Score:2
ru flag

The following commit added hardening options to logrotate's systemd script: https://github.com/logrotate/logrotate/commit/1008bdf391e35684d8eeb2217c859f11e273ebb3

These changes were released with logrotate v3.14 (also included in Debian 10, released July 2019).

One of the configured options (MemoryDenyWriteExecute=true) causes execution of Java programs to fail. Setting this option to false fixes the issue for me, possibly making the system less secured/hardened.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.