Displaying 4 results from an estimated 4 matches for "set_stat_xattr".
2018 Feb 05
2
Unfortunate results from fake-super
....]
>
> This results in the copy being world-writable.
>
> Indeed. The file initially gets created as a mode-600 file, but the code
> later tweaks the permissions to match the symlink, which is (as you
> note) a bad thing.
>
> My first reaction is to change the code in set_stat_xattr()
> (in xattrs.c) from:
>
> if (fst.st_mode != mode)
> do_chmod(fname, mode);
>
> to:
>
> if (fst.st_mode != mode && !S_ISLNK(file->mode))
> do_chmod(fname, mode);
>
> ..wayne..
That's certainly an imp...
2010 Jan 27
6
DO NOT REPLY [Bug 7070] New: Permission denied message with --fake-super and permissionless directory
https://bugzilla.samba.org/show_bug.cgi?id=7070
Summary: Permission denied message with --fake-super and
permissionless directory
Product: rsync
Version: 3.0.6
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned at
2018 Feb 03
4
Unfortunate results from fake-super
When using fake-super mode in an rsync receiver, anything that's neither a
file nor a directory (e.g. devices, symlinks, etc) is converted into a file,
and properties such as original ownership, filetype, and permissions are
stored in a specific extended attribute.
In the case of a symlink, the contents of the link are stored in a plain
file. The original mode of the symlink is normally
2018 Feb 06
0
Unfortunate results from fake-super
...results in the copy being world-writable.
>>
>> Indeed. The file initially gets created as a mode-600 file, but the code
>> later tweaks the permissions to match the symlink, which is (as you
>> note) a bad thing.
>>
>> My first reaction is to change the code in set_stat_xattr()
>> (in xattrs.c) from:
>>
>> if (fst.st_mode != mode)
>> do_chmod(fname, mode);
>>
>> to:
>>
>> if (fst.st_mode != mode && !S_ISLNK(file->mode))
>> do_chmod(fname, mode);
>>
>>...