s4-posix: allow change ownership of files if the user has the right privileges
authorAndrew Tridgell <tridge@samba.org>
Wed, 3 Mar 2010 03:25:39 +0000 (14:25 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 3 Mar 2010 12:05:23 +0000 (23:05 +1100)
commit8fe783edaf79bcae5c55c9eb5159104537ccf930
treeff4570ecbd5ec22cf44f60bce856b3e81fb674c2
parente0726d4d661cfc508e8e8fd210a2cfba7ed53682
s4-posix: allow change ownership of files if the user has the right privileges

When a user has SEC_PRIV_TAKE_OWNERSHIP or SEC_PRIV_RESTORE they have
permission to change the ownership of a file.

This should fix bug 6987

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
source4/ntvfs/posix/pvfs_acl.c