lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 5 Sep 2017 16:14:58 +0200
From:   Pali Rohár <pali.rohar@...il.com>
To:     OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>,
        linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: Changing FAT label of mounted file system

Hello!

On most file system it is possible to change its label at anytime, when 
mounted or unmounted. But FAT is such special file system on which is 
label stored in two location, plus one is in directory structure (which 
cannot be modified when file system is mounted).

I would like to ask what about providing FAT specific IOCTL for vfat 
kernel driver which would allow to change volume label?

Currently vfat provides FAT_IOCTL_GET_VOLUME_ID which returns volume 
serial number, so in similar way it could be extended to provide 
FAT_IOCTL_GET_VOLUME_LABEL and FAT_IOCTL_SET_VOLUME_LABEL.

Now when partition manager program wants to change label of FAT 
partition, it first needs to unmount it, then change label and after 
that mount it again. Providing IOCTL would help partition manager 
programs to implement operation for changing volume label easier. Also 
unmounting partition is now always possible (when busy).

Next typical usage is opening file manager and in its window "renaming" 
volume label. Currently such thing is not possible to implement (without 
hacks) for FAT as once file manager has opened location of FAT partition 
it needs to be mounted -- and changing volume label is not possible.

Other file systems do not have this problem as label is not stored in 
directory structure, managed by kernel driver.

-- 
Pali Rohár
pali.rohar@...il.com

Download attachment "signature.asc " of type "application/pgp-signature" (199 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ