NetBSD Problem Report #57904
From www@netbsd.org Sat Feb 3 22:32:55 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id D25FB1A9238
for <gnats-bugs@gnats.NetBSD.org>; Sat, 3 Feb 2024 22:32:55 +0000 (UTC)
Message-Id: <20240203223254.8EE1D1A9239@mollari.NetBSD.org>
Date: Sat, 3 Feb 2024 22:32:54 +0000 (UTC)
From: rbranco@suse.de
Reply-To: rbranco@suse.de
To: gnats-bugs@NetBSD.org
Subject: ntfs code accepts any mask passed by -m option from mount_ntfs
X-Send-Pr-Version: www-1.0
>Number: 57904
>Notify-List: christos@NetBSD.org
>Category: kern
>Synopsis: ntfs code accepts any mask passed by -m option from mount_ntfs
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: feedback
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 03 22:35:00 +0000 2024
>Closed-Date:
>Last-Modified: Tue Oct 08 23:57:33 +0000 2024
>Originator: Ricardo Branco
>Release: NetBSD 10.0_RC3
>Organization:
>Environment:
>Description:
The ntfs code accepts any value passed from the -m option to `mount_ntfs`.
>How-To-Repeat:
$ mkntfs -fF ~/ntfs.img
$ sudo vnconfig vnd0 ~/ntfs.img
$ sudo mount_ntfs -m 010555 /dev/vnd0 /mnt
$ ls -l /mnt
?r-xr-xr-x 1 root wheel 0 Feb 3 23:15 /mnt
Bug fixed in FreeBSD:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=114856
>Fix:
https://github.com/NetBSD/src/pull/32
>Release-Note:
>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57904 CVS commit: src/sys/fs/ntfs
Date: Sat, 3 Feb 2024 19:16:59 -0500
Module Name: src
Committed By: christos
Date: Sun Feb 4 00:16:59 UTC 2024
Modified Files:
src/sys/fs/ntfs: ntfs_vfsops.c
Log Message:
PR/57904: Ricardo Branco: Mask file permissions we get from mount_ntfs
-m option
To generate a diff of this commit:
cvs rdiff -u -r1.110 -r1.111 src/sys/fs/ntfs/ntfs_vfsops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Tue, 08 Oct 2024 23:57:33 +0000
State-Changed-Why:
Fixed in HEAD? Does this need pullup-9 or pullup-10? Do we even still
support mount_ntfs instead of just using ntfs-3g from pkgsrc?
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.