Age | Commit message (Collapse) | Author |
|
|
|
|
|
fstatfs(2), and getfsstat(2) so you will need to build a new kernel
before doing a "make build" or you will get "unimplemented syscall" errors.
The new struct statfs has the following featuires:
o Has a u_int32_t flags field--now softdep can have a real flag.
o Uses u_int32_t instead of longs (nicer on the alpha). Note: the man
page used to lie about setting invalid/unused fields to -1. SunOS does
that but our code never has.
o Gets rid of f_type completely. It hasn't been used since NetBSD 0.9
and having it there but always 0 is confusing. It is conceivable
that this may cause some old code to not compile but that is better
than silently breaking.
o Adds a mount_info union that contains the FSTYPE_args struct. This
means that "mount" can now tell you all the options a filesystem was
mounted with. This is especially nice for NFS.
Other changes:
o The linux statfs emulation didn't convert between BSD fs names
and linux f_type numbers. Now it does, since the BSD f_type
number is useless to linux apps (and has been removed anyway)
o FreeBSD's struct statfs is different from our (both old and new)
and thus needs conversion. Previously, the OpenBSD syscalls
were used without any real translation.
o mount(8) will now show extra info when invoked with no arguments.
However, to see *everything* you need to use the -v (verbose) flag.
|
|
Add an extra flag to hashinit telling if it should wait in malloc.
update all calls to hashinit.
|
|
(only a problem when kern.usermount == 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
w/o MNT_FORCE.
|
|
|
|
the VXLOCK flag. Calling chkvnlock in that case causes a deadlock.
XXX note that only vclean passes LK_DRAIN to VOP_LOCK and don't call chkvnlock
XXX in that case.
|
|
same as is used in 'vslock()'. The situation when this occurs is when a
process tries to read or write to another process vm space and the _segment_
referenced have not yet been mapped. A certain way of crashing a system is
to debug a program larger than 4 Mb (yes, those critters exist!). Set a break
in an address above 4 Mb and pmap_enter panics because it can't fault in a
new ptd page since it is not the process itself that calls pmap_enter.
This is a fix, not a solution, but at least a user can't crash the kernel.
|
|
|
|
|
|
to the obvious question: don't you run this stuff before you check it
in? Sadly, the answer was no in this case. But, I'm trying to learn.
Slowly, painfully....
|
|
|
|
to be vop_generic_revoke, vop_generic_bwrite, vop_generic_islocked,
vop_generic_lock and vop_generic_unlock.
Create vop_generic_abortop and propogate change to all file systems.
Fix PR/371.
Get rid of locking in NULLFS (should be mostly unnecessary now except for
forced unmounts).
|
|
(yensid@imsa.edu) for the original fix and Todd Miller.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
of security check. Restricted access to /dev/memat higher secure levels
now enabled.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
From Alan Barrett <apb@iafrica.com> with some changes.
|
|
Fix a reversed argument which caused procfs_checkioperm() to always
return OK". Add a few comments to avoid further confusion.
|
|
2) Fix procfs security hole. This is basically the NetBSD fix
(which is based in part on Sean Eric Fagan's FreeBSD fix)
with a few minor changes. The change creates as function,
procfs_checkioperm(), that has check numbers 3 and 4 from sys_ptrace().
3) Make procfs_control() use procfs_checkioperm() as well (it
already had the same basic checks but some of them were incorrect).
4) Minor stylistic cleanups, including the use of the SET/CLR/ISSET
macros to aid general grokability.
|
|
Eliminate bogus uses of V{READ,WRITE,EXEC}. Use S_I[RWX]{USR,GRP,OTH}
where appropriate.
|
|
|
|
Vic Able:
> While <miscfs/kernfs/kernfs.h> has a kernfs_node, it depends
> on a structure that's defined in <miscfs/kernfs/kernfs_vnops.c>.
> Oops! That's not very social. :-)
[I built a new kernel fine, but don't have time to run "make build"
it is my intuition that this will not have any bad effects, but
I didn't test. Just back it out if it hurts you and I'll try again.]
|
|
alpha, it crashes the kernel. This is a work around until
gcc is fixed. NetBSD PR#3471 fix from Ross Harvey <ross@teraflop.com>
|
|
|
|
OpenBSD define, not BSD which is a bit more useful.
|
|
|
|
Greece. From ftp.funet.fi:/pub/unix/security/net/ip/BSDipsec.tar.gz
|
|
not neccecary (and actually caused some problems).
|
|
kernfs_vnops.c:305: warning: long unsigned int format, u_int arg (arg 3)
|
|
|