# vim:syntax=apparmor # ------------------------------------------------------------------ # # Copyright (C) 2021 Mikhail Morfikov # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # ------------------------------------------------------------------ abi , include @{exec_path} = /{usr/,}bin/nemo profile nemo @{exec_path} { include include include include include include # This should be tightened when the "profile has merged rule with conflicting x modifiers" error # will be fixed. (#FIXME#) include include # For root window deny capability dac_read_search, deny capability dac_override, # Needed? deny capability sys_nice, network inet stream, network inet6 stream, @{exec_path} mr, /{usr/,}lib/@{multiarch}/nemo/** mrix, /usr/libexec/gvfsd-* rPx, owner @{PROC}/@{pid}/mountinfo r, owner @{PROC}/@{pid}/mounts r, owner @{PROC}/@{pid}/fd/ r, # To read/write files in the system. The read permission is granted for all files, the write # permission only for the owner. Also, dirs like /dev/, /efi/, /proc/, /sys/ are not included in # the list. / r, /boot/ r, /boot/** r, owner /boot/** rw, /etc/ r, /etc/** r, owner /etc/** rw, /home/ r, /home/** r, owner /home/** rw, /lost+found/ r, /lost+found/** r, owner /lost+found/** rw, /media/ r, /media/** r, owner /media/** rw, /mnt/ r, /mnt/** r, owner /mnt/** rw, /opt/ r, /opt/** r, owner /opt/** rw, /root/ r, /root/** r, owner /root/** rw, /run/ r, /run/** r, owner /run/** rw, /srv/ r, /srv/** r, owner /srv/** rw, /tmp/ r, /tmp/** r, owner /tmp/** rw, /usr/ r, /usr/** r, owner /usr/** rw, /var/ r, /var/** r, owner /var/** rw, include if exists }