aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Some jail parameters (in particular, "ip4" and "ip6" for IP addressJamie Gritton2009-07-252-28/+43
| | | | | | | | | | | | restrictions) were found to be inadequately described by a boolean. Define a new parameter type with three values (disable, new, inherit) to handle these and future cases. Approved by: re (kib), bz (mentor) Discussed with: rwatson Notes: svn path=/head/; revision=195870
* Change the name displayed in sysinstall(8) from 'Wizard Mode'Edward Tomasz Napierala2009-07-253-4/+4
| | | | | | | | | | to 'Expert Mode', to make it less confusing to new users, to whom a 'wizard' is a set of simple dialogs with the 'next >>>' button. Approved by: re (kensmith) Notes: svn path=/head/; revision=195863
* It is believed the last of the base system that could have an issue withKen Smith2009-07-221-10/+10
| | | | | | | | | | IDs larger than 16-bits has been updated so adjust sysinstall to allow IDs up to the current system-wide size of 32-bits. Approved by: re (kib) Notes: svn path=/head/; revision=195828
* Remove the "dedicated disk mode" partitioning option from sysinstall, inColin Percival2009-07-221-16/+2
| | | | | | | | | | | | | both the disk partitioning screen (the 'F' key) and via install.cfg (the VAR_DEDICATED_DISK option). This functionality is currently broken in 8.x due to libdisk and geom generating different partition names; this commit merely acts to help steer users away from the breakage. Submitted by: randi Approved by: re (kensmith) Notes: svn path=/head/; revision=195817
* Don't get stuck in an infinite loop comparing (short++ <= maxshort)Brian Somers2009-07-191-3/+2
| | | | | | | | | | PR: 136893 Submitted by: Aragon Gouveia - aragon at phat dot za dot net (mostly) Approved by: re (kib) MFC after: 3 weeks Notes: svn path=/head/; revision=195772
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-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) Notes: svn path=/head/; revision=195767
* add mesh supportSam Leffler2009-07-172-17/+9
| | | | | | | | Submitted by: rpaulo Approved by: re (kib) Notes: svn path=/head/; revision=195746
* Correct the name of the Mongolian Documentation package.Ken Smith2009-07-161-1/+1
| | | | | | | Approved by: re (kib) Notes: svn path=/head/; revision=195725
* fix Jouni's email addressSam Leffler2009-07-127-7/+7
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=195644
* Give a more expected behavior to -[hns] options, defaulting to allJamie Gritton2009-07-082-11/+18
| | | | | | | | | | parameters instead of ignoring the options and giving the old-style default output. Approved by: re (kib), bz (mentor) Notes: svn path=/head/; revision=195462
* Fix a typo in the examples.Jamie Gritton2009-07-081-2/+2
| | | | | | | Approved by: re (kib), bz (mentor) Notes: svn path=/head/; revision=195461
* Add support for using a livefs from a USB disk.Colin Percival2009-07-084-3/+33
| | | | | | | | Submitted by: randi Approved by: re (kensmith) Notes: svn path=/head/; revision=195442
* Refactor code from installFixitCDROM into a new function, fixit_livefs_common.Colin Percival2009-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) Notes: svn path=/head/; revision=195441
* Add a missing phrase.Brian Somers2009-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 Notes: svn path=/head/; revision=195375
* Disable r194497 for now. It doesn't work well with ports-mgmt/tinderbox.Brian Somers2009-07-051-0/+2
| | | | | | | Approved by: re (ken) Notes: svn path=/head/; revision=195346
* Add a new options (-s) that, when specified, skips the question aboutAttilio Rao2009-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) Notes: svn path=/head/; revision=195339
* - Properly order headers, local variables and prototypes. [1]Stanislav Sedov2009-07-011-18/+11
| | | | | | | | | | | - Remove unneeded headers. - Return non-zero error code in usage(). Approved by: re (kib) Suggested by: bde [1] Notes: svn path=/head/; revision=195264
* - Fix the bug in write(2) called with incorrect parameters resulting in writesStanislav Sedov2009-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 Notes: svn path=/head/; revision=195237
* Compiles without higher warn levelMartin Blapp2009-06-301-2/+0
| | | | | | | | | M wake/Makefile Approved by: re (previous commit) Notes: svn path=/head/; revision=195213
* Don't imply that only FTP urls are supported when we can't fetchBrian Somers2009-06-301-1/+1
| | | | | | | | | | a package. Approved by: re (kib) MFC after: 3 weeks Notes: svn path=/head/; revision=195212
* Add wake, a tool to send Wake on LAN frames to hosts on a local Ethernet networkMartin Blapp2009-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 Notes: svn path=/head/; revision=195200
* - Add support to atomically set/clear individual bits of a MSR registerStanislav Sedov2009-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 Notes: svn path=/head/; revision=195189
* - release/* update to use freebsd-doc-* packages instead of buildingMarc Fonvieille2009-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) Notes: svn path=/head/; revision=195132
* Correct a typo (which you can use to in order -> which you can use in orderXin LI2009-06-251-1/+1
| | | | | | | | | | | to). PR: bin/136040 Submitted by: "Vikentii L. Karabin" <kvl tomsksoft com> MFC after: 1 weeks Notes: svn path=/head/; revision=195012
* Support shadow.byname and shadow.byuid maps, protecting them byBrian Somers2009-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 Notes: svn path=/head/; revision=194968
* Raise the default size of the EFI partition on ia64 from 100MB to 400MB.John Baldwin2009-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 Notes: svn path=/head/; revision=194953
* Make sysinstall search for /dev/daXa and register such devices as USB disks.Colin Percival2009-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 Notes: svn path=/head/; revision=194931
* This adds a new "stdio" mode to cxgbtool - it's an interactive modeNavdeep Parhar2009-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) Notes: svn path=/head/; revision=194928
* Drop the defunct FDOPT_NOERRLOG option from all the floppy utilities.Joerg Wunsch2009-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. Notes: svn path=/head/; revision=194892
* Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementationDoug Rabson2009-06-247-77/+74
| | | | | | | and will be removed. Notes: svn path=/head/; revision=194880
* Add libjail, a (somewhat) simpler interface to the jail_set and jail_getJamie Gritton2009-06-246-637/+176
| | | | | | | | | system calls and the security.jail.param sysctls. Approved by: bz (mentor) Notes: svn path=/head/; revision=194869
* Fix end-of-line issues that can come up when `lpq' reads informationGarance A Drosehn2009-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 Notes: svn path=/head/; revision=194859
* Add detection of UFS filesystems.Colin Percival2009-06-242-4/+61
| | | | | | | | | | PR: bin/135565 Submitted by: Daniel O'Connor Reviewed by: randi MFC after: 1 month Notes: svn path=/head/; revision=194807
* When mountd.c parses the nfsv4 root line(s) in /etc/exports, itRick Macklem2009-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) Notes: svn path=/head/; revision=194773
* Add a limit for child jails via the "children.cur" and "children.max"Jamie Gritton2009-06-231-8/+15
| | | | | | | | | parameters. This replaces the simple "allow.jails" permission. Approved by: bz (mentor) Notes: svn path=/head/; revision=194762
* Whitespace fix.Jamie Gritton2009-06-231-1/+1
| | | | | | | Approved by: bz (mentor) Notes: svn path=/head/; revision=194709
* Remove obsolete comment describing how the command line isJamie Gritton2009-06-231-5/+0
| | | | | | | | | no longer parsed. Approved by: bz (mentor) Notes: svn path=/head/; revision=194708
* o Fix usage() prototype [1] and correct its call.Maxim Konovalov2009-06-231-2/+2
| | | | | | | Submitted by: ed [1] Notes: svn path=/head/; revision=194686
* o style(9) usage() definition: it doesn't need an argument.Maxim Konovalov2009-06-231-3/+2
| | | | Notes: svn path=/head/; revision=194681
* o Remove unneeded argument in fprintf(3) call in usage().Maxim Konovalov2009-06-231-1/+1
| | | | | | | Submitted by: Pawel Worach Notes: svn path=/head/; revision=194680
* If the label being printed by getpmac(8) is empty, then don't print aRobert Watson2009-06-201-1/+2
| | | | | | | | | | carriage return. Obtained from: TrustedBSD Project MFC after: 3 days Notes: svn path=/head/; revision=194555
* - Include rpcv2.h before other NFS includes. That allows nfscbd toStanislav Sedov2009-06-201-1/+1
| | | | | | | compile. Notes: svn path=/head/; revision=194526
* Rework the credential code to support larger values of NGROUPS andBrooks Davis2009-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 Notes: svn path=/head/; revision=194498
* When running pkg_add -r, check & install our dependencies for eachBrian Somers2009-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 Notes: svn path=/head/; revision=194497
* In preparation for raising NGROUPS and NGROUPS_MAX, change baseBrooks Davis2009-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 Notes: svn path=/head/; revision=194494
* Re-do r192913 in less intrusive way. Only do IP_RECVDSTADDR/IP_SENDSRCADDRAlexander Kabaev2009-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 Notes: svn path=/head/; revision=194448
* Use the right jail parameters for -v (cpuset has changed to cpuset.id).Jamie Gritton2009-06-171-1/+1
| | | | | | | | Reported by: netchild Approved by: bz (mentor) Notes: svn path=/head/; revision=194364
* Add cas(4).Marius Strobl2009-06-151-0/+1
| | | | | | | | Approved by: re (kib) MFC after: 2 weeks Notes: svn path=/head/; revision=194249
* Add volatile to sig_atomic_t where it was missing.Dag-Erling Smørgrav2009-06-142-2/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=194217
* Include <sys/wait.h> and <signal.h> for wait() and kill().Ed Schouten2009-06-141-0/+2
| | | | Notes: svn path=/head/; revision=194187