• S
    cifs: Add mount options for backup intent (try #6) · 3d3ea8e6
    Shirish Pargaonkar 提交于
    Add mount options backupuid and backugid.
    
    It allows an authenticated user to access files with the intent to back them
    up including their ACLs, who may not have access permission but has
    "Backup files and directories user right" on them (by virtue of being part
    of the built-in group Backup Operators.
    
    When mount options backupuid is specified, cifs client restricts the
    use of backup intents to the user whose effective user id is specified
    along with the mount option.
    
    When mount options backupgid is specified, cifs client restricts the
    use of backup intents to the users whose effective user id belongs to the
    group id specified along with the mount option.
    
    If an authenticated user is not part of the built-in group Backup Operators
    at the server, access to such files is denied, even if allowed by the client.
    Signed-off-by: NShirish Pargaonkar <shirishpargaonkar@gmail.com>
    Reviewed-by: NJeff Layton <jlayton@redhat.com>
    Signed-off-by: NSteve French <smfrench@gmail.com>
    3d3ea8e6
file.c 63.1 KB