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: <20100613185858.GB8055@thunk.org>
Date:	Sun, 13 Jun 2010 14:58:59 -0400
From:	tytso@....edu
To:	Andi Kleen <andi@...stfloor.org>
Cc:	linux-ext4@...r.kernel.org
Subject: Re: ext4 df free space reporting not reliable?

On Sun, Jun 13, 2010 at 12:34:51PM +0200, Andi Kleen wrote:
> > Are you creating the files as root?  Sounds like the standard reserved
> > blocks behavior that's been around since ext3, ext2, BSD's ufs, etc...
> 
> Yes everything is root.
> 
> I would expect root df to not report the reservation. Is that not the case?

No, the reservation is always reported, regardless of which user ID is
executing the statfs(2) system call.  This has always been true, going
all the way back to BSD 4.3.

I could see the argument for doing this differently, but I could also
see that being very surprising for people to see different results
depending on whether they are running df from a setuid shell or not.
I'm not aware of any Unix system which has implemented the root-only
reservation system which has done this.

	    	    	   	     	  - Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ