• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/smbd/

Lines Matching refs:psbuf

666 static void create_file_sids(SMB_STRUCT_STAT *psbuf, DOM_SID *powner_sid, DOM_SID *pgroup_sid)
668 uid_to_sid( powner_sid, psbuf->st_uid );
669 gid_to_sid( pgroup_sid, psbuf->st_gid );
2103 static canon_ace *canonicalise_acl( files_struct *fsp, SMB_ACL_T posix_acl, SMB_STRUCT_STAT *psbuf,
2138 unix_ug.uid = psbuf->st_uid;
2155 if (the_acl_type == SMB_ACL_TYPE_ACCESS && *puid == psbuf->st_uid) {
2168 unix_ug.gid = psbuf->st_gid;
2221 if (!ensure_canon_entry_valid(&list_head, fsp, powner, pgroup, psbuf, False))
3702 BOOL set_unix_posix_default_acl(connection_struct *conn, const char *fname, SMB_STRUCT_STAT *psbuf,
3707 if (num_def_acls && !S_ISDIR(psbuf->st_mode)) {
3925 static int check_posix_acl_group_access(connection_struct *conn, const char *fname, SMB_STRUCT_STAT *psbuf, uint32 access_mask)
4098 pgid = &psbuf->st_gid;
4167 if (cu_gid == psbuf->st_gid) {
4170 ret = (psbuf->st_mode & S_IRGRP) ? 1 : 0;
4173 ret = (psbuf->st_mode & S_IWGRP) ? 1 : 0;
4176 if ((psbuf->st_mode & (S_IWGRP|S_IRGRP)) == (S_IWGRP|S_IRGRP)) {
4185 fname, (unsigned int)psbuf->st_gid,
4280 BOOL can_access_file(connection_struct *conn, const char *fname, SMB_STRUCT_STAT *psbuf, uint32 access_mask)
4297 if (!VALID_STAT(*psbuf)) {
4299 if(SMB_VFS_STAT(conn, fname, psbuf) != 0) {
4305 if (current_user.ut.uid == psbuf->st_uid) {
4308 return (psbuf->st_mode & S_IRUSR) ? True : False;
4311 return (psbuf->st_mode & S_IWUSR) ? True : False;
4315 if ((psbuf->st_mode & (S_IWUSR|S_IRUSR)) == (S_IWUSR|S_IRUSR)) {
4324 ret = check_posix_acl_group_access(conn, fname, psbuf, access_mask);
4332 return (psbuf->st_mode & S_IROTH) ? True : False;
4335 return (psbuf->st_mode & S_IWOTH) ? True : False;
4339 if ((psbuf->st_mode & (S_IWOTH|S_IROTH)) == (S_IWOTH|S_IROTH)) {
4351 BOOL can_write_to_file(connection_struct *conn, const char *fname, SMB_STRUCT_STAT *psbuf)
4353 return can_access_file(conn, fname, psbuf, FILE_WRITE_DATA);