NetBSD Problem Report #57904

From  Sat Feb  3 22:32:55 2024
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id D25FB1A9238
	for <>; Sat,  3 Feb 2024 22:32:55 +0000 (UTC)
Message-Id: <>
Date: Sat,  3 Feb 2024 22:32:54 +0000 (UTC)
Subject: ntfs code accepts any mask passed by -m option from mount_ntfs
X-Send-Pr-Version: www-1.0

>Number:         57904
>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 03 22:35:00 +0000 2024
>Last-Modified:  Sun Feb 04 00:20:01 +0000 2024
>Originator:     Ricardo Branco
>Release:        NetBSD 10.0_RC3
The ntfs code accepts any value passed from the -m option to `mount_ntfs`.

$ 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:


From: "Christos Zoulas" <>
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.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.