| To: | Tim Shimmin <tes@xxxxxxx> |
|---|---|
| Subject: | Re: bug: truncate to zero + setuid |
| From: | Roger Willcocks <roger@xxxxxxxxxxxxxxxx> |
| Date: | Mon, 29 Oct 2007 18:56:16 +0000 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <47252F62.6030503@sgi.com> |
| References: | <47249E7A.7060709@filmlight.ltd.uk> <47252F62.6030503@sgi.com> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Thunderbird 1.5.0.5 (X11/20060728) |
Tim Shimmin wrote:
Yes I looked at simply unsetting the XFS_AT_SIZE bit (you'd also need to setHi Roger, timeflags appropriately) but the problem is the bit's used to check when to create a transaction - either up front as XFS_TRANS_SETATTR_NOT_SIZE, or later on, after the inode's been locked and unlocked again, as XFS_TRANS_SETATTR_SIZE. So if you unset the bit (and there's still more to do) you need to build a not_size transaction, at which point you might as well rewrite the whole routine... -- Roger |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Default mount options (that suck less)., Eric Sandeen |
|---|---|
| Next by Date: | Re: [RFC] add FIEMAP ioctl to efficiently map file allocation, Andreas Dilger |
| Previous by Thread: | Re: bug: truncate to zero + setuid, Tim Shimmin |
| Next by Thread: | Re: bug: truncate to zero + setuid, Timothy Shimmin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |