summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Bump the version of all non-symbol-versioned shared libraries inkensmith2009-07-191-1/+1
| | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson)
* add mesh supportsam2009-07-172-17/+9
| | | | | Submitted by: rpaulo Approved by: re (kib)
* Correct the name of the Mongolian Documentation package.kensmith2009-07-161-1/+1
| | | | Approved by: re (kib)
* fix Jouni's email addresssam2009-07-127-7/+7
| | | | Approved by: re (blanket)
* Give a more expected behavior to -[hns] options, defaulting to alljamie2009-07-082-11/+18
| | | | | | | parameters instead of ignoring the options and giving the old-style default output. Approved by: re (kib), bz (mentor)
* Fix a typo in the examples.jamie2009-07-081-2/+2
| | | | Approved by: re (kib), bz (mentor)
* Add support for using a livefs from a USB disk.cperciva2009-07-084-3/+33
| | | | | Submitted by: randi Approved by: re (kensmith)
* Refactor code from installFixitCDROM into a new function, fixit_livefs_common.cperciva2009-07-081-49/+70
| | | | | | | | | | While doing so, improve style and reword some comments. This should not result in any functional changes, but the fixit_livefs_common function will be used by future code. Submitted by: randi Approved by: re (kensmith)
* Add a missing phrase.brian2009-07-051-1/+1
| | | | | | | Submitted by: Jason McIntyre jmc at kerhand dot co dot uk Approved by: re (kib) Obtained from: OpenBSD MFC after: 3 weeks
* Disable r194497 for now. It doesn't work well with ports-mgmt/tinderbox.brian2009-07-051-0/+2
| | | | Approved by: re (ken)
* Add a new options (-s) that, when specified, skips the question aboutattilio2009-07-042-24/+33
| | | | | | | | | | adjusting the clock to UTC. That avoids to write on /etc/wall_cmos_clock which is useful in some cases (example: host user in a jail). Sponsored by: Sandvine Incorporated Initially submitted by: Matt Koivisto <mkoivisto at sandvine dot com> Approved by: re (kib)
* - Properly order headers, local variables and prototypes. [1]stas2009-07-011-18/+11
| | | | | | | | - Remove unneeded headers. - Return non-zero error code in usage(). Approved by: re (kib) Suggested by: bde [1]
* - Fix the bug in write(2) called with incorrect parameters resulting in writesstas2009-07-012-52/+64
| | | | | | | | | | | | | always started from the start of the packet. - Fix usage string (multiple addresses can be specified). - Make the source more style(9) compliant. - Improve error reporting (do not silently fail if something goes wrong). - Make functions static. - Use warns level 6. Approved by: re (kib) Discussed with: Marc Balmer <marc@msys.ch>, brian, mbr
* Compiles without higher warn levelmbr2009-06-301-2/+0
| | | | | | M wake/Makefile Approved by: re (previous commit)
* Don't imply that only FTP urls are supported when we can't fetchbrian2009-06-301-1/+1
| | | | | | | a package. Approved by: re (kib) MFC after: 3 weeks
* Add wake, a tool to send Wake on LAN frames to hosts on a local Ethernet networkmbr2009-06-304-0/+244
| | | | | | | | | | | | Submitted by: Marc Balmer <marc@msys.ch> Reviewed by: rwatson Approved by: re M usr.sbin/Makefile A usr.sbin/wake AM usr.sbin/wake/wake.c AM usr.sbin/wake/Makefile AM usr.sbin/wake/wake.8
* - Add support to atomically set/clear individual bits of a MSR registerstas2009-06-302-25/+136
| | | | | | | | | | | | | | | | | | | via cpuctl(4) driver. Two new CPUCTL_MSRSBIT and CPUCTL_MSRCBIT ioctl(2) calls treat the data field of the argument struct passed as a mask and set/clear bits of the MSR register according to the mask value. - Allow user to perform atomic bitwise AND and OR operaions on MSR registers via cpucontrol(8) utility. Two new operations ("&=" and "|=") have been added. The first one applies bitwise AND operaion between the current contents of the MSR register and the mask, and the second performs bitwise OR. The argument can be optionally prefixed with "~" inversion operator. This allows one to mimic the "clear bit" behavior by using the command like this: cpucontrol -m 0x10&=~0x02 # clear the second bit of TSC MSR Inversion operator support in all modes (assignment, OR, AND). Approved by: re (kib) MFC after: 1 month
* - release/* update to use freebsd-doc-* packages instead of buildingblackend2009-06-285-12/+211
| | | | | | | | | | | | FreeBSD docset during 'make release' this will speed up release builds; - sysinstall(8) has also been updated to use these packages with a new menu allowing people to choose what localized doc to install; - mention in UPDATING that docs from the FreeBSD Documentation project are now installed in /usr/local/share/doc/freebsd instead of /usr/share/doc. Approved by: re (kensmith)
* Correct a typo (which you can use to in order -> which you can use in orderdelphij2009-06-251-1/+1
| | | | | | | | to). PR: bin/136040 Submitted by: "Vikentii L. Karabin" <kvl tomsksoft com> MFC after: 1 weeks
* Support shadow.byname and shadow.byuid maps, protecting them bybrian2009-06-253-27/+81
| | | | | | | | | | insisting on privileged port access. Include /var/yp/Makefile.local if it exists and suggest using it to override /var/yp/Makefile behaviour. Approved by: re (kib) MFC after: 3 weeks
* Raise the default size of the EFI partition on ia64 from 100MB to 400MB.jhb2009-06-251-1/+1
| | | | | | | | A fresh install of a current 8.0 snapshot uses 156MB with a single kernel and having the filesystem too small prevented the system from booting. Reviewed by: marcel MFC after: 1 week
* Make sysinstall search for /dev/daXa and register such devices as USB disks.cperciva2009-06-248-2/+180
| | | | | | | | | This covers the common case of unsliced USB drives, and makes it possible to select them as installation source media. PR: 61152, 115197, 135016 Submitted by: randi MFC after: 1 month
* This adds a new "stdio" mode to cxgbtool - it's an interactive modenp2009-06-241-18/+83
| | | | | | | | | meant primarily for _non_ interactive use. Scripts that run cxgbtool repeatedly to perform register r/w or mdio will benefit from this. Instead of fork/exec'ing a new cxgbtool for every regio/mdio you can simply open a pair of pipes to/from cxgbtool and run cmds over them. Approved by: gnn (mentor)
* Drop the defunct FDOPT_NOERRLOG option from all the floppy utilities.joerg2009-06-244-25/+5
| | | | | | | | The kernel does not log floppy media errors anymore. In fdcontrol, do always open the file descriptor in read-only mode so it can operate on read-only media, as there is no longer a separate control device to operate on.
* Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementationdfr2009-06-247-77/+74
| | | | and will be removed.
* Add libjail, a (somewhat) simpler interface to the jail_set and jail_getjamie2009-06-246-637/+176
| | | | | | system calls and the security.jail.param sysctls. Approved by: bz (mentor)
* Fix end-of-line issues that can come up when `lpq' reads informationgad2009-06-241-1/+102
| | | | | | | | | | | | | | about a queue from a remote host. That remote host may use \r, \r\n, or \n\r as the line-ending character. In some cases the remote host will write a single line of information without *any* EOL sequence. Translate all the non-unix EOL's to the standard newline, and make sure the final line includes a terminating newline. Logic is also added to translate all unprintable characters to '?', but that is #if-ed out for now. PR: bin/104731 MFC after: 3 weeks
* Add detection of UFS filesystems.cperciva2009-06-242-4/+61
| | | | | | | PR: bin/135565 Submitted by: Daniel O'Connor Reviewed by: randi MFC after: 1 month
* When mountd.c parses the nfsv4 root line(s) in /etc/exports, itrmacklem2009-06-231-1/+13
| | | | | | | | allocates data structures that are never linked into the tree or free'd. As such, mountd would leak memory every time it parsed an nfsv4 root line. This patch frees up those structures to plug the leak. Approved by: kib (mentor)
* Add a limit for child jails via the "children.cur" and "children.max"jamie2009-06-231-8/+15
| | | | | | parameters. This replaces the simple "allow.jails" permission. Approved by: bz (mentor)
* Whitespace fix.jamie2009-06-231-1/+1
| | | | Approved by: bz (mentor)
* Remove obsolete comment describing how the command line isjamie2009-06-231-5/+0
| | | | | | no longer parsed. Approved by: bz (mentor)
* o Fix usage() prototype [1] and correct its call.maxim2009-06-231-2/+2
| | | | Submitted by: ed [1]
* o style(9) usage() definition: it doesn't need an argument.maxim2009-06-231-3/+2
|
* o Remove unneeded argument in fprintf(3) call in usage().maxim2009-06-231-1/+1
| | | | Submitted by: Pawel Worach
* If the label being printed by getpmac(8) is empty, then don't print arwatson2009-06-201-1/+2
| | | | | | | carriage return. Obtained from: TrustedBSD Project MFC after: 3 days
* - Include rpcv2.h before other NFS includes. That allows nfscbd tostas2009-06-201-1/+1
| | | | compile.
* Rework the credential code to support larger values of NGROUPS andbrooks2009-06-192-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NGROUPS_MAX, eliminate ABI dependencies on them, and raise the to 1024 and 1023 respectively. (Previously they were equal, but under a close reading of POSIX, NGROUPS_MAX was defined to be too large by 1 since it is the number of supplemental groups, not total number of groups.) The bulk of the change consists of converting the struct ucred member cr_groups from a static array to a pointer. Do the equivalent in kinfo_proc. Introduce new interfaces crcopysafe() and crsetgroups() for duplicating a process credential before modifying it and for setting group lists respectively. Both interfaces take care for the details of allocating groups array. crsetgroups() takes care of truncating the group list to the current maximum (NGROUPS) if necessary. In the future, crsetgroups() may be responsible for insuring invariants such as sorting the supplemental groups to allow groupmember() to be implemented as a binary search. Because we can not change struct xucred without breaking application ABIs, we leave it alone and introduce a new XU_NGROUPS value which is always 16 and is to be used or NGRPS as appropriate for things such as NFS which need to use no more than 16 groups. When feasible, truncate the group list rather than generating an error. Minor changes: - Reduce the number of hand rolled versions of groupmember(). - Do not assign to both cr_gid and cr_groups[0]. - Modify ipfw to cache ucreds instead of part of their contents since they are immutable once referenced by more than one entity. Submitted by: Isilon Systems (initial implementation) X-MFC after: never PR: bin/113398 kern/133867
* When running pkg_add -r, check & install our dependencies for eachbrian2009-06-196-44/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package rather than expecting our top level package to get all of the dependencies correct. Previously, the code depended on the top level package having all of the pkgdep lines in +CONTENTS correct and in the right order, but that doesn't always happen due to code such as this (in security/gnutls/Makefile): .if (defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so)) && !defined(WITHOUT_LZO) LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 .... With such conditional dependencies, my 'sophox-packages' package won't install. The dependency tree looks like this: sophox-packages ... x11/gnome2 x11/gnome-applets net/libgweather devel/libsoup security/gnutls security/libgcrypt security/libgpg-error ... x11/gnome2 archivers/file-roller archivers/gtar archivers/lzop archivers/lzo2 ... gnutls doesn't depend on lzo2 initially, but lzo2 is dragged into the mix via other dependencies and is built by the initial 'make'. The subsequent package generation for gnutls adds a pkgdep line for lzo2 to gnutls' +CONTENTS but the pkgdeps in sophox-packages' +CONTENTS has gnutls *before* lzo2. As a result, sophox-packages cannot install; gnutls fails because lzo2 is missing, 82 more packages fail because gnutls is missing and the whole thing spirals into a super-confusing mess! MFC after: 3 weeks
* In preparation for raising NGROUPS and NGROUPS_MAX, change basebrooks2009-06-195-11/+33
| | | | | | | | | | | | | | | | | | | | | | system callers of getgroups(), getgrouplist(), and setgroups() to allocate buffers dynamically. Specifically, allocate a buffer of size sysconf(_SC_NGROUPS_MAX)+1 (+2 in a few cases to allow for overflow). This (or similar gymnastics) is required for the code to actually follow the POSIX.1-2008 specification where {NGROUPS_MAX} may differ at runtime and where getgroups may return {NGROUPS_MAX}+1 results on systems like FreeBSD which include the primary group. In id(1), don't pointlessly add the primary group to the list of all groups, it is always the first result from getgroups(). In principle the old code was more portable, but this was only done in one of the two places where getgroups() was called to the overall effect was pointless. Document the actual POSIX requirements in the getgroups(2) and setgroups(2) manpages. We do not yet support a dynamic NGROUPS, but we may in the future. MFC after: 2 weeks
* Re-do r192913 in less intrusive way. Only do IP_RECVDSTADDR/IP_SENDSRCADDRkan2009-06-181-7/+0
| | | | | | | | | | | | | dace for UPDv4 sockets bound to INADDR_ANY. Move the code to set IP_RECVDSTADDR/IP_SENDSRCADDR into svc_dg.c, so that both TLI and non-TLI users will be using it. Back out my previous commit to mountd. Turns out the problem was affecting more than one binary so it needs to me addressed in generic rpc code in libc in order to fix them all. Reported by: lstewart Tested by: lstewart
* Use the right jail parameters for -v (cpuset has changed to cpuset.id).jamie2009-06-171-1/+1
| | | | | Reported by: netchild Approved by: bz (mentor)
* Add cas(4).marius2009-06-151-0/+1
| | | | | Approved by: re (kib) MFC after: 2 weeks
* Add volatile to sig_atomic_t where it was missing.des2009-06-142-2/+2
| | | | MFC after: 1 week
* Include <sys/wait.h> and <signal.h> for wait() and kill().ed2009-06-141-0/+2
|
* Add -m and -t options.brian2009-06-142-2/+13
| | | | | | PR: 129554 Submitted by: gavin MFC after: 3 weeks
* Remove "extern" from function prototypes, and fix some (but not all)des2009-06-1315-196/+154
| | | | | | style(9) violations. MFC after: 1 week
* Wrap some macros that needed wrapping.des2009-06-131-8/+14
| | | | MFC after: 1 week
* Remove casts from {c,m,re}alloc() and simplify sizeof().des2009-06-1313-87/+87
| | | | MFC after: 1 week
* nscd builds cleanly at WARNS level 3.des2009-06-131-2/+1
| | | | MFC after: 1 week
OpenPOWER on IntegriCloud