tridge | 1 Dec 2004 06:22
Picon
Favicon
Gravatar

svn commit: samba r4025 - in branches/SAMBA_4_0/source/libcli/security: .

Author: tridge
Date: 2004-12-01 05:22:24 +0000 (Wed, 01 Dec 2004)
New Revision: 4025

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4025

Log:
added a sec_access_check() function for checking security descriptors
against a users security token and access_mask

Added:
   branches/SAMBA_4_0/source/libcli/security/access_check.c
Modified:
   branches/SAMBA_4_0/source/libcli/security/config.mk
   branches/SAMBA_4_0/source/libcli/security/security_descriptor.c

Changeset:
Added: branches/SAMBA_4_0/source/libcli/security/access_check.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/security/access_check.c	2004-11-30 22:57:41 UTC (rev 4024)
+++ branches/SAMBA_4_0/source/libcli/security/access_check.c	2004-12-01 05:22:24 UTC (rev 4025)
 <at>  <at>  -0,0 +1,162  <at>  <at> 
+/*
+   Unix SMB/CIFS implementation.
+
+   security access checking routines
+
+   Copyright (C) Andrew Tridgell 2004
+
+   This program is free software; you can redistribute it and/or modify
(Continue reading)

tridge | 1 Dec 2004 12:35
Picon
Favicon
Gravatar

svn commit: samba r4026 - in branches/SAMBA_4_0/source/ntvfs/posix: .

Author: tridge
Date: 2004-12-01 11:35:01 +0000 (Wed, 01 Dec 2004)
New Revision: 4026

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4026

Log:
added NT ACL checking on pvfs_open() for existing files. I need to
work out some way to do a decent test suite for this.

Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_acl.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c

Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_acl.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_acl.c	2004-12-01 05:22:24 UTC (rev 4025)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_acl.c	2004-12-01 11:35:01 UTC (rev 4026)
 <at>  <at>  -208,7 +208,7  <at>  <at> 
 		sd = acl->info.sd;
 		break;
 	default:
-		return NT_STATUS_INVALID_LEVEL;
+		return NT_STATUS_INVALID_ACL;
 	}

 	new_sd = info->set_secdesc.in.sd;
 <at>  <at>  -263,7 +263,7  <at>  <at> 
 		sd = acl->info.sd;
(Continue reading)

metze | 1 Dec 2004 17:51
Picon
Favicon

svn commit: samba r4027 - in branches/SAMBA_4_0/source/lib: .

Author: metze
Date: 2004-12-01 16:51:37 +0000 (Wed, 01 Dec 2004)
New Revision: 4027

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4027

Log:
add a useful function for debugging

metze

Modified:
   branches/SAMBA_4_0/source/lib/data_blob.c

Changeset:
Modified: branches/SAMBA_4_0/source/lib/data_blob.c
===================================================================
--- branches/SAMBA_4_0/source/lib/data_blob.c	2004-12-01 11:35:01 UTC (rev 4026)
+++ branches/SAMBA_4_0/source/lib/data_blob.c	2004-12-01 16:51:37 UTC (rev 4027)
 <at>  <at>  -142,3 +142,21  <at>  <at> 
 	return False;
 }

+/*******************************************************************
+print the data_blob as hex string
+*******************************************************************/
+char *data_blob_hex_string(TALLOC_CTX *mem_ctx, DATA_BLOB *blob)
+{
+	int i;
+	char *hex_string;
(Continue reading)

jerry | 1 Dec 2004 21:11
Picon
Favicon

svn commit: samba r4028 - in branches/SAMBA_3_0/source/printing: .

Author: jerry
Date: 2004-12-01 20:11:31 +0000 (Wed, 01 Dec 2004)
New Revision: 4028

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4028

Log:
* prevent the background LPQ daemon from updating 
  the print queue cache just because multiple smbd 
  processes sent a message that it was out of date.

* add some extra debug messages while trying to track down
  down jobs being left in the queue after printing has 
  completed.

Modified:
   branches/SAMBA_3_0/source/printing/printing.c

Changeset:
Sorry, the patch is too large (299 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4028

jerry | 1 Dec 2004 22:01
Picon
Favicon

svn commit: samba r4029 - in branches/SAMBA_3_0/packaging/Solaris: .

Author: jerry
Date: 2004-12-01 21:01:27 +0000 (Wed, 01 Dec 2004)
New Revision: 4029

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4029

Log:
solaris packaging fixes from Rob
Modified:
   branches/SAMBA_3_0/packaging/Solaris/makepkg.sh

Changeset:
Modified: branches/SAMBA_3_0/packaging/Solaris/makepkg.sh
===================================================================
--- branches/SAMBA_3_0/packaging/Solaris/makepkg.sh	2004-12-01 20:11:31 UTC (rev 4028)
+++ branches/SAMBA_3_0/packaging/Solaris/makepkg.sh	2004-12-01 21:01:27 UTC (rev 4029)
 <at>  <at>  -48,9 +48,11  <at>  <at> 
 	echo f none lib/libsmbclient.so 0755 root other
 	echo f none include/libsmbclient.h 0644 root other

-	echo "#\n# smbwrapper\n#"
-	echo f none lib/smbwrapper.so 0755 root other
-	echo f none bin/smbsh 0755 root other
+	if [ -f lib/smbwrapper.so -a -f bin/smbsh ]; then
+		echo "#\n# smbwrapper\n#"
+		echo f none lib/smbwrapper.so 0755 root other
+		echo f none bin/smbsh 0755 root other
+	fi

 	echo "#\n# nss_winbind.so\n#"
(Continue reading)

jerry | 1 Dec 2004 22:11
Picon
Favicon

svn commit: samba r4030 - in branches/SAMBA_3_0/source/printing: .

Author: jerry
Date: 2004-12-01 21:11:54 +0000 (Wed, 01 Dec 2004)
New Revision: 4030

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4030

Log:
patch from Rob -- don't force the cups printer-make-and-model tag as the comment for autoloaded printers
Modified:
   branches/SAMBA_3_0/source/printing/print_cups.c

Changeset:
Modified: branches/SAMBA_3_0/source/printing/print_cups.c
===================================================================
--- branches/SAMBA_3_0/source/printing/print_cups.c	2004-12-01 21:01:27 UTC (rev 4029)
+++ branches/SAMBA_3_0/source/printing/print_cups.c	2004-12-01 21:11:54 UTC (rev 4030)
 <at>  <at>  -66,12 +66,10  <at>  <at> 
 	ipp_attribute_t	*attr;		/* Current attribute */
 	cups_lang_t	*language;	/* Default language */
 	char		*name,		/* printer-name attribute */
-			*make_model,	/* printer-make-and-model attribute */
 			*info;		/* printer-info attribute */
 	static const char *requested[] =/* Requested attributes */
 			{
 			  "printer-name",
-			  "printer-make-and-model",
 			  "printer-info"
 			};       

 <at>  <at>  -151,7 +149,6  <at>  <at> 
(Continue reading)

jra | 2 Dec 2004 01:55
Picon
Favicon

svn commit: samba r4031 - in trunk/source/lib: .

Author: jra
Date: 2004-12-02 00:55:46 +0000 (Thu, 02 Dec 2004)
New Revision: 4031

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4031

Log:
Fix bug #2110 - ensure we convert to ucs2 correctly - matching
the 3.0.x code.
Jeremy.

Modified:
   trunk/source/lib/ms_fnmatch.c
   trunk/source/lib/util_unistr.c

Changeset:
Sorry, the patch is too large (421 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4031

jra | 2 Dec 2004 01:55
Picon
Favicon

svn commit: samba r4032 - in branches/SAMBA_3_0/source/lib: .

Author: jra
Date: 2004-12-02 00:55:47 +0000 (Thu, 02 Dec 2004)
New Revision: 4032

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4032

Log:
Fix bug #2110 - ensure we convert to ucs2 correctly.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/lib/ms_fnmatch.c
   branches/SAMBA_3_0/source/lib/util_unistr.c

Changeset:
Modified: branches/SAMBA_3_0/source/lib/ms_fnmatch.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ms_fnmatch.c	2004-12-02 00:55:46 UTC (rev 4031)
+++ branches/SAMBA_3_0/source/lib/ms_fnmatch.c	2004-12-02 00:55:47 UTC (rev 4032)
 <at>  <at>  -167,9 +167,18  <at>  <at> 
 		}
 	}

-	pstrcpy_wa(p, pattern);
-	pstrcpy_wa(s, string);
+	if (push_ucs2(NULL, p, pattern, sizeof(p), STR_TERMINATE) == (size_t)-1) {
+		/* Not quite the right answer, but finding the right one
+		  under this failure case is expensive, and it's pretty close */
+		return -1;
+	}
(Continue reading)

tridge | 2 Dec 2004 05:31
Picon
Favicon
Gravatar

svn commit: samba r4033 - in branches/SAMBA_4_0/source/include: .

Author: tridge
Date: 2004-12-02 04:31:08 +0000 (Thu, 02 Dec 2004)
New Revision: 4033

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4033

Log:
removed a pointless comment

Modified:
   branches/SAMBA_4_0/source/include/smb_interfaces.h

Changeset:
Modified: branches/SAMBA_4_0/source/include/smb_interfaces.h
===================================================================
--- branches/SAMBA_4_0/source/include/smb_interfaces.h	2004-12-02 00:55:47 UTC (rev 4032)
+++ branches/SAMBA_4_0/source/include/smb_interfaces.h	2004-12-02 04:31:08 UTC (rev 4033)
 <at>  <at>  -615,7 +615,7  <at>  <at> 
 		union smb_fileinfo_in in;

 		struct {
-			uint32_t access_flags; /* seen 0x001f01ff from w2k3 */
+			uint32_t access_flags;
 		} out;
 	} access_information;

tridge | 2 Dec 2004 05:34
Picon
Favicon
Gravatar

svn commit: samba r4034 - in branches/SAMBA_4_0/source/libcli/security: .

Author: tridge
Date: 2004-12-02 04:34:11 +0000 (Thu, 02 Dec 2004)
New Revision: 4034

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4034

Log:
add a function security_descriptor_create() which can be used to
easily create complex security descriptors for testing. This greatly
simplifies the smbtorture code I am writing for testing our
new access_check code.

Modified:
   branches/SAMBA_4_0/source/libcli/security/security_descriptor.c

Changeset:
Modified: branches/SAMBA_4_0/source/libcli/security/security_descriptor.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/security/security_descriptor.c	2004-12-02 04:31:08 UTC
(rev 4033)
+++ branches/SAMBA_4_0/source/libcli/security/security_descriptor.c	2004-12-02 04:34:11 UTC
(rev 4034)
 <at>  <at>  -100,6 +100,8  <at>  <at> 
 	
 	sd->dacl->num_aces++;

+	sd->type |= SEC_DESC_DACL_PRESENT;
+
 	return NT_STATUS_OK;
 }
(Continue reading)


Gmane