summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Minor mdoc fixes.joel2013-07-181-10/+10
|
* Fix a gcc warning.hrs2013-07-181-1/+4
| | | | Pointy hat to: hrs
* Define constants for the lengths of the serial number, model numberjimharris2013-07-172-4/+7
| | | | | | | | | | | and firmware revision in the controller's identify structure. Also modify consumers of these fields to ensure they only use the specified number of bytes for their respective fields. Sponsored by: Intel Reviewed by: carl MFC after: 3 days
* Always initialize fd to 0 in open_dev().jimharris2013-07-171-0/+2
| | | | | | Sponsored by: Intel Reviewed by: carl MFC after: 3 days
* In this GRN, Marcel Moolenaar overhauled the logic for mountingrodrigc2013-07-172-1/+253
| | | | | | | | | | | | | | | | | | the root file system on bootup: |------------------------------------------------------------------------ |r214006 | marcel | 2010-10-17 22:01:53 -0700 (Sun, 17 Oct 2010) | 20 lines | | Re-implement the root mount logic using a recursive approach, whereby each |root file system (starting with devfs and a synthesized configuration) can |contain directives for mounting another file system as root. |------------------------------------------------------------------------ This commit adds a mount.conf(8) man page which documents the root mount logic. mount.conf(8) also provides some examples for the /.mount.conf file, which can be used to change the root mount behavior. Reviewed by: marcel bjk
* Use NET_RT_DUMP.0.FIB leaf node instead of setting td_proc->p_fibnum.hrs2013-07-171-12/+2
|
* - Add support of MK_INET_SUPPORT=no.hrs2013-07-172-268/+278
| | | | | | | | | | | | - Fix a bug in sodump() which prevented struct sockaddr_in6 from displaying. - Fix a bug in in fiboptlist_csv() which could cause free() of uninitialized pointer. - Style cleanups: . Add missing "static" keywords. . Use an array of struct sockaddr_storage instead of sockunion for rtmsg. . Use err() and errx() instead of pair of fprintf(stderr, "...") + exit(1). . Use nitems() macro. . Various style(9) fixes.
* Simplify keywords.h generation.hrs2013-07-171-9/+5
|
* Do not throw an error if the user requests to activate the image fromjimharris2013-07-161-1/+1
| | | | | | | | | an empty firmware slot, as long as the user has specified a firmware image to download into the empty firmware slot. Sponsored by: Intel Reported by: Joe Golio <joseph.golio@emc.com> MFC after: 3 days
* Add -n flag for compatibility with Linux version of mount(8).rmh2013-07-152-1/+7
| | | | Reviewed by: freebsd-fs, eadler, mckusick, jh, wblock
* %d should be used for printing int32_t instead of %zd.jimharris2013-07-121-1/+1
| | | | | | clang does not complain about this - only gcc. MFC after: 3 days
* Fix 'SEE ALSO' list.oleg2013-07-121-3/+3
|
* Clarify how "hide" and "unhide" commands work on directories.jh2013-07-121-1/+4
|
* Ensure controller or namespace node name is specified before trying tojimharris2013-07-092-1/+5
| | | | | | | | | | access it. While here, also fix the identify usage message to show the -v and -x parameters. Sponsored by: Intel MFC after: 3 days
* Condense the output for displaying LBA formats.jimharris2013-07-091-6/+4
| | | | | Sponsored by: Intel MFC after: 3 days
* Send per-namespace logpage commands to the controller devnode, so theyjimharris2013-07-094-57/+53
| | | | | | | | | | | are processed as admin commands, not I/O commands. As part of this change, pull out the code for parsing a namespace node string into a separate function, since it is used for both identify and logpage commands. Sponsored by: Intel MFC after: 3 days
* Try to read firmware image before prompting the user to confirmjimharris2013-07-091-1/+3
| | | | | | | | | firmware download. This correctly prints an error and exits for an incorrect firmware image name before prompting the user to confirm the download. Sponsored by: Intel MFC after: 3 days
* Incorporate feedback from bde@ based on r252672 changes:jimharris2013-07-097-204/+134
| | | | | | | | | | | | * Use 0/1 instead of sysexits. Man pages are confusing on this topic, but 0/1 is sufficient for nvmecontrol. * Use err function family where possible instead of fprintf/exit. * Fix some typing errors. * Clean up some error message inconsistencies. Sponsored by: Intel Submitted by: bde (parts of firmware.c changes) MFC after: 3 days
* Document the "gssname" and "allgssname" mount options added by thermacklem2013-07-091-1/+25
| | | | | host-based initiator credential patches. This is a content change.
* Correct the printf format specifier for total_events.asomers2013-07-081-2/+3
| | | | | | | Add __printflike argument checking for devdlog(). Reported by: pjd Approved by: gibbs (co-mentor)
* Fix dhclient for interfaces that are down. The discover_interfaces() functionpjd2013-07-041-5/+5
| | | | | | | | that looks for interface skips interfaces that are not UP. We need to call dhclient-script PREINIT before we call discover_interfaces(), so the script has a chance to bring the interface UP. Reported by: alfred
* Fix printf argument mismatch reported by gcc on i386.jimharris2013-07-041-2/+2
| | | | Reported by: kargl
* MFp4 @229488:pjd2013-07-031-0/+3
| | | | | | | Sandbox unprivileged process using capability mode. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229487:pjd2013-07-031-0/+7
| | | | | | | | Revoke all capability rights from STDIN and allow only for write to STDOUT and STDERR. All those descriptors are redirected to /dev/null. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229486:pjd2013-07-031-1/+6
| | | | | | | | Once PID is written to the pidfile, revoke all capability rights. We just want to keep the pidfile open. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229485:pjd2013-07-031-0/+5
| | | | | | | Only allow to overwrite lease file. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229484:pjd2013-07-031-0/+4
| | | | | | | | | Limit routing socket so only poll(2) and read(2) are allowed (CAP_POLL_EVENT and CAP_READ). This prevents unprivileged process from adding, removing or modifying system routes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229483:pjd2013-07-031-0/+6
| | | | | | | Limit communication pipe with privileged process to CAP_READ and CAP_WRITE. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229482:pjd2013-07-031-0/+12
| | | | | | | | | - Limit bpf descriptor in unprivileged process to CAP_POLL_EVENT, CAP_READ and allow for SIOCGIFFLAGS, SIOCGIFMEDIA ioctls. - While here limit bpf descriptor in privileged process to only CAP_WRITE. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229481:pjd2013-07-034-18/+75
| | | | | | | | | | | | Currently it was allowed to send any UDP packets from unprivileged process and possibly any packets because /dev/bpf was open for writing. Move sending packets to privileged process. Unprivileged process has no longer access to not connected UDP socket and has only access to /dev/bpf in read-only mode. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229480:pjd2013-07-031-0/+2
| | | | | | | Shutdown write direction of the routing socket. We only need to read from it. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229479:pjd2013-07-031-1/+4
| | | | | | | | - Add new request (IMSG_SEND_PACKET) that will be handled by privileged process. - Add $FreeBSD$. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229477:pjd2013-07-031-4/+11
| | | | | | | | | The gethostname(3) function won't work in capability mode, because reading kern.hostname sysctl is not permitted there. Cache hostname early and use cached value later. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* Remove redundant white-spaces.pjd2013-07-031-9/+9
|
* MFp4 @229476,229478:pjd2013-07-032-60/+70
| | | | | | | | | Make use of two fields: rfdesc and wfdesc to keep bpf descriptor open for reading only in rfdesc and bpf descriptor open for writing only in wfdesc. In the end they will be used by two different processes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229474:pjd2013-07-031-2/+2
| | | | | | | iov_base field is 'void *' in FreeBSD, no need to cast. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229473:pjd2013-07-033-6/+5
| | | | | | | No caller checks send_packet() return value, so make it void. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229472:pjd2013-07-033-34/+28
| | | | | | | Use the same type for 'from' and 'to' argument in send_packet(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229471:pjd2013-07-033-8/+4
| | | | | | | Remove unused argument from assemble_hw_header(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229470:pjd2013-07-033-7/+6
| | | | | | | Remove unused argument from send_packet(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4: @229469:pjd2013-07-032-11/+0
| | | | | | | Garbage-collect dead prototypes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* Fix a typo (s/error/errno/).hrs2013-07-031-1/+1
|
* When listing with -f, skip all memory disks that are not vnode-backed.delphij2013-07-021-1/+2
| | | | | Noticed by: kevlo MFC after: 3 days
* Plug a memory leak.delphij2013-07-021-0/+7
|
* Explicitly include <cstdarg> to fix compilation with libc++. It is implicitlyasomers2013-07-021-0/+1
| | | | | | | included by libstdc++. Reported By: Oliver Hartmann Approved by: gibbs (co-mentor, implicit)
* When acquiring a lease, record the value of the BOOTP siaddr fieldbms2013-07-023-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contained in the DHCP offer, and write it out to the lease file as an unquoted value of the "next-server" keyword. The value is ignored when the lease is read back by dhclient, however other applications are free to parse it. The intent behind this change is to allow easier interoperability with automated installation systems e.g. Cobbler, Foreman, Razor; FreeBSD installation kernels can automatically probe the network to discover deployment servers. There are no plans to MFC this change unless a backport is specifically requested. The syntax of the "next-server <ip>" lease keyword is intended to be identical to that used by the ISC DHCPD server in its configuration files. The required defines are already present in dhclient but were unused before this change. (Note: This is NOT the same as Option 66, tftp-server-name). It has been exercised in a university protocol testbed environment, with Cobbler and an mfsBSD image containing pc-sysinstall (driven by Cobbler Cheetah templates). The SYSLINUX memdisk driver is used to boot mfsBSD. Currently this approach requires that a dedicated system profile has been created for the node where FreeBSD is to be deployed. If this is not present, the pc-sysinstall wrapper will be unable to obtain a node configuration. There is code in progress to allow mfsBSD images to obtain the required hints from the memdisk environment by parsing the MBFT ACPI chunk. This is non-standard as it is not linked into the platform's ACPI RSDT. Reviewed by: des
* Add a new gptboot(8) man page. Factor out the redundant informationwblock2013-07-012-66/+27
| | | | | | | in gpart(8) and boot(8), adding references to gptboot(8) in both. Reviewed by: jhb, ae, pjd, Paul Schenkeveld <bsdcan@psconsult.nl>, david_a_bright@dell.com (portions), gjb MFC after: 1 week
* style(9) fixes, including the removal of page break characters. No functionalasomers2013-07-011-19/+19
| | | | | | changes. Approved by: gibbs (co-mentor)
* Add a SIGINFO handler to devd. It will send useful statistics to syslog orasomers2013-07-011-0/+19
| | | | | | | | stderr as appropriate. Currently, the only statistic printed is the number of events received. Reviewed by: eadler Approved by: gibbs (co-mentor)
* Add syslog(3) support to devd(8).asomers2013-07-012-36/+60
| | | | | | | | | | | | | | | | | | | | | sbin/devd/devd.cc All output will now go to syslog(3) if devd is daemonized, or stderr if it's running in the foreground. sbin/devd/devd.8 Remove the "-D" flag. Filtering messages by priority now happens in the usual syslog way. For performance reasons, a few extra-verbose debugging statements are now conditional on the "-d" (do not daemonize) flag. etc/syslog.conf etc/newsyslog.conf Direct messages from devd(8) to /var/log/devd.log, but leave it disabled by default Reviewed by: eadler Approved by: gibbs (co-mentor) MFC after: never (removed a command-line option from devd)
OpenPOWER on IntegriCloud