In our situation home folders are mounted using autofs using NFS v4,
Kerberos is NOT in use.

root@jammy:~# lsb_release -rd
Description:    Ubuntu 22.04 LTS
Release:        22.04


root@jammy:~# dpkg -l chromium-browser
--snip--
ii  chromium-browser 1:85.0.4183.83-0ubuntu2 amd64        Transitional package 
- chromium-browser ->>
root@jammy:~# snap list |grep chromium
chromium           101.0.4951.64    1993   latest/stable  canonical*  -


Running chromium as user with NFS home folder at /staff/me:

me@jammy:~$ chromium
cannot open path of the current working directory: Permission denied

/var/log/syslog:
May 12 12:10:31 jammy systemd[15457]: Started 
snap.chromium.chromium.41586725-30fd-464e-9987-08936a8991eb.scope.
May 12 12:10:31 jammy kernel: [ 1496.959498] nfs: RPC call returned error 13
May 12 12:10:31 jammy kernel: [ 1496.959659] audit: type=1400 
audit(1652375431.246:78): apparmor="DENIED" operation="sendmsg" 
profile="/usr/lib/snapd/snap-confine" pid=56203 comm="snap-confine" 
laddr=qq.ww.ee.rr lport=964 faddr=zz.xx.cc.vv fport=2049 family="inet" 
sock_type="stream" protocol=6 requested_mask="send" denied_mask="send"

root@jammy:~# cat /etc/apparmor.d/tunables/home.d/ubuntu 
# This file is auto-generated. It is recommended you update it using:
# $ sudo dpkg-reconfigure apparmor
#
# The following is a space-separated list of where additional user home
# directories are stored, each must have a trailing '/'. Directories added
# here are appended to @{HOMEDIRS}.  See tunables/home for details.
@{HOMEDIRS}+=/staff/ /fac/ /grad/ /visitor/


root@jammy:~# cat /etc/auto.staff 
*       -rw,nosuid nfshome.SSSSS.edu:/nfshome/staff/&

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1884299

Title:
  Chromium snap won't run with nfs home drive

Status in firefox package in Ubuntu:
  Confirmed
Status in snapd package in Ubuntu:
  Confirmed

Bug description:
  My physical computer lab uses AutoFS home drives (per
  https://help.ubuntu.com/community/Autofs#Wildcard_characters).   If
  any user tries to run chromium browser, it fails.

  I assume it is related to these:
  https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1662552
  But that says a fix was released, but seems toi only work for NFS home drives
  https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1782873
  That ones is reported as a dupe but it's not, AutoFS home drives still don't 
work.

  $ chromium -v
  cannot create user data directory: /home/test.student2/snap/chromium/1193: 
Stale file handle

  $ tail -f /var/log/syslog
  Jun 19 11:21:09 tbl-h10-4 kernel: [18949.188657] nfs: RPC call returned error 
13
  Jun 19 11:21:09 tbl-h10-4 kernel: [18949.188666] nfs: RPC call returned error 
13
  Jun 19 11:21:09 tbl-h10-4 kernel: [18949.188695] audit: type=1400 
audit(1592590869.460:59): apparmor="DENIED" operation="sendmsg" 
profile="/snap/snapd/8140/usr/lib/snapd/snap-confine" pid=12884 
comm="snap-confine" laddr=192.168.43.216 lport=766 faddr=192.168.43.4 
fport=2049 family="inet" sock_type="stream" protocol=6 requested_mask="send" 
denied_mask="send"
  Jun 19 11:21:09 tbl-h10-4 kernel: [18949.188697] audit: type=1400 
audit(1592590869.460:60): apparmor="DENIED" operation="sendmsg" 
profile="/snap/snapd/8140/usr/lib/snapd/snap-confine" pid=12884 
comm="snap-confine" laddr=192.168.43.216 lport=766 faddr=192.168.43.4 
fport=2049 family="inet" sock_type="stream" protocol=6 requested_mask="send" 
denied_mask="send"

  $ lsb_release -rd
  Description:  Ubuntu 20.04 LTS

  $ apt policy chromium-browser
  chromium-browser:
    Installed: 81.0.4044.129-0ubuntu0.20.04.1
    Candidate: 81.0.4044.129-0ubuntu0.20.04.1
    Version table:
   *** 81.0.4044.129-0ubuntu0.20.04.1 500
          500 http://ca.archive.ubuntu.com/ubuntu focal-updates/universe amd64 
Packages
          100 /var/lib/dpkg/status
       80.0.3987.163-0ubuntu1 500
          500 http://ca.archive.ubuntu.com/ubuntu focal/universe amd64 Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1884299/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to