Skip to content

Instantly share code, notes, and snippets.

@nickanderson
Created January 26, 2023 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickanderson/66fc2b140ab64db87652881f595ad96b to your computer and use it in GitHub Desktop.
Save nickanderson/66fc2b140ab64db87652881f595ad96b to your computer and use it in GitHub Desktop.
preserve old rxdirs behaviro
bundle agent __main__
{
files:
# If you had:
"/path/to/something./"
depth_search => recurse( "inf" ),
perms => mog( "600", "root", "root");
# And you want to have the old rxdirs behavior:
"/path/to/something./"
depth_search => recurse( "inf" ),
perms => mymog( "600", "root", "root");
}
body perms mymog( m, o, g)
{
inherit_from => default:mog( "$(m)", "$(o)", "$(g)" );
rxdirs => "true";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment