Re: Packages or Iceberg question
If you are using the #2 option below, please be aware of the security concerns inherent in writing to and reading from a publicly accessible folder. The iOS Secure Coding Guide (https://developer.apple.com/library/ios/documentation/Security/Conceptual/Se...) has a nice blurb entitled "Files in Publicly Writable Directories are Dangerous" on pages 51-52. -Josh On Jan 28, 2014, at 2:00 PM, installer-dev-request@lists.apple.com wrote:
Date: Tue, 28 Jan 2014 11:46:06 -0800 From: Conor Schutzman <conor@mac.com> To: Kostas Backas <kostas@systemgraph.gr> Cc: "installer-dev@lists.apple.com" <installer-dev@lists.apple.com> Subject: Re: Packages or Iceberg question Message-ID: <5B628933-3962-43EA-A9B4-31E9DE447765@mac.com> Content-Type: text/plain; charset=windows-1252
There are two solutions I see:
1) Add the full path (I would just build a “source” folder that had a full hierarchy built within it) to the payloads tab in Packages.
2) Install the file to some holding location (I use /private/tmp but there are a bunch of common options), and then use postinstall scripts to move the files to their correct location.
I personally would recommend #2 whenever you are playing in /System, as it also provides an opportunity for you to backup the existing files first, before over-writing them (though I suppose you could do that with pre-install scripting using option 1).
Clear as mud?
Conor
On Jan 27, 2014, at 3:38 PM, Kostas Backas <kostas@systemgraph.gr> wrote:
Hello,
This is a duplicate to the Mac Enterprise list,
I need to replace the file SampleSupport.plist which has the letters shown when Quicklooking a font. I have tweaked the file and now I need to wrap it in a Packages pkg I create, that, among others, it replaces some fonts in main Library and System Library and installs 2 pkgs. As I get from Packages help, when you want to put something ex. in /System/Library/Fonts, you add the “Fonts” directory to the Payload via Hierarchy. As for the SampleSupport.plist the full path is: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/Resources
Do I have to create all the tree by hand? What about permissions? Or am I completely wrong here?
Best regards
Kostas _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/conor%40mac.com
This email sent to conor@mac.com
------------------------------
_______________________________________________ Installer-dev mailing list Installer-dev@lists.apple.com https://lists.apple.com/mailman/listinfo/installer-dev
End of Installer-dev Digest, Vol 113, Issue 6 *********************************************
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
jdp33@icloud.com