]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
cifs: Add mount options for backup intent (try #6)
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Mon, 26 Sep 2011 14:56:44 +0000 (09:56 -0500)
committerSteve French <smfrench@gmail.com>
Thu, 13 Oct 2011 04:42:17 +0000 (23:42 -0500)
commit3d3ea8e64efbeb3e4289675dbbfab82333395642
tree3f7c52039dceefeae2abf010a1a3ec8abef0c459
parent8bc4392a1e50f346e97f8777aaefd9cfc3d45c9f
cifs: Add mount options for backup intent (try #6)

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: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifs_fs_sb.h
fs/cifs/cifsacl.c
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/dir.c
fs/cifs/file.c
fs/cifs/link.c
fs/cifs/misc.c