aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Use stock (FSF) version of this file.Ruslan Ermilov2001-04-176-1115/+2153
| | | | Notes: svn path=/head/; revision=75589
* This commit was generated by cvs2svn to compensate for changes in r75587,Ruslan Ermilov2001-04-17570-198845/+0
| | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=75588
* Removed files not present in v1.17 import.Ruslan Ermilov2001-04-1729-16315/+0
| | | | Notes: svn path=/head/; revision=75587
* This commit was generated by cvs2svn to compensate for changes in r75584,Ruslan Ermilov2001-04-17610-3265/+224912
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=75585
| * Virgin import of FSF groff v1.17Ruslan Ermilov2001-04-17624-4270/+227190
| | | | | | | | Notes: svn path=/vendor/groff/dist/; revision=75584
* | Update/improve Ukrainian translation.Maxim Sobolev2001-04-172-580/+580
| | | | | | | | | | | | | | Submitted by: Olexander Kunytsa <kunia@istc.kiev.ua> (author of translation) Notes: svn path=/head/; revision=75583
* | Dont (ab)use drv2 to know if (si_flags & SI_NAMED) (pointed out by dd)Brian Somers2001-04-171-5/+3
| | | | | | | | | | | | | | Call cdevsw_remove when we unload. Notes: svn path=/head/; revision=75582
* | By popular demand, have adduser preserve comments at the top of theDoug Barton2001-04-171-2/+10
| | | | | | | | | | | | | | | | | | group file. Because of the way the group sorting works while printing out the new file it's not possible at this time to restore comments in other locations, but at least they won't just disappear altogether. Notes: svn path=/head/; revision=75581
* | This patch removes the VOP_BWRITE() vector.Poul-Henning Kamp2001-04-1719-66/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VOP_BWRITE() was a hack which made it possible for NFS client side to use struct buf with non-bio backing. This patch takes a more general approach and adds a bp->b_op vector where more methods can be added. The success of this patch depends on bp->b_op being initialized all relevant places for some value of "relevant" which is not easy to determine. For now the buffers have grown a b_magic element which will make such issues a tiny bit easier to debug. Notes: svn path=/head/; revision=75580
* | Correct a typo; prefered -> preferred.Kris Kennaway2001-04-171-1/+1
| | | | | | | | Notes: svn path=/head/; revision=75579
* | Add fmtcheck(), a function for checking consistency of format stringKris Kennaway2001-04-174-2/+357
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arguments where the format string is obtained from user data, or otherwise difficult to verify statically. Example usage: printf(fmtcheck(user_format, standard_format), arg1, arg2); checks the format string user_format for consistency (same number/order/ type of format operators) with standard_format. If they differ, standard_format is used instead to avoid potential crashes or security violations. Obtained from: NetBSD Reviewed by: -arch Notes: svn path=/head/; revision=75578
* | -Wnon-const-format sweep: make format strings const char *'s, addKris Kennaway2001-04-1711-36/+37
| | | | | | | | | | | | | | | | | | __printflike()/__printf0like() to function prototypes, as appropriate. Reviewed by: bde, -audit Notes: svn path=/head/; revision=75577
* | '%' is not a valid format string :-)Kris Kennaway2001-04-172-2/+2
| | | | | | | | Notes: svn path=/head/; revision=75576
* | Remove spurious extra format string argument.Kris Kennaway2001-04-171-1/+1
| | | | | | | | Notes: svn path=/head/; revision=75575
* | Add a missing argument to an error message format string.Kris Kennaway2001-04-171-1/+1
| | | | | | | | Notes: svn path=/head/; revision=75574
* | Add debugging option to always read/write cylinder groups as fullKirk McKusick2001-04-172-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sized blocks. To enable this option, use: `sysctl -w debug.bigcgs=1'. Add debugging option to disable background writes of cylinder groups. To enable this option, use: `sysctl -w debug.dobkgrdwrite=0'. These debugging options should be tried on systems that are panicing with corrupted cylinder group maps to see if it makes the problem go away. The set of panics in question are: ffs_clusteralloc: map mismatch ffs_nodealloccg: map corrupted ffs_nodealloccg: block not in map ffs_alloccg: map corrupted ffs_alloccg: block not in map ffs_alloccgblk: cyl groups corrupted ffs_alloccgblk: can't find blk in cyl ffs_checkblk: partially free fragment The following panics are less likely to be related to this problem, but might be helped by these debugging options: ffs_valloc: dup alloc ffs_blkfree: freeing free block ffs_blkfree: freeing free frag ffs_vfree: freeing free inode If you try these options, please report whether they helped reduce your bitmap corruption panics to Kirk McKusick at <mckusick@mckusick.com> and to Matt Dillon <dillon@earth.backplane.com>. Notes: svn path=/head/; revision=75573
* | Background fsck sysctl operations must use vn_start_write andKirk McKusick2001-04-171-8/+14
| | | | | | | | | | | | | | | | vn_finished_write so that they do not attempt to modify a suspended filesystem. Notes: svn path=/head/; revision=75572
* | In my first reading of POSIX.1e, I misinterpreted handling of theRobert Watson2001-04-176-225/+312
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ACL_USER_OBJ and ACL_GROUP_OBJ fields, believing that modification of the access ACL could be used by privileged processes to change file/directory ownership. In fact, this is incorrect; ACL_*_OBJ (+ ACL_MASK and ACL_OTHER) should have undefined ae_id fields; this commit attempts to correct that misunderstanding. o Modify arguments to vaccess_acl_posix1e() to accept the uid and gid associated with the vnode, as those can no longer be extracted from the ACL passed as an argument. Perform all comparisons against the passed arguments. This actually has the effect of simplifying a number of components of this call, as well as reducing the indent level, but now seperates handling of ACL_GROUP_OBJ from ACL_GROUP. o Modify acl_posix1e_check() to return EINVAL if the ae_id field of any of the ACL_{USER_OBJ,GROUP_OBJ,MASK,OTHER} entries is a value other than ACL_UNDEFINED_ID. As a temporary work-around to allow clean upgrades, set the ae_id field to ACL_UNDEFINED_ID before each check so that this cannot cause a failure in the short term (this work-around will be removed when the userland libraries and utilities are updated to take this change into account). o Modify ufs_sync_acl_from_inode() so that it forces ACL_{USER_OBJ,GROUP_OBJ,MASK,OTHER} ae_id fields to ACL_UNDEFINED_ID when synchronizing the ACL from the inode. o Modify ufs_sync_inode_from_acl to not propagate uid and gid information to the inode from the ACL during ACL update. Also modify the masking of permission bits that may be set from ALLPERMS to (S_IRWXU|S_IRWXG|S_IRWXO), as ACLs currently do not carry none-ACCESSPERMS (S_ISUID, S_ISGID, S_ISTXT). o Modify ufs_getacl() so that when it emulates an access ACL from the inode, it initializes the ae_id fields to ACL_UNDEFINED_ID. o Clean up ufs_setacl() substantially since it is no longer possible to perform chown/chgrp operations using vop_setacl(), so all the access control for that can be eliminated. o Modify ufs_access() so that it passes owner uid and gid information into vaccess_acl_posix1e(). Pointed out by: jedger Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=75571
* | Blow away the panic mutex in favor of using a single atomic_cmpset() on aJohn Baldwin2001-04-1711-39/+9
| | | | | | | | | | | | | | | | | | panic_cpu shared variable. I used a simple atomic operation here instead of a spin lock as it seemed to be excessive overhead. Also, this can avoid recursive panics if, for example, witness is broken. Notes: svn path=/head/; revision=75570
* | Check to see if enroll() returns NULL in the witness initialization. ThisJohn Baldwin2001-04-171-0/+4
| | | | | | | | | | | | | | | | | | | | can happen if witness runs out of resources during initialization or if witness_skipspin is enabled. Sleuthing by: Peter Jeremy <peter.jeremy@alcatel.com.au> Notes: svn path=/head/; revision=75569
* | Exit and re-enter the critical section while spinning for a spinlock soJohn Baldwin2001-04-172-0/+6
| | | | | | | | | | | | | | that interrupts can come in while we are waiting for a lock. Notes: svn path=/head/; revision=75568
* | Previous clobbered a work-in-progress. Here is the merged result:Peter Wemm2001-04-171-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Limit the "pathname" glob to one item, as that is what all users of it are expecting, except for LIST. Always glob, instead of when the first character is a ~. For example, if you had directories ~/x1, and ~/x2, then "cwd x[1]" would fail, but "cwd ~/x[1]" would work since it was globbed due to the ~ character. Also, "cwd ~/x[12]" used to arbitarily work as it used the first expansion (ie: x1) without an error. Make it return '550 ambiguous' instead of '550 not found' so that the user can see the difference. For LIST, just use the user supplied string as the popen does the glob. Problem noticed by: Ajay Mittal <amittal@iprg.nokia.com> Notes: svn path=/head/; revision=75567
* | - Add appropriate #ifndef/#define/#endif to protect against multipleJohn Baldwin2001-04-171-5/+4
| | | | | | | | | | | | | | | | | | inclusions. - Blow away all evidence of a static curpcb as curpcb is a per-CPU variable and this definition is now bogus. Notes: svn path=/head/; revision=75566
* | - Fix memory barriers in atomic operations so that the barriers are alwaysJohn Baldwin2001-04-171-20/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "inside" of locked regions. That is, an acquire atomic operation will always enforce a memory barrier after the atomic operation and a release operation will always enforce a memory barrier before the atomic operation. - Explicitly use 'mb' instead of 'wmb' in release atomic operations. The 'wmb' memory barrier is not strong enough to guarantee coherence with other processors. This is effectively a nop since alpha_wmb() actually performs a 'mb' and not a 'wmb', but I wanted the code to be more correct since at some point in the future alpha_wmb()'s implementation may switch to being a real 'wmb'. Notes: svn path=/head/; revision=75565
* | Add a cpu_throw() function that secondary CPU's can use for their firstJohn Baldwin2001-04-171-0/+10
| | | | | | | | | | | | | | context switch. Notes: svn path=/head/; revision=75563
* | In exception_return(), test for usermode before testing the IPL to see ifJohn Baldwin2001-04-171-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we should call ast(). This allows us to branch to a separate Lkernelret label so we can fixup the saved t7 register in the trapframe. Otherwise we can run into a problem on SMP systems where a process is interrupted by a trap or interrupt on one CPU, migrates to another CPU, and then returns with the t7 in the stack clobbering the CPU's t7. As a result, two CPU's would both point to the same per-CPU data and things would go downhill from there. Sleuthing help by: gallatin Notes: svn path=/head/; revision=75562
* | - Stop other CPU's in the SMP case when we enter ddb.John Baldwin2001-04-171-2/+52
| | | | | | | | | | | | | | | | | | - Add a new ddb command: 'show pcpu' similar to the i386 command added recently. By default it displays the current CPU's info, but an optional argument can specify the logical ID of a specific CPU to examine. Notes: svn path=/head/; revision=75561
* | Limit number of paths returned via glob() for authorized usersChris D. Faulhaber2001-04-171-0/+4
| | | | | | | | | | | | | | using tilde expansion. Notes: svn path=/head/; revision=75560
* | s/Over 4500 ports/Over 5000 ports/Bruce A. Mah2001-04-171-1/+1
| | | | | | | | Notes: svn path=/head/; revision=75558
* | Minor background cleanups:Kirk McKusick2001-04-165-30/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Set the FS_NEEDSFSCK flag when unexpected problems are encountered. 2) Clear the FS_NEEDSFSCK flag after a successful foreground cleanup. 3) Refuse to run in background when the FS_NEEDSFSCK flag is set. 4) Avoid taking and removing a snapshot when the filesystem is already clean. 5) Properly implement the force cleaning (-f) flag when in preen mode. Note that you need to have revision 1.21 (date: 2001/04/14 05:26:28) of fs.h installed in <ufs/ffs/fs.h> defining FS_NEEDSFSCK for this to compile. Notes: svn path=/head/; revision=75557
* | Support the empty "PASS\r\n" command.Brian Feldman2001-04-161-3/+7
| | | | | | | | Notes: svn path=/head/; revision=75556
* | Add support the the Intel ICH2 mobileSøren Schmidt2001-04-162-20/+14
| | | | | | | | | | | | | | Tidy chip name printing a bit. Notes: svn path=/head/; revision=75553
* | Fix typo s/thissystem/this system/Jesper Skriver2001-04-161-1/+1
| | | | | | | | | | | | | | Submitted by: Stephen <sdk@shell.yuck.net> Notes: svn path=/head/; revision=75552
* | Clean up temporary file(s) and directory when m4 exits without fallingGregory Neil Shapiro2001-04-163-7/+18
| | | | | | | | | | | | | | | | | | through main() (e.g., signals or calls to errx()). PR: conf/25715 Notes: svn path=/head/; revision=75551
* | Add missing sound module.Mark Murray2001-04-161-0/+1
| | | | | | | | | | | | | | OK'ed by: cg Notes: svn path=/head/; revision=75550
* | Fix an off-by-2 error in periphdriver_register(). The read side of theKenneth D. Merry2001-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | bcopy would go off the end of the array by two elements, which sometimes causes a panic if it happens to cross into a page that isn't mapped. Submitted by: gibbs Reviewed by: peter Notes: svn path=/head/; revision=75549
* | mdoc(7) police: Prepare for mdocNG.Ruslan Ermilov2001-04-161-2/+3
| | | | | | | | | | | | | | The .Cd macro does not cause a line break until in the SYNOPSIS section. Notes: svn path=/head/; revision=75548
* | Grrr, get the right change from the the machine I tested this on.David E. O'Brien2001-04-161-1/+1
| | | | | | | | Notes: svn path=/head/; revision=75547
* | mdoc(7) police: cosmetics.Ruslan Ermilov2001-04-161-1/+1
| | | | | | | | Notes: svn path=/head/; revision=75546
* | mdoc(7) police: prepare for mdocNG.Ruslan Ermilov2001-04-162-2/+2
| | | | | | | | Notes: svn path=/head/; revision=75545
* | mdoc(7) police: add missing .El call.Ruslan Ermilov2001-04-161-0/+1
| | | | | | | | Notes: svn path=/head/; revision=75544
* | mdoc(7) police: fix markup.Ruslan Ermilov2001-04-161-5/+5
| | | | | | | | Notes: svn path=/head/; revision=75543
* | Document that SITE extensions are disabled for anonymous logins.Ruslan Ermilov2001-04-161-0/+2
| | | | | | | | | | | | | | Obtained from: logdaemon package by Wietse Venema Notes: svn path=/head/; revision=75542
* | Move the isa parts to a separate file.John Hay2001-04-166-2447/+6
| | | | | | | | Notes: svn path=/head/; revision=75541
* | Update to the 2001-04-02 version of the nanokernel code from Dave Mills.John Hay2001-04-162-24/+30
| | | | | | | | Notes: svn path=/head/; revision=75540
* | Merged from sys/i386/isa/npx.c revision 1.95.KATO Takenori2001-04-161-1/+1
| | | | | | | | Notes: svn path=/head/; revision=75539
* | Merged from sys/conf/options.i386 revision 1.148.KATO Takenori2001-04-161-2/+2
| | | | | | | | Notes: svn path=/head/; revision=75538
* | New script to help creation of shared readonly diskless partition.Luigi Rizzo2001-04-161-0/+144
| | | | | | | | | | | | | | | | | | | | | | It also has some instructions on how to setup the client and the server. I have been using this code for over 2 years on RELENG_3 and later RELENG_4. Have not tried on CURRENT, but in case there are any issues these are in /etc/rc and /etc/rc.diskless{12} Notes: svn path=/head/; revision=75537
* | Add the "SITE MD5 filename" facility.Poul-Henning Kamp2001-04-152-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | This allows you to determine if the file on the other side is the same as the one you have without transferring the entire file to compare. Needless to say, if the server end lies to you this check doesn't work, but on the other hand, if it lies to you about the files checksum, what can you trust from it ? Notes: svn path=/head/; revision=75535
* | Add a more useful solution to the problem of password files with more thanDoug Barton2001-04-151-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | one user who differs only by case. The other perl tools assume (or enforce) the all lowercase requirement, therefore making the search through master.passwd case insensitive seemed a reasonable optimization, IMO. I understand, although I do not sympathize with, the argument that someone might want to do this on purpose, and might subsequently want to use the wrong tool for the job. So, this fix should hopefully satisfy both camps. Notes: svn path=/head/; revision=75534