Displaying 2 results from an estimated 2 matches for "chown_common".
2014 Aug 05
0
Stack dumps in use_block_rsv while rebalancing ("block rsv returned -28")
...t;] btrfs_dirty_inode+0x58/0xe0 [btrfs]
[376007.682141] [<ffffffffa00fcaf2>] btrfs_setattr+0xa2/0xf0 [btrfs]
[376007.682144] [<ffffffff811eec74>] notify_change+0x1c4/0x3b0
[376007.682146] [<ffffffff811dde96>] ? final_putname+0x26/0x50
[376007.682149] [<ffffffff811d088d>] chown_common+0x16d/0x1a0
[376007.682153] [<ffffffff811f2b08>] ? __mnt_want_write+0x58/0x70
[376007.682156] [<ffffffff811d1a8f>] SyS_fchownat+0xbf/0x100
[376007.682159] [<ffffffff811d1aed>] SyS_chown+0x1d/0x20
[376007.682163] [<ffffffff817858bf>] tracesys+0xe1/0xe6
[376007.682165] ---...
2013 Nov 28
3
[Bug 10295] New: do_lchown() after set_xattr() causes xattrs to be dropped on Linux 3.10.20.
...d=9489
Candidate patch on rsync 3.1.0. Please review.
Example:
rsync -Xa /foo /bar
Expected:
Copies will have the same security attributes as the originals.
Reality:
Copies have security attributes cleared.
Please look at rsync-3.1.0/rsync.c lines 492 & 541 in the context of
chown_common() from linux kernel fs/open.c around the 500th line. It appears
that the SET{G,U}ID bits and security attrs are cleared.
Relevant kernel line:
if (!S_ISDIR(inode->i_mode))
newattrs.ia_valid |=
ATTR_KILL_SUID | ATTR_KILL_SGID | ATTR_KILL_PRIV;...