Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   elad
Date:           Sat Apr 25 18:53:45 UTC 2009

Modified Files:
        src/sys/fs/adosfs: advfsops.c
        src/sys/fs/cd9660: cd9660_vfsops.c
        src/sys/fs/efs: efs_vfsops.c
        src/sys/fs/filecorefs: filecore_vfsops.c
        src/sys/fs/hfs: hfs_vfsops.c
        src/sys/fs/msdosfs: msdosfs_vfsops.c
        src/sys/fs/sysvbfs: sysvbfs_vfsops.c
        src/sys/fs/udf: udf_vfsops.c
        src/sys/kern: vfs_subr.c
        src/sys/miscfs/genfs: genfs.h genfs_vnops.c
        src/sys/ufs/ext2fs: ext2fs_vfsops.c
        src/sys/ufs/ffs: ffs_vfsops.c

Log Message:
Add genfs_can_mount() and use it to prevent some more code duplication of
the security checks when mounting a device (VOP_ACCESS() + kauth(9) call)).

Proposed with no objections on tech-kern@:

        http://mail-index.netbsd.org/tech-kern/2009/04/20/msg004859.html

The vnode is always expected to be locked, so no locking is done outside
the file-system code.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/fs/adosfs/advfsops.c
cvs rdiff -u -r1.65 -r1.66 src/sys/fs/cd9660/cd9660_vfsops.c
cvs rdiff -u -r1.18 -r1.19 src/sys/fs/efs/efs_vfsops.c
cvs rdiff -u -r1.58 -r1.59 src/sys/fs/filecorefs/filecore_vfsops.c
cvs rdiff -u -r1.20 -r1.21 src/sys/fs/hfs/hfs_vfsops.c
cvs rdiff -u -r1.73 -r1.74 src/sys/fs/msdosfs/msdosfs_vfsops.c
cvs rdiff -u -r1.28 -r1.29 src/sys/fs/sysvbfs/sysvbfs_vfsops.c
cvs rdiff -u -r1.55 -r1.56 src/sys/fs/udf/udf_vfsops.c
cvs rdiff -u -r1.374 -r1.375 src/sys/kern/vfs_subr.c
cvs rdiff -u -r1.24 -r1.25 src/sys/miscfs/genfs/genfs.h
cvs rdiff -u -r1.169 -r1.170 src/sys/miscfs/genfs/genfs_vnops.c
cvs rdiff -u -r1.142 -r1.143 src/sys/ufs/ext2fs/ext2fs_vfsops.c
cvs rdiff -u -r1.245 -r1.246 src/sys/ufs/ffs/ffs_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index