CVSROOT:        /cvs/src
Module name:    src
Changes by:     [EMAIL PROTECTED]       2003-11-26 13:23:28

Modified files:
        winsup/cygwin  : ChangeLog dir.cc external.cc fhandler.cc 
                         fhandler_socket.cc path.cc sec_acl.cc 
                         sec_helper.cc security.cc security.h thread.cc 

Log message:
        * dir.cc (mkdir): Use local security_descriptor. Call
        set_security_attribute appropriately.
        * external.cc (cygwin_internal): Ditto.
        * fhandler.cc (fhandler_base::open): Ditto.
        * fhandler_socket.cc (fhandler_socket::bind): Ditto.
        * path.cc (symlink_worker): Ditto.
        * sec_acl.cc (setacl): Ditto. Call read_sd appropriately.
        (getace): Ditto.
        * sec_helper.cc (security_descriptor::malloc): New method.
        (security_descriptor::realloc): New method.
        (security_descriptor::free): New method.
        * security.cc (read_sd): Get security_descriptor as parameter instead
        of PSECURITY_DESCRIPTOR and a size. Drop unnecessary parameter check.
        Allocate the security_descriptor buffer according to size returned by
        a call to GetFileSecurity. Return buffer size on success.
        (write_sd): Get security_descriptor as parameter instead of
        PSECURITY_DESCRIPTOR and a size.
        (get_nt_attribute): Use local security_descriptor.
        (get_nt_object_attribute): Ditto in case of type == SE_REGISTRY_KEY.
        Allocate security_descriptor buffer according to size returned by
        a call to RegGetKeySecurity.
        (alloc_sd): Make static. Get security_descriptor as parameter instead
        of PSECURITY_DESCRIPTOR and a size. Drop unnecessary parameter check.
        (set_security_attribute): Get security_descriptor as parameter instead
        of PSECURITY_DESCRIPTOR and a size.
        (set_nt_attribute): Use local security_descriptor.
        (check_file_access): Ditto.
        * security.h: Add class security_descriptor.
        (read_sd): Change declaration to get security_descriptor as parameter
        instead of PSECURITY_DESCRIPTOR and a size.
        (write_sd): Ditto.
        (set_security_attribute): Ditto.
        (alloc_sd): Remove declaration.
        * thread.cc (semaphore::semaphore): Use local security_descriptor. Call
        set_security_attribute appropriately.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.2182&r2=1.2183
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dir.cc.diff?cvsroot=src&r1=1.76&r2=1.77
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/external.cc.diff?cvsroot=src&r1=1.59&r2=1.60
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.cc.diff?cvsroot=src&r1=1.162&r2=1.163
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_socket.cc.diff?cvsroot=src&r1=1.113&r2=1.114
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/path.cc.diff?cvsroot=src&r1=1.279&r2=1.280
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sec_acl.cc.diff?cvsroot=src&r1=1.33&r2=1.34
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sec_helper.cc.diff?cvsroot=src&r1=1.45&r2=1.46
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/security.cc.diff?cvsroot=src&r1=1.155&r2=1.156
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/security.h.diff?cvsroot=src&r1=1.48&r2=1.49
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.cc.diff?cvsroot=src&r1=1.146&r2=1.147

Reply via email to