Skip to content

Instantly share code, notes, and snippets.

@apcera-code
Created September 6, 2016 23:24
Show Gist options
  • Save apcera-code/e6a47fc6f2fcac07185d7395443ec775 to your computer and use it in GitHub Desktop.
Save apcera-code/e6a47fc6f2fcac07185d7395443ec775 to your computer and use it in GitHub Desktop.
The controlling policy, which grants admin users the ability to bind to restricted services, takes the form of the following two rules:
on job::/ {
if (PV->SvcGroups.category == restricted &&
service == PV->SvcGroups.service &&
role == admin)
{
permit bind
}
}
on service::/ {
if (PV->SvcGroups.category == restricted &&
query->target_str == PV->SvcGroups.service &&
role == admin)
{
permit bind
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment