hola espero se encuentren bien ,
Estoy desarrollando un proyecto ! sistema operativo el cual quiero integrar por default a librewolf en vez de firefox u otro , escribi un poco de lineas para que pueda apparmor proteger a librewolf
Apparmor profile |
#include <tunables/global>
/usr/share/librewolf/librewolf flags=(complain) {
#include <abstractions/audio>
#include <abstractions/cups-client>
#include <abstractions/dbus-strict>
#include <abstractions/dbus-session-strict>
#include <abstractions/dconf>
#include <abstractions/gnome>
#include <abstractions/ibus>
#include <abstractions/nameservice>
#include <abstractions/openssl>
#include <abstractions/p11-kit>
#include <abstractions/ubuntu-unity7-base>
#include <abstractions/ubuntu-unity7-launcher>
/usr/share/librewolf/librewolf mr,
/etc/ r,
/etc/mime.types r,
/etc/mailcap r,
/etc/xdg/*buntu/applications/defaults.list r, # for all derivatives
/etc/xfce4/defaults.list r,
/usr/share/xubuntu/applications/defaults.list r,
owner /home/.local/share/applications/defaults.list r,
owner /home/.local/share/applications/mimeapps.list r,
owner /home/.local/share/applications/mimeinfo.cache r,
/var/lib/snapd/desktop/applications/mimeinfo.cache r,
/var/lib/snapd/desktop/applications/*.desktop r,
owner /tmp/** m,
owner /var/tmp/** m,
owner /var/run/shm/shmfd-* rw,
/tmp/.X[0-9]*-lock r,
/etc/udev/udev.conf r,
# Doesn't seem to be required, but noisy. Maybe allow 'r' for 'b*' if needed.
# Possibly move to an abstraction if anything else needs it.
deny /run/udev/data/** r,
# let the shell know we launched something
/etc/timezone r,
/etc/wildmidi/wildmidi.cfg r,
# noisy
deny /usr/lib/librewolf-addons/** w,
deny /usr/lib/xulrunner-addons/** w,
deny /usr/lib/xulrunner-*/components/*.tmp w,
deny /.suspended r,
deny /boot/initrd.img* r,
deny /boot/vmlinuz* r,
deny /var/cache/fontconfig/ w,
deny /home/.local/share/recently-used.xbel r,
# TODO: investigate
deny /usr/bin/gconftool-2 x,
# These are needed when a new user starts librewolf is used
/usr/bin/basename ixr,
/usr/bin/dirname ixr,
/usr/bin/pwd ixr,
/sbin/killall5 ixr,
/bin/which ixr,
/usr/bin/tr ixr,
/proc/ r,
/proc/[0-9]*/cmdline r,
/proc/[0-9]*/mountinfo r,
/proc/[0-9]*/stat r,
owner /proc/[0-9]*/task/[0-9]*/stat r,
/proc/[0-9]*/status r,
/proc/filesystems r,
/proc/sys/vm/overcommit_memory r,
/sys/devices/pci[0-9]*/**/uevent r,
/sys/devices/platform/**/uevent r,
/sys/devices/pci*/**/{busnum,idVendor,idProduct} r,
/sys/devices/pci*/**/{,subsystem_}device r,
/sys/devices/pci*/**/{,subsystem_}vendor r,
/sys/devices/system/node/node[0-9]*/meminfo r,
# /sys/devices/pci[0-9]*/**/{config,revision} r,
owner /home/.cache/thumbnails/** w,
# Needed for the crash reporter
owner /proc/[0-9]*/environ r,
owner /proc/[0-9]*/auxv r,
/etc/lsb-release r,
/usr/bin/expr ix,
/sys/devices/system/cpu/ r,
/sys/devices/system/cpu/** r,
# about:memory
owner /proc/[0-9]*/statm r,
owner /proc/[0-9]*/smaps r,
# Needed for container to work in xul builds
/usr/lib/xulrunner-*/plugin-container ixr,
# Downloads and Desktop folders
owner /home/ r,
owner /home/{*,[^.]*/**}.{[jJ][sS][oO][nN],[hH][tT][mM][lL]} rw, # To backup bookmarks
owner /home/dwhelper/{,**} rw,
# Noisy
audit deny /home/{*,[^.]**} mx,
audit deny /home/.[^amf]*/** m,
audit deny /home/.[^a]*/** x,
# audit deny /home/** x,
# audit deny owner /**/* x,
audit deny /home/.* w,
audit deny /home/.bash_history r,
# per-user librewolf configuration
owner /home/.config/ rw,
owner /home/.config/librewolf/** rw,
owner /home/.config/librewolf/**/*.{mdb,db,parentlock,sqlite}* k,
owner /home/.config/librewolf/plugins/** rm,
owner /home/.config/librewolf/**/plugins/** rm,
}
Funciona muy bien en debian trixie , muchas gracias