Source-Changes archive

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

CVS commit: src/sys/ufs/lfs



Module Name:    src
Committed By:   dholland
Date:           Wed Aug 12 18:23:47 UTC 2015

Modified Files:
        src/sys/ufs/lfs: lfs_extern.h lfs_syscalls.c lfs_vnops.c

Log Message:
Move the security checks for lfs_bmapv/lfs_markv into those functions.
(instead of the system call entry points)

Avoids duplication.

While touching these, pass the lwp around instead of the proc -- the
latter was there for no other reason than because once upon a time
struct proc was the first argument of all syscalls.

(For that matter, why not just use curlwp instead of passing it around
all over the place? The cost of passing it to every syscall probably
exceeds the cost of loading it from curcpu, even on machines where
it's not just kept in a register all the time.)


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/ufs/lfs/lfs_extern.h
cvs rdiff -u -r1.165 -r1.166 src/sys/ufs/lfs/lfs_syscalls.c
cvs rdiff -u -r1.281 -r1.282 src/sys/ufs/lfs/lfs_vnops.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