VirtualBox

Ignore:
Timestamp:
May 29, 2019 8:21:42 PM (6 years ago)
Author:
vboxsync
Message:

linux/vboxsf: Relax setattr permission checks. bugref:9172 ticketref:18569

File:
1 edited

Legend:

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

    r77966 r78860  
    801801
    802802    /*
    803      * Need to check whether the caller is allowed to modify the attributes or not.
     803     * Do minimal attribute permission checks.  We set ATTR_FORCE since we cannot
     804     * preserve ownership and such and would end up with EPERM here more often than
     805     * we would like.  For instance it would cause 'cp' to complain about EPERM
     806     * from futimes() when asked to preserve times, see ticketref:18569.
    804807     */
     808    iattr->ia_valid |= ATTR_FORCE;
    805809#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
    806810    rc = setattr_prepare(dentry, iattr);
Note: See TracChangeset for help on using the changeset viewer.

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