NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Amd mounts CD-ROM without any permission.
On Mon, 9 Nov 2026, Kogule Ryo wrote:
It still mounts CD-ROM automatically but drops all permission. Manual
mounting (mount_cd9660) still works.
Does anyone has any suggestion to fix it?
[...]
% ls -l /cd/drive0
lrwxrwxrwx 1 root wheel 20 Nov 9 01:01 /cd/drive0 -> /a/vnetbsd/cd/drive0
% ls -l /a/vnetbsd/cd
total 8
d--------- 20 root wheel 4096 Nov 2 17:34 drive0
This looks like a bug in the `cdfs' type of amd(8). It's memset()ing `cdfs_args'
(AKA `struct iso_args') to `0', then not changing the `iso_args.fmask' and
`iso_args.dmask' anywhere, so you end up with the permissions, above:
https://github.com/NetBSD/src/blob/trunk/external/bsd/am-utils/dist/amd/ops_cdfs.c#L114
File a PR. The fix (or at least, a hack) for this is pretty simple.
-RVP
Home |
Main Index |
Thread Index |
Old Index