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:	Fri, 03 Jul 2015 13:01:59 +0100
From:	jon <jon@...shouse.co.uk>
To:	coreutils@....org
Cc:	linux-kernel@...r.kernel.org
Subject: Feature request, "create on mount" to create mount point directory
 on mount, implied remove on unmount

Hi, could I make a hugely nieve user request :-) 

Would it be possible to add a new mount option to everything?

New mount option 'com' = "create on mount" (implied remove on unmount).


Example fstab entry
/mounts/amountpoint	LABEL=notalwayshere	ext4,com


# ls /mounts
# mount /mounts/amountpoint
# ls /mounts
amountpoint
# umount /mounts/amountpoint
# ls /mounts
# 


The idea is to create a mount point directory (one level only) if does
not exist when an FS is mounted, umount would remove it when an FS is
unmounted (assuming it was empty) otherwise generate a warning.

As the 'com' flag would need to carried with the mount I assume the
logic would have to be handled in mount() and umount() call itself ?

I can see issues if the mount point directory is read only or similar,
but I am sure most cases could be handled with just a warning.

Many thanks,
Jon


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ