Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mounting NTFS failed #498

Open
beroal opened this issue Sep 19, 2024 · 3 comments
Open

Mounting NTFS failed #498

beroal opened this issue Sep 19, 2024 · 3 comments

Comments

@beroal
Copy link
Contributor

beroal commented Sep 19, 2024

Executing in the enforce mode

mount /dev/sda2 /root/mnt/test

prints

fuse: mount failed: Permission denied

Log:

apparmor="ALLOWED" operation="file_inherit" class="file" profile="ntfs-3g" name="/dev/tty2"  comm="mount.ntfs" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0 FSUID="root" OUID="root"
apparmor="ALLOWED" operation="mount" class="mount" info="failed mntpnt match" error=-13 profile="ntfs-3g" name="/root/mnt/test/"  comm="mount.ntfs" fstype="fuseblk" srcname="/dev/sda2" flags="rw, nosuid, nodev"
@roddhjav
Copy link
Owner

Your mountpoint /root/mnt/test needs to be defined in @{MOUNTS}. Here you would need to add /root/mnt to @{MOUNTS}.

I need to improve the doc about this.

@beroal
Copy link
Contributor Author

beroal commented Sep 20, 2024

Your mountpoint /root/mnt/test needs to be defined in @{MOUNTS}. Here you would need to add /root/mnt to @{MOUNTS}.

I can mount other file system types to /root/mnt/test just fine without any log messages.

@roddhjav
Copy link
Owner

This depend of the profile used to mount (different file-system are handled by different profile). Some profile are more relax about the mount rules they have. mount itself, can mount anything, in more places than ntfs-3g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants