Grepping through the kernel source tree, one finds these 12 files that use "uid == 0" checks instead of the usual suser(). There may be more than one instance per function/macro:
./kern/kern_ktrace.c - ktrops(), ktrcanset() ./nfs/nfs_subs.c - nfsrv_fhtoup() ./posix4/p1003_1b.c - CAN_AFFECT macro ./kern/kern_sig.c - CANSIGNAL, CANSIGIO macros ./kern/sysv_ipc.c - ipcperm() ./miscfs/devfs/devfs_vnops.c - devfs_setattr() ./isofs/cd9660/cd9660_vnops.c - cd9660_access() ./miscfs/kernfs/kernfs_vnops.c - kernfs_access() ./miscfs/procfs/procfs_vnops.c - procfs_access() ./msdosfs/msdosfs_vnops.c - msdosfs_access() ./nfs/nfs_vnops.c - nfsspec_access(), nfs_access() ./ufs/ufs/ufs_vnops.c - ufs_access() Is there a reason for these checks not to use suser? -Ryan To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message