VirtualBox

Changeset 70728 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jan 24, 2018 2:21:00 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120475
Message:

Remove SUID, SGID and sticky bit handling from Linux shared folders.
bugref:9047: Clean up Linux guest vboxuser device
Now that shared folders no longer pass through SUID, SGID and the sticky bits,
remove the code from the Linux guest driver that handled them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r69500 r70728  
    8080
    8181#define mode_set(r) attr->fMode & (RTFS_UNIX_##r) ? (S_##r) : 0;
    82     mode  = mode_set(ISUID);
    83     mode |= mode_set(ISGID);
    84 
    85     mode |= mode_set(IRUSR);
     82    mode  = mode_set(IRUSR);
    8683    mode |= mode_set(IWUSR);
    8784    mode |= mode_set(IXUSR);
     
    361358        if (iattr->ia_valid & ATTR_MODE)
    362359        {
    363             info.Attr.fMode  = mode_set(ISUID);
    364             info.Attr.fMode |= mode_set(ISGID);
    365             info.Attr.fMode |= mode_set(IRUSR);
     360            info.Attr.fMode  = mode_set(IRUSR);
    366361            info.Attr.fMode |= mode_set(IWUSR);
    367362            info.Attr.fMode |= mode_set(IXUSR);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette