1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-19 23:17:05 +03:00

7 Commits

Author SHA1 Message Date
Jeremy Allison
6bfb06ad95 Remove the "stat_open()" function, flag, and all associated code. It was only
being (correctly) used in the can_read/can_write checks for hide unreadable/unwritable
and this is more properly done using the functions in smbd/file_access.c.
Preparing to do NT access checks on all file access.
Jeremy.
2008-05-02 17:22:10 -07:00
Jeremy Allison
ac1eac9b0d Move directory_has_default_acl() to file_access.c, belongs
there as it no longer uses explicit POSIX ACL calls.
Jeremy.
2008-05-02 10:09:00 -07:00
Michael Adam
b5f600fab5 Change the prototype of the vfs function get_nt_acl().
Up to now, get_nt_acl() took a files_struct pointer (fsp) and
a file name. All the underlying functions should need and now
do need (after the previous preparatory work), is a connection_struct
and a file name. The connection_struct is already there in the
vfs_handle passed to the vfs functions. So the files_struct
argument can be eliminated.

This eliminates the need of calling open_file_stat in a couple
of places to produce the fsp needed.

Michael
2007-12-19 23:08:01 +01:00
Michael Adam
f4f700cf0c Fix potential orphaned open files.
Calling can_access_file could lead to orphaned open files
when SMB_VFS_GET_NT_ACL returned ENOSYS (not implemented).

Michael
2007-11-13 23:26:38 +01:00
Volker Lendecke
dcbe1bf942 Make [f]get_nt_acl return NTSTATUS 2007-11-13 15:47:01 +01:00
Volker Lendecke
cd62122916 Cosmetic fix
Do directory vs file open before entering open_file_stat
2007-11-11 23:45:02 +01:00
Michael Adam
9dd18bb534 Move some access check functions that are not posix-acl specific
to a new source file of their own.

Michael
2007-11-06 19:32:10 +01:00