Targeting .pkg Files

Privilege Manager supports elevation of an installation package (also known as a package). A package contains a product or product component—the package’s payload—to be installed on a computer and install configuration information that determines where and how the product is installed. A package is often identified by the file extension of .pkg or .mpkg.

You can use the Policy Wizard to create policies that apply to packages or you can create them manually. This document details how to create a policy manually.

For this example, we’ll be using a file specification filter for the file “Zoom.pkg”. To be more granular, you could use a file hash filter that targets the desired algorithm for the package file. Signed file filters are not supported for packages at this time.

Create File Specification Filter for the Package

  1. Navigate to Admin | Filters
  2. Click Create Filter
  3. For Platform/Location, pick macOS Computer Filters
  4. For Type, pick File Specification Filter
  5. Give the filter a name and description and click Create

  1. Set File Names to zoom.pkg and click Save Changes

Create Policy Targeting File Specification Filter

  1. Navigate to MACOS Computers | Application Policies
  2. Click Create Policy
  3. Click Skip the wizard, take me to a blank policy
  4. Give the policy a name and description and click Create Policy
  5. Set Applications Targeted to the file specification filter you created for the package
  6. Set Inclusions to Privilege Manager Copy/Installer Helper Parent Process Filter
  7. Actions – Depending on the desired user experience, use the following combinations of actions:
Actions Outcome
Deny Execute Package installation is denied.
Deny Execute
Deny Execute Message
Package installation is denied and a notification is posted in notification center.
Application Denied Message Action (HTML) Package installation is denied and the custom Application Denied Message Action (HTML) dialog is displayed.
Allow Package Installation Package installation is allowed without prompting the user for admin credentials.
Allow Package Installation
Application Approval Request Message Action (HTML)
Package installation is allowed after the user’s approval request has been approved. ^
Allow Package Installation
Application Approval Request (with Offline Fallback) Message Action
Package installation is allowed after the user’s approval request has been approved. ^
Allow Package Installation
Application Justification Message Action (HTML)
Package installation is allowed after the user enters a justification.
Allow Package Installation
Application Warning Message Action (HTML)
Package installation is allowed after the user acknowledges the warning dialog.
^ If the request is denied, a notification will be posted in notification center.
  1. Click Show Advanced

    • Click Continue Enforcing Policies so that it is disabled
    • Click Applies To All Process so that it is enabled
  2. Click Save Changes
  3. Set the policy as Active

Policy Examples

Deny Execute + Deny Execute Message

The Policy below will deny package installation and a notification is posted in notification center.



Application Denied Message Action (HTML)

The Policy below will deny the package installation and the custom Application Denied Message Action (HTML) dialog is displayed.



Allow Package Installation

The Policy below will allow package installation without prompting the user for admin credentials.



Allow Package Installation + Application Approval Request Message Action (HTML)

The Policy below will allow package installation after the user’s approval request has been approved. If the request is denied, a notification will be posted in notification center.



Allow Package Installation + Application Approval Request (with Offline Fallback) Message Action (HTML)

The Policy below will allow package installation after the user’s approval request has been approved. If the request is denied, a notification will be posted in notification center.



Allow Package Installation + Application Justification Message Action (HTML)

The Policy below will allow package installation after the user enters a justification.



Allow Package Installation + Application Warning Message Action (HTML)

The Policy below will allow package installation after the user acknowledges the warning dialog.