summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2007-12-19Split get_nt_acl() into two functions: fsp- and non-fsp variant.Michael Adam1-63/+148
Replace smbd/posix_acls.c:get_nt_acl() by two funcions: posix_get_nt_acl() and posix_fget_nt_acl(). The first takes a connection struct and a file name instead of a files_struct pointer. This is in preparation of changing the vfs api for SMB_VFS_GET_NT_ACL. Michael (This used to be commit 50c82cc1456736fa634fb656e63555319742f725)
2007-12-19Remove the "is_directory" parameter from canonicalise_acl():Michael Adam1-7/+9
It can be retrieved from the stat buffer. Michael (This used to be commit b0ae830bf57dcaec00b2a2eabfec7221a3b7f791)
2007-12-19Change canonicalise_acl() to not take an fsp.Michael Adam1-8/+15
Convert canonicalise_acl() to take connection_struct, is_directory and file name instead of files_struct pointer. Michael (This used to be commit d579a7f84fd47a3f00215725cecd65b21a5ff2e0)
2007-12-19Change ensure_canon_entry_valid() to not take and fsp.Michael Adam1-10/+11
Convert ensure_canon_entry_valid() to take share_params and an is_directory flag instead of an files_struct pointer. Michael (This used to be commit bdb208124bd703edee03ac4d2a4ec45ecdfc135e)
2007-12-19Change apply_default_perms() to not take an fsp.Michael Adam1-14/+15
This is a first change in a series: Pass what is needed instead of files_struct pointers to some functions. This is in preparation of introducing two variants of get_nt_acl - one for fname (which does not need an fsp), one for file descriptor. This changes apply_default_perms to take share_params (rather thatn snum) and an is_directory flag instead of an fsp. Michael (This used to be commit d7e2e93758f6598a0459db3255300558618f066e)
2007-12-19Remove Get_Pwnam and its associated static variableVolker Lendecke4-6/+18
All callers are replaced by Get_Pwnam_alloc (This used to be commit 735f59315497113aebadcf9ad387e3dbfffa284a)
2007-12-18Remove last_message completely as it's no longer used.Jeremy Allison2-9/+0
Jeremy. (This used to be commit c378c3edc1197d46c5d6eb2bcabbf9e774c03ffc)
2007-12-18Add a in-memory cacheVolker Lendecke4-200/+112
This is a more general API that caches data with a LRU scheme. See include/cache.h. No comments yet, I'm still working on it. But Jeremy has given me a hint in one of his checkins that he would like to make use of this now. The idea is that we get rid of all our silly little caches and merge them all into one cache that we can then very easily trim, for example even with a smbcontrol message if someone decides memory is tight. The main user is the stat cache, this patch also converts the getwd cache. More caches to come. (This used to be commit 7a911b35713538d82001a3c9f34152e293fe1943)
2007-12-17Remove more static fstrings (yes this little cache should beJeremy Allison1-19/+49
in the rbtree....). Jeremy. (This used to be commit 97cfdae4052d46a35040d4c1a4ade8bf2c41dbc7)
2007-12-17Fix bug #5121 (unix passwd sync not working on a streams basedJeremy Allison1-7/+7
system). Jeremy. (This used to be commit 545cd2139cfc9484b733693814d4724d37125942)
2007-12-16Remove a static fstring.Jeremy Allison1-20/+30
Jeremy. (This used to be commit 898c56c0ead6331721de9645ce55608cbe7cf34d)
2007-12-16make use of [un]marshall_sec_desc, allow for fd==-1 in get/set_secdescVolker Lendecke1-87/+46
(This used to be commit 585f5f8831f13260808a82611656fc6ca5caee81)
2007-12-15More work on bug #5082, use LC_ALL as this takesJeremy Allison1-2/+2
precedence. Jeremy. (This used to be commit 446ebae76d6796b30e4c71ff7190337c28637be6)
2007-12-15Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke5-20/+20
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-12-14Fix for bug #5082 from Mathias Gug <mathiaz@ubuntu.com>, Steve Langasek ↵Jeremy Allison1-1/+9
<vorlon@debian.org>. Recent versions of Linux-PAM support localization of user prompts, so Samba must use the C locale when invoking PAM (directly or via /usr/bin/passwd) to ensure that password chat values match the prompts in a locale-invariant fashion. Jeremy. (This used to be commit bc13e939546a5bcb78925a6b117e89fde20f6451)
2007-12-13Move dns_sd.h include to fix the build.James Peach1-3/+4
(This used to be commit cf221a94bd8794add508a2b9305b8c0d40c3346a)
2007-12-13Register the smb service with mDNS if mSDN is supported.Rishi Srivatsavai2-9/+253
If mDNS is supported, attempt to register the first port we are listening on for the _smb._tcp service. This provides more reliable service discovery than NetBIOS browsing. (This used to be commit 1e7241517d1f55d60af22570e0c9feb280e3fdb5)
2007-12-11separate out create_file_unixpath()Volker Lendecke1-171/+242
(This used to be commit deaacf971e0fbffd0e5fe24f225ebf645a77e133)
2007-12-11Move more stuff out of the wayVolker Lendecke1-7/+7
(This used to be commit ae422fce01cd7520d6dd72e08719a5cd003cb640)
2007-12-11Move INTERNAL_OPEN_ONLY calculation out of the wayVolker Lendecke1-4/+4
(This used to be commit 0e96549b56e288c596ed8772197f97ffa5ade300)
2007-12-10Don't need an fstring here, we can talloc.Jeremy Allison1-9/+8
Jeremy. (This used to be commit 3f6cc826378729c9157ea68e7cf5c7b584bbb585)
2007-12-10Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2-4/+4
them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-10Simplify add_session_userVolker Lendecke1-33/+25
(This used to be commit f98082ccf048a2de6fea8d922264879305b3d2c8)
2007-12-10Increase debug levelVolker Lendecke1-1/+1
(This used to be commit 4e6df5547167fc235971498cb296a5f74dec8b8b)
2007-12-10Move stuff from data to textVolker Lendecke1-2/+2
(This used to be commit 49f06a2fa70e469bcb5fe17852af011dac32994b)
2007-12-10int->boolVolker Lendecke1-2/+2
(This used to be commit 874258195278bc8c6bb3011c153c5d646fff9e75)
2007-12-10Tiny simplificationsVolker Lendecke1-1/+1
locking.c:open_read_only was unused don't export the silly boolean flag locking_init(bool read_only) (This used to be commit 2f3c865707010bc7c463a02782dbee3dc2479da1)
2007-12-09Get rid of the msgbuf[1600]Volker Lendecke1-98/+132
(This used to be commit af228007915cc8bb65fa7968da25a1a36004bc22)
2007-12-07Remove next_token - all uses must now be next_token_talloc.Jeremy Allison3-38/+81
No more temptations to use static length strings. Jeremy. (This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
2007-12-07Don't build rpctorture anymore - not maintained. Just remove.Jeremy Allison2-4/+4
Remove all vestiges of pstring (except for smbctool as noted in previous commit). Jeremy (This used to be commit 4c32a22ac50ada3275d2ffba3c1aa08bee7d1549)
2007-12-07Attempt to fix make test :-)Volker Lendecke1-2/+2
(This used to be commit de3a3e3745e58cbfa777ae426e38bad3d74230d4)
2007-12-07Pass only internal oplock request values to create_fileVolker Lendecke2-46/+71
Other callers (e.g. reply_open_and_X) might have other ideas of the bit shuffling (This used to be commit 6a58d823e51ccc8efd6682005e367c9096abc993)
2007-12-07More parameter shufflingVolker Lendecke2-5/+5
(This used to be commit 8f70f691ffa3e171a73d04a1c867aa6fca4d4583)
2007-12-07Re-arrange create_file() parametersVolker Lendecke2-5/+5
This changes them to be a bit closer to open_file_ntcreate and thus provides less surprises to developers (This used to be commit d000258b96b9bb714efdfe982947370a6dfb5d55)
2007-12-07Make fname arg to create_file a "const char *"Volker Lendecke1-6/+15
(This used to be commit da94b5f9e37f38880e8ca4c2c7f8de6838864321)
2007-12-05There's no point in passing down a 0Volker Lendecke2-19/+27
(This used to be commit 525a6887afcae8d8e740cf194a412c21da899649)
2007-12-05Move create_file to open.cVolker Lendecke2-477/+475
I'm checking in this long sequence of micro-checkins for review, the overall patch from 3b057022a5 to this is not too large. (This used to be commit 51db8d09a4652d626c093f7bacf075c1c168fc33)
2007-12-05Fix an uninitialized variableVolker Lendecke1-1/+1
(This used to be commit ca3add2d65a242029f08482f3b82ea56b7059538)
2007-12-05Fix debugVolker Lendecke1-2/+8
(This used to be commit c268be54ee3bdd59980a6217a0e8e59dd3ec5ce2)
2007-12-05Fix attribute calculation for ntcreate&xVolker Lendecke1-17/+21
(This used to be commit 9ef81cb14952cad96c71409c04a2cc6579e3311c)
2007-12-05Fix error returnsVolker Lendecke1-2/+12
(This used to be commit f5cdaacd1784d3801d638fa9984b52c57dad6ebd)
2007-12-05Fix debugsVolker Lendecke1-2/+18
(This used to be commit 77b31ef44a9f7c1c9b80d90653a49affee8e0372)
2007-12-05Implement create_file()Volker Lendecke1-706/+347
Rip out the cores of reply_ntcreate_and_X and call_nt_transact_create Volker (This used to be commit 8cd27e4a7a1a2df0ff686ebe0b1a779511effd27)
2007-12-05Reformatting, also allow quotas for transact_createVolker Lendecke1-12/+38
(This used to be commit 956aae7a57364debf724a7ef0bd0074119a24d24)
2007-12-05Tiny refactoringsVolker Lendecke1-17/+12
(This used to be commit f3421c3b86aece4f8303e864c5df97485db77f88)
2007-12-05Split out sd parsingVolker Lendecke1-5/+33
(This used to be commit 5a9d147e41b260cb620f026291786eeb95ebc64f)
2007-12-05ReformattingVolker Lendecke1-9/+12
(This used to be commit 719941605333a453c4219aed45780862c94a5c7c)
2007-12-05Align formatting, one TALLOC_FREE is enoughVolker Lendecke1-5/+5
(This used to be commit 5bf4647dea71305d9a92875a751b24c8a2e4a916)
2007-12-05Move pulling the ea list out of the wayVolker Lendecke1-14/+8
(This used to be commit 753e640f49125c319d7b8f2db262e273a1727691)
2007-12-05ReformattingVolker Lendecke1-10/+12
(This used to be commit fb900184feeda37691cf9bd57c029988648de9f8)