Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102041917
D47357.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D47357.diff
View Options
diff --git a/sbin/mount_cd9660/mount_cd9660.8 b/sbin/mount_cd9660/mount_cd9660.8
--- a/sbin/mount_cd9660/mount_cd9660.8
+++ b/sbin/mount_cd9660/mount_cd9660.8
@@ -73,30 +73,31 @@
.It Fl G Ar group
Set the group of the files in the file system to
.Ar group .
-The default gid on non-Rockridge volumes is zero.
+The default gid on volumes without extended attributes or Rockridge extensions
+is zero.
.It Fl U Ar user
Set the owner of the files in the file system to
.Ar user .
-The default uid on non-Rockridge volumes is zero.
+The default uid on volumes without extended attributes or Rockridge extensions
+is zero.
.It Fl m Ar mask
Specify the maximum file permissions for files
in the file system.
-(For example, a
+For example, a
.Ar mask
of
-.Li 755
-specifies that, by default, the owner should have
-read, write, and execute permissions for files, but
-others should only have read and execute permissions).
+.Li 544
+limits the owner to
+read and execute permissions for files and
+others to only read permission.
See
.Xr chmod 1
for more information about octal file modes.
-Only the nine low-order bits of
-.Ar mask
-are used.
The default
.Ar mask
-on non-Rockridge volumes is 755.
+is 7777.
+The default permissions on volumes without extended attributes or Rockridge
+extensions is 555.
.It Fl M Ar mask
Specify the maximum file permissions for directories
in the file system.
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -394,7 +394,7 @@
isomp->im_mountp = mp;
isomp->im_dev = dev;
isomp->im_devvp = devvp;
- isomp->im_fmask = isomp->im_dmask = ACCESSPERMS;
+ isomp->im_fmask = isomp->im_dmask = ALLPERMS;
vfs_flagopt(mp->mnt_optnew, "norrip", &isomp->im_flags, ISOFSMNT_NORRIP);
vfs_flagopt(mp->mnt_optnew, "gens", &isomp->im_flags, ISOFSMNT_GENS);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 9:24 PM (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14521113
Default Alt Text
D47357.diff (1 KB)
Attached To
Mode
D47357: cd9660: Apply the file and directory mode masks bits to all 12 access bits
Attached
Detach File
Event Timeline
Log In to Comment