summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-09-02 12:53:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:29 -0500
commite722cb25d8b2584a21dc6b4ecbca3b04c4dcb2c1 (patch)
treee348cd9c2ab8f5fbabf4814cdd028f5f7b731c2a /source3/lib
parenta3ef9eb6dd8b7afe405f0c3e174b319051a3676b (diff)
downloadsamba-e722cb25d8b2584a21dc6b4ecbca3b04c4dcb2c1.tar.gz
samba-e722cb25d8b2584a21dc6b4ecbca3b04c4dcb2c1.tar.bz2
samba-e722cb25d8b2584a21dc6b4ecbca3b04c4dcb2c1.zip
r9952: Adapt better to the Windows way of taking and assigning ownership:
* Users with SeRestorePrivilege may chown files to anyone (be it as a backup software or directly using the ownership-tab in the security acl editor on xp), while * Users with SeTakeOwnershipPrivilege only can chown to themselves. Simo, Jeremy. I think this is correct now. Guenther (This used to be commit 1ef7a192eed457d302a08c692bb54a73a1af4afd)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/privileges.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c
index 8bb6108448..a2797f2a5d 100644
--- a/source3/lib/privileges.c
+++ b/source3/lib/privileges.c
@@ -38,6 +38,7 @@ const SE_PRIV se_add_users = SE_ADD_USERS;
const SE_PRIV se_disk_operators = SE_DISK_OPERATOR;
const SE_PRIV se_remote_shutdown = SE_REMOTE_SHUTDOWN;
const SE_PRIV se_restore = SE_RESTORE;
+const SE_PRIV se_take_ownership = SE_TAKE_OWNERSHIP;
/********************************************************************
This is a list of privileges reported by a WIndows 2000 SP4 AD DC