On AIX, when I execute my pp'd binary (pp -C) the shared libs remain loaded
in memory. I'd like to prevent that by changing the permissions on the
files in the cache. If the execute permissions are removed from 'other',
then the library won't be kept in memory on AIX.

Will this patch be sufficient?  Any issues with it that I'm not
considering?  I wonder if it could be further restricted to 0700 or even
0500?

$ svn diff par/PAR-Packer/trunk/ par/trunk/
Index: par/PAR-Packer/trunk/myldr/boot.c
===================================================================
--- par/PAR-Packer/trunk/myldr/boot.c (revision 1533)
+++ par/PAR-Packer/trunk/myldr/boot.c (working copy)
@@ -66,7 +66,7 @@
     if (close(fd) == -1)
         return EXTRACT_FAIL;

-    chmod(*ext_path, 0755);
+    chmod(*ext_path, 0750);
     return EXTRACT_OK;
 }

Index: par/trunk/lib/PAR/Heavy.pm
===================================================================
--- par/trunk/lib/PAR/Heavy.pm (revision 1533)
+++ par/trunk/lib/PAR/Heavy.pm (working copy)
@@ -158,7 +158,7 @@
         binmode($fh);
         $member->extractToFileHandle($fh);
         close $fh;
-        chmod 0755, $filename;
+        chmod 0750, $filename;
     }

     return $filename;

If that's all sufficient, how should I proceed? Get commit permission?
Submit an RT against PAR and PAR-Packer?

Thanks
-Tim

Reply via email to