File 40-default-webyast-status.rules of Package rubygem-webyast-status

// default permissions for "root" user

polkit.addRule(function(action, subject) {
  if ((action.id == "org.opensuse.yast.modules.logfile.read"
    || action.id == "org.opensuse.yast.modules.yapi.metrics.read"
    || action.id == "org.opensuse.yast.modules.yapi.metrics.writelimits"
    ) && (subject.user == "webyast" || subject.user == "root"))
  {
    return polkit.Result.YES;
  }
});    

// vim: syntax=javascript
openSUSE Build Service is sponsored by