[gsettings-desktop-schemas/wip/oholy/readonly-lockdown] schemas: Add "mount-removable-storage-devices-as-read-only" option



commit 5a3419a09b69a79ba374bd2032d0ede8965d1291
Author: Ondrej Holy <oholy redhat com>
Date:   Tue May 14 08:12:59 2019 +0200

    schemas: Add "mount-removable-storage-devices-as-read-only" option
    
    Add lockdown option to prevent the user from writing and from modifying
    files on removable storage devices. If enabled, gvfs is going to mount
    removable storage devices (i.e. flashdisks, mobile phones, cameras) as
    read-only.

 schemas/org.gnome.desktop.lockdown.gschema.xml.in | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/schemas/org.gnome.desktop.lockdown.gschema.xml.in 
b/schemas/org.gnome.desktop.lockdown.gschema.xml.in
index 0150b32..d31fb77 100644
--- a/schemas/org.gnome.desktop.lockdown.gschema.xml.in
+++ b/schemas/org.gnome.desktop.lockdown.gschema.xml.in
@@ -71,5 +71,13 @@
         and removing users, as well as changing other users settings.
       </description>
     </key>
+    <key name="mount-removable-storage-devices-as-read-only" type="b">
+      <default>false</default>
+      <summary>Mount removable storage devices as read-only</summary>
+      <description>
+        Prevent users from writing or modifying files on removable storage
+        devices (i.e. flash disks, mobile phones, cameras).
+      </description>
+    </key>
   </schema>
 </schemalist>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]