Results 1 to 3 of 3

Thread: Apparmor breaks u2f for Firefox (USB device, Ledger Nano S)

  1. #1
    Join Date
    Aug 2020
    Beans
    12

    Apparmor breaks u2f for Firefox (USB device, Ledger Nano S)

    I have a USB device (Ledger Nano S) that I'm able to use with the native desktop application. However, I was unable to use it with Firefox (websites like myetherwallet & mycrypto gave me "u2f error" messages). I solved this by using the following commands.
    Code:
    sudo systemctl stop apparmor
    sudo systemctl disable apparmor
    This allows me to use my Ledger Nano S with Firefox (websites like mytherwallet & mycrypto work properly). However, I would prefer to not completely disable apparmor.

    These are my profiles before disabling apparmor:
    Code:
    50 profiles are loaded.
    40 profiles are in enforce mode.
       /snap/core/9804/usr/lib/snapd/snap-confine
       /snap/core/9804/usr/lib/snapd/snap-confine//mount-namespace-capture-helper
       /usr/bin/man
       /usr/lib/NetworkManager/nm-dhcp-client.action
       /usr/lib/NetworkManager/nm-dhcp-helper
       /usr/lib/connman/scripts/dhclient-script
       /usr/lib/cups/backend/cups-pdf
       /usr/lib/lightdm/lightdm-guest-session
       /usr/lib/lightdm/lightdm-guest-session//chromium
       /usr/lib/snapd/snap-confine
       /usr/lib/snapd/snap-confine//mount-namespace-capture-helper
       /usr/sbin/cups-browsed
       /usr/sbin/cupsd
       /usr/sbin/cupsd//third_party
       /usr/sbin/tcpdump
       /{,usr/}sbin/dhclient
       firefox//browser_java
       firefox//browser_openjdk
       firefox//sanitized_helper
       ippusbxd
       libreoffice-senddoc
       libreoffice-soffice//gpg
       libreoffice-xpdfimport
       libvirtd
       libvirtd//qemu_bridge_helper
       lsb_release
       man_filter
       man_groff
       nvidia_modprobe
       nvidia_modprobe//kmod
       snap-update-ns.chromium
       snap-update-ns.core
       snap-update-ns.pulsemixer
       snap-update-ns.software-boutique
       snap-update-ns.ubuntu-mate-welcome
       snap.chromium.chromedriver
       snap.chromium.chromium
       snap.core.hook.configure
       snap.pulsemixer.pulsemixer
       virt-aa-helper
    10 profiles are in complain mode.
       firefox
       firefox//lsb_release
       libreoffice-oopslash
       libreoffice-soffice
       snap.software-boutique.software-boutique
       snap.ubuntu-mate-welcome.hook.install
       snap.ubuntu-mate-welcome.hook.post-refresh
       snap.ubuntu-mate-welcome.hook.remove
       snap.ubuntu-mate-welcome.software-boutique
       snap.ubuntu-mate-welcome.ubuntu-mate-welcome
    These are my profiles after disabling apparmor (using: sudo systemctl stop apparmor > sudo systemctl disable apparmor)
    Code:
    17 profiles are loaded.
    11 profiles are in enforce mode.
       /snap/core/9804/usr/lib/snapd/snap-confine
       /snap/core/9804/usr/lib/snapd/snap-confine//mount-namespace-capture-helper
       snap-update-ns.chromium
       snap-update-ns.core
       snap-update-ns.pulsemixer
       snap-update-ns.software-boutique
       snap-update-ns.ubuntu-mate-welcome
       snap.chromium.chromedriver
       snap.chromium.chromium
       snap.core.hook.configure
       snap.pulsemixer.pulsemixer
    6 profiles are in complain mode.
       snap.software-boutique.software-boutique
       snap.ubuntu-mate-welcome.hook.install
       snap.ubuntu-mate-welcome.hook.post-refresh
       snap.ubuntu-mate-welcome.hook.remove
       snap.ubuntu-mate-welcome.software-boutique
       snap.ubuntu-mate-welcome.ubuntu-mate-welcome

    I would prefer to not use:
    Code:
    sudo systemctl stop apparmor > sudo systemctl disable apparmor
    How can I fix u2f for Firefox without completely disabling apparmor?
    Last edited by fluffy20470-50233; August 20th, 2020 at 05:50 PM. Reason: reset fonts to forums defaults to comply with the forums code of conduct.

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,616
    Distro
    Ubuntu

    Re: Apparmor breaks u2f for Firefox (USB device, Ledger Nano S)

    Not sure what's going on with your firefox, but Ubuntu's firefox ships with the apparmor profile disabled.
    You can reset it to disabled if you somehow enabled it by
    running
    Code:
    sudo ln -s /etc/apparmor.d/usr.bin.firefox /etc/apparmor.d/disable/
    sudo apparmor_parser -R /etc/apparmor.d/usr.bin.firefox
    apparmor reference here: https://help.ubuntu.com/community/Ap...le_one_profile
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Aug 2020
    Beans
    12

    Re: Apparmor breaks u2f for Firefox (USB device, Ledger Nano S)

    Quote Originally Posted by deadflowr View Post
    Not sure what's going on with your firefox, but Ubuntu's firefox ships with the apparmor profile disabled.
    You can reset it to disabled if you somehow enabled it by
    running
    Code:
    sudo ln -s /etc/apparmor.d/usr.bin.firefox /etc/apparmor.d/disable/
    sudo apparmor_parser -R /etc/apparmor.d/usr.bin.firefox
    apparmor reference here: https://help.ubuntu.com/community/Ap...le_one_profile
    Thank you. problem solved!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •