git: cd9660: Fix file/dir mode masks to support setuid/setgid/sticky bits

Aaron LI aly at crater.dragonflybsd.org
Fri Feb 14 05:56:00 PST 2025


commit 1f68b02fc96aa592bf2cbc9fddba26f00fb61d6c
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Feb 14 16:04:14 2025 +0800

    cd9660: Fix file/dir mode masks to support setuid/setgid/sticky bits
    
    The old code only allowed max mode to be 777, which caused the special
    permissions (i.e., setuid/setgid/sticky) were lost in the filesystem.
    That would cause a system installed from ISO to malfunction.
    
    Fix the file/dir mode masks to ALLPERMS by default.
    
    The ISOFSMNT_MODEMASK option is kept for backward compatible with the
    old mount_cd9660(8) utility. (It will also be updated.)
    
    See also: https://reviews.freebsd.org/D47357

Summary of changes:
 sys/vfs/isofs/cd9660/cd9660_vfsops.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1f68b02fc96aa592bf2cbc9fddba26f00fb61d6c


-- 
DragonFly BSD source repository


More information about the Commits mailing list