File valid.rpmlint_polkit_rules of Package rpmlint-integration-test

polkit.addRule(function(action, subject) {
    if ((action.id == "org.rpmlint.LintMe.app-install" ||
         action.id == "org.rpmlint.LintMe.runtime-install"||
         action.id == "org.rpmlint.LintMe.app-uninstall" ||
         action.id == "org.rpmlint.LintMe.runtime-uninstall" ||
         action.id == "org.rpmlint.LintMe.modify-repo" ||
         action.id == "org.rpmlint.LintMe.app-update" ||
         action.id == "org.rpmlint.LintMe.runtime-update" ||
         action.id == "org.rpmlint.LintMe.appstream-update") &&
        subject.active == true && subject.local == true &&
        subject.isInGroup("wheel")) {
            return polkit.Result.YES;
    }

    return polkit.Result.NOT_HANDLED;
});

polkit.addRule(function(action, subject) {
    if (action.id == "org.rpmlint.LintMe.override-parental-controls") {
            return polkit.Result.AUTH_ADMIN;
    }

    return polkit.Result.NOT_HANDLED;
});
openSUSE Build Service is sponsored by