No effect of SE_BACKUP_NAME privilege on cygwin?

Christian Franke Christian.Franke@t-online.de
Wed Mar 1 19:29:00 GMT 2006


Enabling SE_BACKUP_NAME has no effect for cygwin programs.

The attached program demonstrates the issue.
It retrieves the attributes of a normally inaccessible file without and 
with SE_BACKUP_NAME.
(The file should be present on XP with C:\ as system drive)

If compiled with "-mno-cygwin" and running as admin on XP Prof, the 
second access succeeds as expected:

GetFileAttributes failed: 5
SeBackupPrivilege enabled!
GetFileAttributes = 0x0026

But if running as a cygwin program on 1.5.19, the result is:

GetFileAttributes failed: 5
SeBackupPrivilege enabled!
GetFileAttributes failed: 5

The privilege can be enabled, but has no effect - bug or feature ?-)

Thanks for any help.

Christian

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: privilege.cc
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060301/bd865545/attachment.cc>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list