I have the feature "nfs" enabled via the gui.
I can mount an nfs share fine, for example this command works fine:
mount -t nfs 10.10.10.10:/mnt/data/files /mnt/files
But if I try the same command using nfs4:
mount -t nfs4 10.10.10.10:/mnt/data/files /mnt/files
I see a denied error in syslog due to apparmor:
I'm assuming this is because the fstype is "nfs4" and the configs show "nfs" is allowed.
If I check the file mentioned in the log
Also same with the "config" file in
Is mounting with nfs4 not possible?
I can mount an nfs share fine, for example this command works fine:
mount -t nfs 10.10.10.10:/mnt/data/files /mnt/files
But if I try the same command using nfs4:
mount -t nfs4 10.10.10.10:/mnt/data/files /mnt/files
I see a denied error in syslog due to apparmor:
Jan 30 05:42:43 plex kernel: [510314.071512] audit: type=1400 audit(1643521363.429:147): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-105_</var/lib/lxc>" name="/mnt/files/" pid=1207314 comm="mount.nfs4" fstype="nfs4" srcname="10.10.10.10:/mnt/data/files"
I'm assuming this is because the fstype is "nfs4" and the configs show "nfs" is allowed.
If I check the file mentioned in the log
/var/lib/lxc/105/apparmor/lxc-105_\<-var-lib-lxc\>
at the very bottom of the file it only lists "mount fstype=nfs" and not nfs4.deny mount -> /proc/,
deny mount -> /sys/,
mount fstype=nfs,
}
Also same with the "config" file in
/var/lib/lxc/105
I see only fstype=nfs:lxc.apparmor.raw = mount fstype=nfs
,Is mounting with nfs4 not possible?
Last edited: