udisk2-2.1.5-policy-1.patch 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. diff -Naur udisks-2.1.5/data/org.freedesktop.udisks2.policy.in udisks-2.1.5-new/data/org.freedesktop.udisks2.policy.in
  2. --- udisks-2.1.5/data/org.freedesktop.udisks2.policy.in 2015-02-11 06:13:54.000000000 +0000
  3. +++ udisks-2.1.5-new/data/org.freedesktop.udisks2.policy.in 2015-05-16 19:27:42.510039412 +0000
  4. @@ -16,8 +16,8 @@
  5. <_description>Mount a filesystem</_description>
  6. <_message>Authentication is required to mount the filesystem</_message>
  7. <defaults>
  8. - <allow_any>auth_admin</allow_any>
  9. - <allow_inactive>auth_admin</allow_inactive>
  10. + <allow_any>yes</allow_any>
  11. + <allow_inactive>no</allow_inactive>
  12. <allow_active>yes</allow_active>
  13. </defaults>
  14. </action>
  15. @@ -27,9 +27,9 @@
  16. <_description>Mount a filesystem on a system device</_description>
  17. <_message>Authentication is required to mount the filesystem</_message>
  18. <defaults>
  19. - <allow_any>auth_admin</allow_any>
  20. - <allow_inactive>auth_admin</allow_inactive>
  21. - <allow_active>auth_admin_keep</allow_active>
  22. + <allow_any>yes</allow_any>
  23. + <allow_inactive>no</allow_inactive>
  24. + <allow_active>yes</allow_active>
  25. </defaults>
  26. </action>
  27. @@ -38,9 +38,9 @@
  28. <_description>Mount a filesystem from a device plugged into another seat</_description>
  29. <_message>Authentication is required to mount the filesystem</_message>
  30. <defaults>
  31. - <allow_any>auth_admin</allow_any>
  32. + <allow_any>yes</allow_any>
  33. <allow_inactive>auth_admin</allow_inactive>
  34. - <allow_active>auth_admin_keep</allow_active>
  35. + <allow_active>yes</allow_active>
  36. </defaults>
  37. </action>
  38. @@ -49,9 +49,9 @@
  39. <_description>Mount/unmount filesystems defined in the fstab file with the x-udisks-auth option</_description>
  40. <_message>Authentication is required to mount/unmount the filesystem</_message>
  41. <defaults>
  42. - <allow_any>auth_admin</allow_any>
  43. - <allow_inactive>auth_admin</allow_inactive>
  44. - <allow_active>auth_admin_keep</allow_active>
  45. + <allow_any>yes</allow_any>
  46. + <allow_inactive>no</allow_inactive>
  47. + <allow_active>yes</allow_active>
  48. </defaults>
  49. </action>
  50. @@ -98,9 +98,9 @@
  51. <_description>Unlock an encrypted device plugged into another seat</_description>
  52. <_message>Authentication is required to unlock an encrypted device</_message>
  53. <defaults>
  54. - <allow_any>auth_admin</allow_any>
  55. - <allow_inactive>auth_admin</allow_inactive>
  56. - <allow_active>auth_admin_keep</allow_active>
  57. + <allow_any>yes</allow_any>
  58. + <allow_inactive>no</allow_inactive>
  59. + <allow_active>yes</allow_active>
  60. </defaults>
  61. </action>
  62. @@ -258,8 +258,8 @@
  63. <_description>Eject media</_description>
  64. <_message>Authentication is required to eject media</_message>
  65. <defaults>
  66. - <allow_any>auth_admin</allow_any>
  67. - <allow_inactive>auth_admin</allow_inactive>
  68. + <allow_any>yes</allow_any>
  69. + <allow_inactive>no</allow_inactive>
  70. <allow_active>yes</allow_active>
  71. </defaults>
  72. </action>