Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polkit policy admx branch #73

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions BaseALT.admx
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,8 @@
<category name="ALT_Windows_Manager_Marco_Keyboard" displayName="$(string.ALT_Windows_Manager_Marco_Keyboard)" explainText="$(string.ALT_Windows_Manager_Marco_Keyboard_Help)">
<parentCategory ref="ALT_Windows_Manager_Marco" />
</category>
<category name="ALT_Polkit" displayName="$(string.ALT_Polkit)" explainText="$(string.ALT_Polkit_Help)">
<parentCategory ref="ALT_System" />
</category>
</categories>
</policyDefinitions>
30 changes: 30 additions & 0 deletions BaseALTGroupPolicies.admx
Original file line number Diff line number Diff line change
Expand Up @@ -330,5 +330,35 @@
<decimal value="0"/>
</disabledValue>
</policy>
<policy class="Machine" displayName="$(string.gpupdate_yandex_browser_applier)" explainText="$(string.gpupdate_yandex_browser_applier_help)" key="Software\BaseALT\Policies\GPUpdate" name="YandexBrowserApplier" valueName="YandexBrowserApplier">
<parentCategory ref="ALT_GPUpdateAppliers"/>
<supportedOn ref="system:SUPPORTED_AltP10"/>
<enabledValue>
<decimal value="1"/>
</enabledValue>
<disabledValue>
<decimal value="0"/>
</disabledValue>
</policy>
<policy class="Machine" displayName="$(string.RemovableStorageClasses_DenyAll_Access)" explainText="$(string.RemovableStorageClasses_DenyAll_Access_help)" key="Software\BaseALT\Policies\GPUpdate\RemovableStorageDevices" name="RemovableStorageClasses_DenyAll_Access" valueName="Deny_All">
<parentCategory ref="system:ALT_Mounting"/>
<supportedOn ref="system:SUPPORTED_AltP10"/>
<enabledValue>
<decimal value="1"/>
</enabledValue>
<disabledValue>
<decimal value="0"/>
</disabledValue>
</policy>
<policy class="Machine" displayName="$(string.RemovableStorageClasses_DenyAll_User_Access)" explainText="$(string.RemovableStorageClasses_DenyAll_User_Access_help)" key="Software\BaseALT\Policies\GPUpdate\RemovableStorageDevices" name="RemovableStorageClasses_DenyAll_User_Access" valueName="Deny_All">
<parentCategory ref="system:ALT_Mounting"/>
<supportedOn ref="system:SUPPORTED_AltP10"/>
<enabledValue>
<decimal value="1"/>
</enabledValue>
<disabledValue>
<decimal value="0"/>
</disabledValue>
</policy>
</policies>
</policyDefinitions>
317 changes: 317 additions & 0 deletions BaseALTPolkit.admx
Original file line number Diff line number Diff line change
@@ -0,0 +1,317 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- (c) 2022 BaseALT, Ltd. -->
<policyDefinitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.0" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
<policyNamespaces>
<target prefix="polkit" namespace="BaseALT.Policies.Polkit" />
<using prefix="system" namespace="BaseALT.Policies.System" />
</policyNamespaces>
<resources minRequiredRevision="1.0" />
<policies>
<policy class="Machine" displayName="$(string.org-freedesktop-udisks2-filesystem-mount)"
explainText="$(string.org-freedesktop-udisks2-filesystem-mount_help)"
key="Software\BaseALT\Policies\Polkit"
name="org.freedesktop.udisks2.filesystem-mount"
valuename="org.freedesktop.udisks2.filesystem-mount"
presentation="$(presentation.OrgFreedesktopUdisks2FileSystemMount-pr)">
<parentCategory ref="system:ALT_Polkit" />
<supportedOn ref="system:SUPPORTED_AltP10" />
<elements>
<enum id="OrgFreedesktopUdisks2FileSystemMount_setter" valueName="org.freedesktop.udisks2.filesystem-mount-options" required="true">
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-No)">
<value>
<string>No</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Yes)">
<value>
<string>Yes</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self)">
<value>
<string>Auth_self</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin)">
<value>
<string>Auth_admin</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self-keep)">
<value>
<string>Auth_self_keep</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin-keep)">
<value>
<string>Auth_admin_keep</string>
</value>
</item>
</enum>
<boolean id="OrgFreedesktopUdisks2FileSystemMount_blocker" key="Software\BaseALT\Policies\PolkitLocks" valueName="org.freedesktop.udisks2.filesystem-mount-options">
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
</elements>
</policy>
<policy class="User" displayName="$(string.org-freedesktop-udisks2-filesystem-mount)"
explainText="$(string.org-freedesktop-udisks2-filesystem-mount_help)"
key="Software\BaseALT\Policies\Polkit"
name="org.freedesktop.udisks2.filesystem-mount-user"
valuename="org.freedesktop.udisks2.filesystem-mount"
presentation="$(presentation.OrgFreedesktopUdisks2FileSystemMountUser-pr)">
<parentCategory ref="system:ALT_Polkit" />
<supportedOn ref="system:SUPPORTED_AltP10" />
<elements>
<enum id="OrgFreedesktopUdisks2FileSystemMount_setter" valueName="org.freedesktop.udisks2.filesystem-mount-options" required="true">
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-No)">
<value>
<string>No</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Yes)">
<value>
<string>Yes</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self)">
<value>
<string>Auth_self</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin)">
<value>
<string>Auth_admin</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self-keep)">
<value>
<string>Auth_self_keep</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin-keep)">
<value>
<string>Auth_admin_keep</string>
</value>
</item>
</enum>
<boolean id="OrgFreedesktopUdisks2FileSystemMount_blocker" key="Software\BaseALT\Policies\PolkitLocks" valueName="org.freedesktop.udisks2.filesystem-mount-options">
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
</elements>
</policy>
<policy class="Machine" displayName="$(string.org-freedesktop-udisks2-filesystem-mount-other-seat)"
explainText="$(string.org-freedesktop-udisks2-filesystem-mount-other-seat_help)"
key="Software\BaseALT\Policies\Polkit"
name="org.freedesktop.udisks2.filesystem-mount-other-seat"
valuename="org.freedesktop.udisks2.filesystem-mount-other-seat"
presentation="$(presentation.OrgFreedesktopUdisks2FileSystemMount-pr)">
<parentCategory ref="system:ALT_Polkit" />
<supportedOn ref="system:SUPPORTED_AltP10" />
<elements>
<enum id="OrgFreedesktopUdisks2FileSystemMount_setter" valueName="org.freedesktop.udisks2.filesystem-mount-options" required="true">
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-No)">
<value>
<string>No</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Yes)">
<value>
<string>Yes</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self)">
<value>
<string>Auth_self</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin)">
<value>
<string>Auth_admin</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self-keep)">
<value>
<string>Auth_self_keep</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin-keep)">
<value>
<string>Auth_admin_keep</string>
</value>
</item>
</enum>
<boolean id="OrgFreedesktopUdisks2FileSystemMount_blocker" key="Software\BaseALT\Policies\PolkitLocks" valueName="org.freedesktop.udisks2.filesystem-mount-options">
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
</elements>
</policy>
<policy class="User" displayName="$(string.org-freedesktop-udisks2-filesystem-mount-other-seat)"
explainText="$(string.org-freedesktop-udisks2-filesystem-mount-other-seat_help)"
key="Software\BaseALT\Policies\Polkit"
name="org.freedesktop.udisks2.filesystem-mount-other-seat-user"
valuename="org.freedesktop.udisks2.filesystem-mount-other-seat"
presentation="$(presentation.OrgFreedesktopUdisks2FileSystemMountUser-pr)">
<parentCategory ref="system:ALT_Polkit" />
<supportedOn ref="system:SUPPORTED_AltP10" />
<elements>
<enum id="OrgFreedesktopUdisks2FileSystemMount_setter" valueName="org.freedesktop.udisks2.filesystem-mount-options" required="true">
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-No)">
<value>
<string>No</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Yes)">
<value>
<string>Yes</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self)">
<value>
<string>Auth_self</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin)">
<value>
<string>Auth_admin</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self-keep)">
<value>
<string>Auth_self_keep</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin-keep)">
<value>
<string>Auth_admin_keep</string>
</value>
</item>
</enum>
<boolean id="OrgFreedesktopUdisks2FileSystemMount_blocker" key="Software\BaseALT\Policies\PolkitLocks" valueName="org.freedesktop.udisks2.filesystem-mount-options">
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
</elements>
</policy>
<policy class="Machine" displayName="$(string.org-freedesktop-udisks2-filesystem-mount-system)"
explainText="$(string.org-freedesktop-udisks2-filesystem-mount-system_help)"
key="Software\BaseALT\Policies\Polkit"
name="org.freedesktop.udisks2.filesystem-mount-system"
valuename="org.freedesktop.udisks2.filesystem-mount-system"
presentation="$(presentation.OrgFreedesktopUdisks2FileSystemMount-pr)">
<parentCategory ref="system:ALT_Polkit" />
<supportedOn ref="system:SUPPORTED_AltP10" />
<elements>
<enum id="OrgFreedesktopUdisks2FileSystemMount_setter" valueName="org.freedesktop.udisks2.filesystem-mount-options" required="true">
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-No)">
<value>
<string>No</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Yes)">
<value>
<string>Yes</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self)">
<value>
<string>Auth_self</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin)">
<value>
<string>Auth_admin</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self-keep)">
<value>
<string>Auth_self_keep</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin-keep)">
<value>
<string>Auth_admin_keep</string>
</value>
</item>
</enum>
<boolean id="OrgFreedesktopUdisks2FileSystemMount_blocker" key="Software\BaseALT\Policies\PolkitLocks" valueName="org.freedesktop.udisks2.filesystem-mount-options">
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
</elements>
</policy>
<policy class="User" displayName="$(string.org-freedesktop-udisks2-filesystem-mount-system)"
explainText="$(string.org-freedesktop-udisks2-filesystem-mount-system_help)"
key="Software\BaseALT\Policies\Polkit"
name="org.freedesktop.udisks2.filesystem-mount-system-user"
valuename="org.freedesktop.udisks2.filesystem-mount-system"
presentation="$(presentation.OrgFreedesktopUdisks2FileSystemMountUser-pr)">
<parentCategory ref="system:ALT_Polkit" />
<supportedOn ref="system:SUPPORTED_AltP10" />
<elements>
<enum id="OrgFreedesktopUdisks2FileSystemMount_setter" valueName="org.freedesktop.udisks2.filesystem-mount-options" required="true">
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-No)">
<value>
<string>No</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Yes)">
<value>
<string>Yes</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self)">
<value>
<string>Auth_self</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin)">
<value>
<string>Auth_admin</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-self-keep)">
<value>
<string>Auth_self_keep</string>
</value>
</item>
<item displayName="$(string.org-freedesktop-udisks2-filesystem-mount-Auth-admin-keep)">
<value>
<string>Auth_admin_keep</string>
</value>
</item>
</enum>
<boolean id="OrgFreedesktopUdisks2FileSystemMount_blocker" key="Software\BaseALT\Policies\PolkitLocks" valueName="org.freedesktop.udisks2.filesystem-mount-options">
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
</elements>
</policy>
</policies>
</policyDefinitions>
2 changes: 2 additions & 0 deletions en-US/basealt.adml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
<string id="ALT_Windows_Manager_Marco_Help">Windows manager Marco settings</string>
<string id="ALT_Windows_Manager_Marco_Keyboard">Keyboard settings</string>
<string id="ALT_Windows_Manager_Marco_Keyboard_Help">Keyboard settings</string>
<string id="ALT_Polkit">Polkit rules</string>
<string id="ALT_Polkit_Help">Polkit rules</string>
</stringTable>
</resources>
</policyDefinitionResources>
Loading