sysutils/fusefs-ntfs should be additionally patched to behave as FreeBSD's mount_* binaries
Non-root users, should be able to mount via setting of: vfs.usermount and devfs.rules as all mount_* binaries
That is, for non-root users, ntfs-3g should:
1) Not to reguire, setuid bit set on ntfs-3g binary
2) Patch to enable non-root users to mount
3) Patch to enable non-root users to umount
I've achieved 2):
I've deleted lines: (# vi ntfs-3g.c)
But it requires 1) AND non-root users were affected by 3), that is, they weren't able to umount!
After this is solved, port maintainer should integrate it in ports tree.
We don't need chaotic, linux's way, of securing.
Non-root users, should be able to mount via setting of: vfs.usermount and devfs.rules as all mount_* binaries
That is, for non-root users, ntfs-3g should:
1) Not to reguire, setuid bit set on ntfs-3g binary
2) Patch to enable non-root users to mount
3) Patch to enable non-root users to umount
I've achieved 2):
I've deleted lines: (# vi ntfs-3g.c)
Code:
#ifndef FUSE_INTERNAL
if ((getuid() != geteuid()) || (getgid() != getegid())) {
fprintf(stderr, "%s", setuid_msg);
return NTFS_VOLUME_INSECURE;
}
#endif
But it requires 1) AND non-root users were affected by 3), that is, they weren't able to umount!
After this is solved, port maintainer should integrate it in ports tree.
We don't need chaotic, linux's way, of securing.