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-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0707191802050.31013@fbirervta.pbzchgretzou.qr>
Date:	Thu, 19 Jul 2007 18:02:45 +0200 (CEST)
From:	Jan Engelhardt <jengelh@...putergmbh.de>
To:	Jean Delvare <khali@...ux-fr.org>
cc:	Kay Sievers <kay.sievers@...y.org>, Greg KH <gregkh@...e.de>,
	Tejun Heo <htejun@...il.com>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: sysfs root link count broken in 2.6.22-git5


On Jul 19 2007 10:41, Jean Delvare wrote:
>> Well, just check if /sys/devices/ exists, that should be cheap enough. :)
>
>Yes, this is a possibility, and one I had considered at first. But I
>wasn't sure which subdirectory to check. sysfs isn't well known for its
>stability, and I didn't know which directories exist since the
>early days of sysfs, and which do not. For example, fs, kernel and
>module were not present in 2.6.5. I am also not sure if directories
>which exist today are guaranteed to exist forever. This is the reason
>why I decided to check the link count instead, basically checking that
>at least one subdirectory exists, without having to name it.

If anything exists, it is likely to be mounted.
opendir, 3x readdir, exit the loop, done :)


	Jan
-- 
-
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