The mount-observe interface

The mount-observe interface enables a snap to read mount table and quota information. The interface grants access to files such as:

  • /proc/self/mountinfo, /proc/self/mounts see currently mounted filesystems
  • /sys/devices/*/block/* block device attributes, often accessed through corresponding /sys/class/block/* symbolic links
  • /etc/fstab, /run/mount/utab, enabling use of the mount program

As well as access to mount specific syscalls, such as:

  • listmount(2), statmount(2)
  • quotactl(2), with commands for observing the limits such as X_GETINFO, X_GETQUOTA, X_GETSTAT

This interface is restricted because it gives privileged read access to mount arguments and should only be used with trusted apps.

Auto-connect: no

This is a snap interface. See Interface management and Supported interfaces for further details on how interfaces are used.


Last updated 6 days ago.