0

Hello I've been tasked with fixing up a auditd policy but it's on a server that's actively being used and the policy installed was set immutable. I've tried searching and everyone recommends rebooting to escape immutable mode… But is there really no way to code up something that, as root, removes immutable mode without a reboot? I find it pretty amazing nobody seems to have attempted to do this already.

  • Well, in all fairness the man page for auditctl does say The configuration can only be changed by rebooting the machine. – Matthew Ife Apr 2 '14 at 17:27
  • Yeah, but isn't there some way to edit the config wherever it's in memory? I'm sure there's a way to hack around the reboot requirement and I'm sure such a solution would be enjoyed not just by me but any sysadmin who needs to update immutable auditd policies on a production server. The current "solution" to modifying immutable policies does not seem like it was done with production environments in mind. – John Musbach Apr 2 '14 at 17:33
  • The whole point of the immutable flag is that you need a reboot to remove it. That's the purpose of it. – MichelZ Apr 2 '14 at 17:36
  • @JohnMusbach It is a bit in kernel memory, I wouldn't want to go tweaking something in there.. – Matthew Ife Apr 2 '14 at 17:47

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.