Re: problems with latest smbfs changes on 2.4.34 and security backports
- From: dann frazier <dannf@xxxxxxxxxx>
- Date: Thu, 18 Jan 2007 18:00:40 -0700
On Wed, Jan 17, 2007 at 10:55:19PM +0100, Willy Tarreau wrote:
@@ -505,8 +510,13 @@
mnt->file_mode = (oldmnt->file_mode & S_IRWXUGO) | S_IFREG;
mnt->dir_mode = (oldmnt->dir_mode & S_IRWXUGO) | S_IFDIR;
- mnt->flags = (oldmnt->file_mode >> 9);
+ mnt->flags = (oldmnt->file_mode >> 9) | SMB_MOUNT_UID |
+ SMB_MOUNT_GID | SMB_MOUNT_FMODE | SMB_MOUNT_DMODE;
} else {
+ mnt->file_mode = mnt->dir_mode = S_IRWXU | S_IRGRP | S_IXGRP |
+ S_IROTH | S_IXOTH | S_IFREG;
+ mnt->dir_mode = mnt->dir_mode = S_IRWXU | S_IRGRP | S_IXGRP |
+ S_IROTH | S_IXOTH | S_IFDIR;
if (parse_options(mnt, raw_data))
goto out_bad_option;
}
See above ? mnt->dir_mode being assigned 3 times. It still *seems* to do the
expected thing like this but I wonder if the initial intent was
exactly this.
Wow - sorry about that, that's certainly a cut & paste error. But the
end result appears to match current 2.6, which was the intent.
Also, would not it be necessary to add "|S_IFLNK" to the file_mode ? Maybe
what I say is stupid, but it's just a guess.
I really don't know the correct answer to that, I was merely copying
the 2.6 flags.
[Still working on getting a 2.4 smbfs test system up...]
--
dann frazier
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: problems with latest smbfs changes on 2.4.34 and security backports
- From: dann frazier
- Re: problems with latest smbfs changes on 2.4.34 and security backports
- From: Willy Tarreau
- Re: problems with latest smbfs changes on 2.4.34 and security backports
- References:
- problems with latest smbfs changes on 2.4.34 and security backports
- From: Santiago Garcia Mantinan
- Re: problems with latest smbfs changes on 2.4.34 and security backports
- From: Willy Tarreau
- problems with latest smbfs changes on 2.4.34 and security backports
- Prev by Date: Re: SATA exceptions with 2.6.20-rc5
- Next by Date: [PATCH] sata_mv HighPoint 2310 support (88SX7042)
- Previous by thread: Re: problems with latest smbfs changes on 2.4.34 and security backports
- Next by thread: Re: problems with latest smbfs changes on 2.4.34 and security backports
- Index(es):
Relevant Pages
|