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