Skip to content

Conversation

@abramovav64
Copy link
Collaborator

Admx for group policy - deny removable storage

@abramovav64 abramovav64 requested a review from mastersin October 28, 2022 13:37
@mastersin
Copy link
Member

Oh, no... This is PolicyKit and Udisk2 mechs. And don't change access mode (last time it was changed it executable) of modified files, please.

@mastersin
Copy link
Member

Let's look to full list of actions in current release in p10:

$ rpm -q udisks2
udisks2-2.9.4-alt1.x86_64

$ grep "action id=" /usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy
  <action id="org.freedesktop.udisks2.filesystem-mount">
  <action id="org.freedesktop.udisks2.filesystem-mount-system">
  <action id="org.freedesktop.udisks2.filesystem-mount-other-seat">
  <action id="org.freedesktop.udisks2.filesystem-fstab">
  <action id="org.freedesktop.udisks2.filesystem-unmount-others">
  <action id="org.freedesktop.udisks2.filesystem-take-ownership">
  <action id="org.freedesktop.udisks2.encrypted-unlock">
  <action id="org.freedesktop.udisks2.encrypted-unlock-system">
  <action id="org.freedesktop.udisks2.encrypted-unlock-other-seat">
  <action id="org.freedesktop.udisks2.encrypted-unlock-crypttab">
  <action id="org.freedesktop.udisks2.encrypted-lock-others">
  <action id="org.freedesktop.udisks2.encrypted-change-passphrase">
  <action id="org.freedesktop.udisks2.encrypted-change-passphrase-system">
  <action id="org.freedesktop.udisks2.loop-setup">
  <action id="org.freedesktop.udisks2.loop-delete-others">
  <action id="org.freedesktop.udisks2.loop-modify-others">
  <action id="org.freedesktop.udisks2.manage-swapspace">
  <action id="org.freedesktop.udisks2.manage-md-raid">
  <action id="org.freedesktop.udisks2.power-off-drive">
  <action id="org.freedesktop.udisks2.power-off-drive-system">
  <action id="org.freedesktop.udisks2.power-off-drive-other-seat">
  <action id="org.freedesktop.udisks2.eject-media">
  <action id="org.freedesktop.udisks2.eject-media-system">
  <action id="org.freedesktop.udisks2.eject-media-other-seat">
  <action id="org.freedesktop.udisks2.modify-device">
  <action id="org.freedesktop.udisks2.modify-device-system">
  <action id="org.freedesktop.udisks2.modify-device-other-seat">
  <action id="org.freedesktop.udisks2.rescan">
  <action id="org.freedesktop.udisks2.open-device">
  <action id="org.freedesktop.udisks2.open-device-system">
  <action id="org.freedesktop.udisks2.modify-system-configuration">
  <action id="org.freedesktop.udisks2.read-system-configuration-secrets">
  <action id="org.freedesktop.udisks2.modify-drive-settings">
  <action id="org.freedesktop.udisks2.ata-smart-update">
  <action id="org.freedesktop.udisks2.ata-smart-simulate">
  <action id="org.freedesktop.udisks2.ata-smart-selftest">
  <action id="org.freedesktop.udisks2.ata-smart-enable-disable">
  <action id="org.freedesktop.udisks2.ata-check-power">
  <action id="org.freedesktop.udisks2.ata-standby">
  <action id="org.freedesktop.udisks2.ata-standby-system">
  <action id="org.freedesktop.udisks2.ata-standby-other-seat">
  <action id="org.freedesktop.udisks2.ata-secure-erase">
  <action id="org.freedesktop.udisks2.cancel-job">
  <action id="org.freedesktop.udisks2.cancel-job-other-user">

There are three methods includes in current "DenyAll_Access" policy:

  • filesystem-mount
  • filesystem-mount-system
  • filesystem-mount-other-seat

But it is one of various variants of udisks2 policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants