summaryrefslogtreecommitdiffstats
path: root/source3/lib/sysacls.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a bit more const, and kill of (finally!) sys_getpwnam and sys_getpwuid.Andrew Bartlett2002-05-221-14/+2
| | | | | | | | | | | | | | | These might be reimplmented as simple pass-through functions, but all users really should be doing 'getpwnam_alloc' or 'getpwuid_alloc' to ensure that there are not shared static buffers. I don't beleive we actually need a getpw*() cache inside samba - if we do then I think we should look at our code design first. (some of these changes are for platforms I don't have access to, but they look sane) Andrew Bartlett (This used to be commit 9d8431b04f41dceffe4c45cc969472ee59f7282f)
* dos2unix not used in HEAD anymore.Jeremy Allison2002-03-041-2/+2
| | | | | Jeremy. (This used to be commit d2af6382b4de232299529c30f2a7a39ea9b38507)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Added HPUX ACL code.Jeremy Allison2001-12-151-0/+957
| | | | | Jeremy. (This used to be commit 6d03184f8c039ad81de47b5f3bde7dac5b2815ad)
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
| | | | (This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
* move to SAFE_FREE()Simo Sorce2001-09-171-35/+33
| | | | (This used to be commit 60e907b7e8e1c008463a88ed2b076344278986ef)
* Added Mike Davidsons Tru64 ACL patch.Jeremy Allison2001-08-101-13/+23
| | | | | Jeremy. (This used to be commit 8c5e5f8c84cab4273ca28d6b5f543dd5d5b464fb)
* Change all realloc() statements to Realloc() (ecxept for tdb.c)Simo Sorce2001-08-081-1/+1
| | | | | | | | changed some code to exploit the fact that Realloc(NULL, size) == malloc(size) fixed some possible mem leaks, or seg faults. thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c) (This used to be commit 7f33c01688b825ab2fa9bbb2730bff4f2fa352be)
* Fix from Michael Davidson <md@caldera.com> for DEC OSF/1 ACLs (ie.Jeremy Allison2001-07-261-6/+152
| | | | | | Digital UNIX). Jeremy. (This used to be commit 324ba0512ec84bb173c72be3dfd2447e0dc30e26)
* The big character set handling changeover!Andrew Tridgell2001-07-041-1/+1
| | | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
* Added patches to remove Linux specific XFS ACLs. These are now handled by theJeremy Allison2001-06-181-219/+0
| | | | | | | generic Linux ACL code. rpc_server/srv_samr_nt.c: Don't delete a policy handle before it's created. Jeremy. (This used to be commit db5b82e53a7061c4764d39ceb3df82e706aad42f)
* Fixed typo in Solaris and UnixWare ACLs.Jeremy Allison2001-06-091-1/+1
| | | | | Jeremy. (This used to be commit bd750def132d9a787728dc35c68df9166a15fbd7)
* Herb's IRIX fix for deleting default ACLs.Jeremy Allison2001-06-081-0/+5
| | | | | Jeremy. (This used to be commit 81b5a628d1471f71964b21817b9bec1ac80585c4)
* AIX has no default acls.Jeremy Allison2001-06-081-0/+6
| | | | | Jeremy. (This used to be commit 5853f1dc423a25276dafe7f3d284db534bfb41ff)
* Added sys_acl_delete_def_file for UnixWare and Solaris fromJeremy Allison2001-06-081-19/+56
| | | | | | Michael Davidson <michael_davidson@pacbell.net>. Jeremy. (This used to be commit 5668512ffa608810be0622832c9dbc7a2fda5a8f)
* Added sys_acl_delete_def_file() - needed as part of NT ACL editing fix.Jeremy Allison2001-06-081-7/+19
| | | | | | | Will add changes for other supported ACL systems shortly (Herb, I may need help with the IRIX one). Jeremy. (This used to be commit a8532b193d1fe123155a69dd70e433f8fc312bfc)
* AIX ACLs donated by IBM.Jeremy Allison2001-04-171-4/+883
| | | | | | Merge Andrew's fnmatch fix for WfW. Jeremy. (This used to be commit 1d4438f07745df3d02ed8ab3ef048e20016816b6)
* Added POSIX_ACL support for *BSD. Patch from jedgar@fxp.org. ChangedJeremy Allison2001-04-141-0/+9
| | | | | | | a bit to use AC_TRY_LINK to ensure functions are available for link instead of AC_TRY_COMPILE. Jeremy. (This used to be commit c23628746342b6afa28cb34b0b4eaa61189ad390)
* Michael Davidson <md@sco.COM> pointed out that acl_get_qualifier can potentiallyJeremy Allison2001-04-131-0/+28
| | | | | | | return a malloced area so added sys_acl_free_qualifier() calls to all supported ACL interfaces to code with this (only Linux needs actual free call). Jeremy. (This used to be commit 5870e6019b82d2088b99acdc0f84e9e4847a1fa5)
* Merged John's changes.Jeremy Allison2001-04-121-3/+3
| | | | | Jeremy. (This used to be commit add847778bf458238bf2a1b14ab71b8cdfd7aec0)
* To stop people complaining about the mktemp call, move it into lib/util.c. ↵Jeremy Allison2001-04-111-1/+0
| | | | | | | | | Thanks to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke XFS ACL code. Jeremy. (This used to be commit 9b32b8a8cfc8ddb93c14d5581f433d2e93f89ed2)
* Changed the order of -kPIC and -kpic.Jeremy Allison2001-04-111-4/+6
| | | | | | Added patch from Michael Davidson <md@sco.COM> for Solaris/Unixware ACLS. Jeremy. (This used to be commit 144a2906810e8d4414d627835eb80f60bd1d88a4)
* Fix from Michael Davidson <md@sco.COM> to merge Solaris and UnixWare ACLs.Jeremy Allison2001-04-051-559/+52
| | | | | Jeremy. (This used to be commit ffa800e980bfed3d82ec7b0a037085c4558f8f0f)
* Added XFS ACLs on Linux. Code from John Trostel <jtrostel@connex.com>.Jeremy Allison2001-04-031-0/+214
| | | | | Jeremy. (This used to be commit 0865366f6b1070a8db3d8421c37c8072b36b96e3)
* IRIX ACLs from Herb.Jeremy Allison2001-04-021-0/+244
| | | | | Jeremy. (This used to be commit 2f2365e93833e5f08dc14ab0022dd9f6f0d028ad)
* New POSIX ACL mapping code. Works with UNIX permissions, now for testingJeremy Allison2001-03-221-0/+20
| | | | | | with real ACLs... Jeremy. (This used to be commit 852b9e15ac245a593460cfff3f629d0333372e41)
* Fixed a couple of getpwXX calls that were not going through the sys_getpwXXJeremy Allison2001-03-011-2/+2
| | | | | | cache. Jeremy. (This used to be commit a648935ae93f781aedba8f89b0071a24e42f4543)
* rpc_client/cli_netlogon.c: Fixed incorrect printf.Jeremy Allison2001-02-251-0/+536
| | | | | | Added Solaris ACL support. Jeremy. (This used to be commit f0d11b6997cc46a0210adef8cf572cf8b7e2467a)
* Excise snprintf -> slprintf.Jeremy Allison2001-02-161-6/+6
| | | | | | | | srv_samr.c: duplicate gid fix. srv_spoolss_nt.c: Merge of JF's work. uid.c: Fix for returning names when a PDC. Jeremy. (This used to be commit d938ad6963a2dd4eda930d508600ec1902dc2b16)
* Patch to add UnixWare ACLs from Michael Davidson <md@sco.COM>. With someJeremy Allison2001-02-151-0/+559
| | | | | | | | small modifications, this code may also work on Solaris, as they are derived from the same SVR4 codebase. When the Samba Solaris box is up and running again I will test this. Jeremy. (This used to be commit f8db87b0978be981448eafd57163703e3aeec2cb)
* Fixed typo with acl_set_fd() not needing an ACL_TYPE_T parameter.Jeremy Allison2001-01-111-5/+5
| | | | | | Ensure HAVE_NO_ACLS is set in configure if ACL support not selected. Jeremy (This used to be commit 523c91935621ec2d200a79385046694806f7c837)
* First compiling version of code that sets NT ACLs as POSIX ACLs.Jeremy Allison2001-01-111-2/+90
| | | | | | Now the debugging starts.... :-). Jeremy. (This used to be commit 2300ac79f5eba84225288a87129b4df5bd471466)
* Split the one sys_acl_free call into sys_acl_free_TYPE calls, to allowJeremy Allison2000-12-191-11/+32
| | | | | | easier wrapping of non-POSIX ACL interfaces. Jeremy. (This used to be commit 1a31b4eb082b23d60e3d9040b3c0110eef1f9385)
* Renamed parameters and variables called acl to the_acl as it conflictsTim Potter2000-12-141-6/+6
| | | | | with a Solaris system call. (This used to be commit 5e547ddcb526be5562db9213c5b36e505e735a2e)
* Added better configure test for POSIX ACLs. Fixed stupid typo in sysacls.cJeremy Allison2000-12-071-1/+1
| | | | | Jeremy. (This used to be commit da6ae57501e3cb971e82eac5bb05efcd9cf443ae)
* Working code to read POSIX ACLs on a Linux system using the bestbitsJeremy Allison2000-12-071-2/+49
| | | | | | | | ACL patch from http://acl.bestbits.at/. configure support needs more work (just assumes correct headers at the moment). ACL writing needs adding. Jeremy. (This used to be commit 6ae63e502e6adf3666a34aa87860c74e106fdb84)
* Cause smbd to use the new posix_acls code, not the old unix_acls code.Jeremy Allison2000-12-061-0/+12
| | | | | | | | | | | | Currently does exactly the same thing (returns ACLs the same way). This code is written to try and get a POSIX ACL via the abstract sys_XX interface, then fall back to providing a UNIX based ACL if the calls fail. Seems to work. Next step is to add a --with-posix-acls to configure.in and then check on a POSIX ACL system that a complex ACL is returned correctly as an NT ACL. Note that the ACL set (a more complex problem) is not addressed yet. Jeremy. (This used to be commit 4339e20202a876dbadc07980b731f711463b7299)
* Make smbd/posix_acls.c use abstract interface.Jeremy Allison2000-12-061-0/+110
include/smb_acls.h lib/sysacls.c: Added as interface definitions. Jeremy. (This used to be commit 8359375bba5b3ae24956f66b066dedf11d3583df)