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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 8 Apr 2009 09:54:11 +0400
From:	Oleg Drokin <green@...uxhacker.ru>
To:	linux-fsdevel@...r.kernel.org
Cc:	linux-kernel@...r.kernel.org
Subject: [PATCH] Separate out common fstatat code

Hello!

   It seems we have way too many copy&pasted fstatat code elsewhere which
   might not have been a problem until now, but with all the changes
   with "stat light" now and who knows what other additions in there in
   the future, it really helps if we have only one copy of the code.

   Hence this patch adds fstatat_common() that fills struct kstat with
   proper values and does all the AT flags parsing that's needed and
   then calls all the proper underlying functions, what's left to the
   caller now is to only copy filled out kstat buffer to the final
   destination.

Bye,
    Oleg

View attachment "fstatat_common_code.diff" of type "text/plain" (6676 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ